* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card, .dashboard-card, .form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.dashboard-card {
    max-width: 1200px;
    width: 100%;
}

.form-card {
    max-width: 450px;
    text-align: center;
}

h1, h2 {
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #007bff;
}

.captcha {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

button, .btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #0056b3;
}

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 20px;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.toggle-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.toggle-link a {
    color: #007bff;
    text-decoration: none;
}

.amount-positive {
    color: #28a745;
    font-weight: 600;
}

.amount-negative {
    color: #dc3545;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-link, .pagination-current {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

.pagination-btn {
    background: #007bff;
    color: white;
}

.pagination-link {
    background: #f0f2f5;
    color: #007bff;
}

.pagination-current {
    background: #007bff;
    color: white;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.inline-form {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
}

.inline-form input {
    width: auto;
    margin: 0;
    padding: 5px 8px;
}

@media (max-width: 700px) {
    .actions {
        flex-direction: column;
    }
    .btn, button {
        width: 100%;
    }
    .inline-form {
        flex-direction: column;
    }
}
/* Бейджи для статусов */
.badge-success {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-danger {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Кнопки для админки */
.btn-warning {
    background: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background: #e0a800;
}
.btn-primary {
    background: #007bff;
    color: white;
}
.btn-primary:hover {
    background: #0056b3;
}
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}
.btn-small:hover {
    opacity: 0.85;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-danger {
    background: #dc3545;
    color: white;
}

/* Админ-таблицы */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}
.admin-table th {
    background: #f1f3f5;
    font-weight: 600;
}
.admin-table tr:hover {
    background: #f8f9fa;
}