* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #bf5254 0%, #a35057 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Навигация */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #bf5254;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #f0f0f0;
}

.nav-links a.active {
    background: #bf5254;
    color: white;
}

/* Карточки */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    color: #333;
    font-size: 1.5rem;
}

/* Формы */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bf5254;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #bf5254;
    color: white;
}

.btn-primary:hover {
    background: #a35057;
    transform: translateY(-2px);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-warning {
    background: #ecc94b;
    color: white;
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.table tr:hover {
    background: #f7fafc;
}

/* Рейтинг */
.rating-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    background: #48bb78;
    color: white;
}

.rating-high {
    background: #48bb78;
}

.rating-medium {
    background: #ecc94b;
}

.rating-low {
    background: #f56565;
}

/* Статусы */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #ecc94b;
    color: white;
}

.status-approved {
    background: #48bb78;
    color: white;
}

.status-rejected {
    background: #f56565;
    color: white;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Алерты */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

/* Сетка */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #bf5254;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для таблиц с пагинацией */
.filters-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.search-box {
    position: relative;
    margin-bottom: 10px;
}

.search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #bf5254;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-selects select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
    min-width: 150px;
    background: white;
    cursor: pointer;
}

.filter-selects select:focus {
    outline: none;
    border-color: #bf5254;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #45405f;
    color: white;
    padding: 12px;
    font-weight: 500;
    text-align: left;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.table tr:hover {
    background: #f8f9fa;
}

.table .actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.table .no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-btn {
    min-width: 35px;
    height: 35px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #bf5254;
    color: white;
    border-color: #bf5254;
}

.page-btn.active {
    background: #bf5254;
    color: white;
    border-color: #bf5254;
}

.page-btn:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-dots {
    padding: 0 5px;
    color: #666;
    line-height: 35px;
}

.table-stats {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Стили для фильтров */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
}

.filter-group input[type="date"],
.filter-group input[type="number"] {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
}

.filter-group input[type="number"] {
    width: 80px;
}

.filter-selects {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Стили для выпадающего списка ролей */
.role-select {
    padding: 5px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
}

.role-select:hover {
    border-color: #bf5254;
}

.role-select:focus {
    outline: none;
    border-color: #bf5254;
}

.search-container {
    margin: 15px 0;
    padding: 0 15px;
}

.search-input:focus {
    outline: none;
    border-color: #bf5254;
    box-shadow: 0 0 5px rgba(191, 82, 84, 0.3);
}

.search-input::placeholder {
    color: #999;
}