@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald.ttf') format('truetype');    
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');    
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    font-family: 'Lato', sans-serif;
    color: #333333;
    background-color: #F8F9FA;
    line-height: 1.6;
    height: 100vh;
}

/* Шапка админ-панели */
.admin-header {
    background: linear-gradient(135deg, #2D1B69 0%, #4A2E80 100%);
    color: white;
    padding: 2vh 0;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 2.4vh;
    font-weight: 600;
}

.admin-logo {
    height: 4vh;
    margin-right: 1vh;
}

.admin-user {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.6vh;
}

.admin-avatar {
    width: 3.5vh;
    height: 3.5vh;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1vh;
    font-size: 1.8vh;
}

/* Основной контейнер админ-панели */
.admin-container {
    display: flex;
    min-height: calc(100vh - 8vh);
    margin-top: 8vh;
}

/* Боковое меню */
.admin-sidebar {
    width: 25vh;
    background: white;
    border-right: 0.1vh solid #E9ECEF;
    padding: 3vh 0;
    position: fixed;
    top: 8vh;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu-item {
    margin-bottom: 0.5vh;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    padding: 1.5vh 2vh;
    color: #4A2E80;
    text-decoration: none;
    font-size: 1.6vh;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 0.4vh solid transparent;
}

.admin-menu-link:hover {
    background: linear-gradient(90deg, rgba(126, 200, 193, 0.1), transparent);
    color: #2D1B69;
    border-left-color: #7EC8C1;
}

.admin-menu-link.active {
    background: linear-gradient(90deg, rgba(74, 46, 128, 0.1), transparent);
    color: #4A2E80;
    border-left-color: #4A2E80;
    font-weight: 600;
}

.admin-menu-icon {
    margin-right: 1vh;
    font-size: 1.8vh;
    width: 2vh;
    text-align: center;
}

/* Основное содержимое */
.admin-main {
    flex: 1;
    padding: 3vh;
    margin-left: 25vh;
}

.admin-content {
    background: white;
    border-radius: 2vh;
    padding: 3vh;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.05);
    min-height: calc(100vh - 14vh);
}

/* Заголовки страниц */
.admin-page-title {
    font-family: 'Oswald', sans-serif;
    color: #2D1B69;
    font-size: 3.2vh;
    margin-bottom: 3vh;
    padding-bottom: 1.5vh;
    border-bottom: 0.2vh solid rgba(74, 46, 128, 0.1);
    position: relative;
}

.admin-page-title::after {
    content: '';
    position: absolute;
    bottom: -0.2vh;
    left: 0;
    width: 10vh;
    height: 0.2vh;
    background: linear-gradient(90deg, #4A2E80, #7EC8C1);
}

/* Карточки статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20vh, 1fr));
    gap: 2vh;
    margin-bottom: 3vh;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
    border-radius: 1.5vh;
    padding: 2.5vh;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-0.5vh);
    box-shadow: 0 0.8vh 1.6vh rgba(74, 46, 128, 0.1);
    border-color: rgba(74, 46, 128, 0.2);
}

.stat-icon {
    font-size: 3.6vh;
    margin-bottom: 1.5vh;
    background: linear-gradient(135deg, #4A2E80, #7EC8C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 3vh;
    font-weight: 700;
    color: #2D1B69;
    margin-bottom: 0.5vh;
}

.stat-label {
    font-size: 1.4vh;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1vh;
}

.stat-change {
    font-size: 1.2vh;
    margin-top: 1vh;
    padding: 0.3vh 0.8vh;
    border-radius: 1vh;
    display: inline-block;
}

.stat-change.positive {
    background: rgba(126, 200, 193, 0.2);
    color: #2D1B69;
}

.stat-change.negative {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
}

/* УЛУЧШЕННЫЕ ТАБЛИЦЫ ДЛЯ АДМИН-ПАНЕЛИ */
.admin-table-container {
    background: white;
    border-radius: 1.5vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
    overflow: hidden;
    box-shadow: 0 0.4vh 1.2vh rgba(74, 46, 128, 0.08);
    transition: all 0.3s ease;
}

.admin-table-container:hover {
    box-shadow: 0 0.6vh 1.8vh rgba(74, 46, 128, 0.12);
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead {
    background: linear-gradient(135deg, #4A2E80, #2D1B69);
    border-radius: 1.5vh 1.5vh 0 0;
    overflow: hidden;
}

.table thead tr {
    border-radius: 1.5vh 1.5vh 0 0;
    overflow: hidden;
}

.table thead th {
    color: #FFFFFF !important;
    border: none;
    font-weight: 600;
    font-size: 1.6vh;
    padding: 2vh 1.5vh;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05vh;
    border-bottom: 0.3vh solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.table thead th:first-child {
    border-top-left-radius: 1.5vh;
}

.table thead th:last-child {
    border-top-right-radius: 1.5vh;
}

.table thead th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5vh;
    right: 1.5vh;
    height: 0.2vh;
    background: linear-gradient(90deg, #7EC8C1, transparent);
    opacity: 0.5;
}

.table tbody {
    background: white;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 0.1vh solid rgba(74, 46, 128, 0.05);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(126, 200, 193, 0.08), rgba(184, 161, 217, 0.05));
    transform: translateY(-0.1vh);
    box-shadow: 0 0.2vh 0.8vh rgba(74, 46, 128, 0.1);
}

.table tbody td {
    padding: 1.8vh 1.5vh;
    vertical-align: middle;
    font-size: 1.5vh;
    color: #2D1B69;
    border: none;
    position: relative;
}

.table tbody td::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5vh;
    right: 1.5vh;
    height: 0.1vh;
    background: rgba(74, 46, 128, 0.03);
}

.table tbody tr:last-child td::after {
    display: none;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Статусы заявок - обновленные */
.status-badge {
    padding: 0.6vh 1.4vh;
    border-radius: 2vh;
    font-size: 1.3vh;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05vh;
    display: inline-block;
    box-shadow: 0 0.2vh 0.4vh rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr:hover .status-badge {
    transform: scale(1.05);
    box-shadow: 0 0.3vh 0.6vh rgba(0, 0, 0, 0.15);
}

.status-new {
    background: linear-gradient(135deg, #7EC8C1, #4A2E80);
    color: white;
}

.status-review {
    background: linear-gradient(135deg, #F0C987, #FF9A3D);
    color: #2D1B69;
}

.status-accepted {
    background: linear-gradient(135deg, #38B2AC, #7EC8C1);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
}

/* Кнопки действий - обновленные */
.btn-action {
    padding: 0.7vh 1.3vh;
    border-radius: 1vh;
    font-size: 1.3vh;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vh;
    min-width: 3.5vh;
    min-height: 3.5vh;
}

.btn-action i {
    font-size: 1.4vh;
}

.btn-view {
    background: linear-gradient(135deg, rgba(126, 200, 193, 0.1), rgba(126, 200, 193, 0.2));
    color: #2D1B69;
    border: 0.1vh solid rgba(126, 200, 193, 0.3);
}

.btn-view:hover {
    background: linear-gradient(135deg, #7EC8C1, #5AAFA9);
    color: white;
    transform: translateY(-0.2vh) scale(1.05);
    box-shadow: 0 0.3vh 0.6vh rgba(126, 200, 193, 0.3);
}

.btn-edit {
    background: linear-gradient(135deg, rgba(240, 201, 135, 0.1), rgba(240, 201, 135, 0.2));
    color: #2D1B69;
    border: 0.1vh solid rgba(240, 201, 135, 0.3);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #F0C987, #E0B977);
    color: #2D1B69;
    transform: translateY(-0.2vh) scale(1.05);
    box-shadow: 0 0.3vh 0.6vh rgba(240, 201, 135, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.2));
    color: #FF6B6B;
    border: 0.1vh solid rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
    transform: translateY(-0.2vh) scale(1.05);
    box-shadow: 0 0.3vh 0.6vh rgba(255, 107, 107, 0.3);
}

/* Колонка действий */
.table .action-column {
    width: 12vh;
    text-align: center;
}

.table .action-column .btn-action {
    margin: 0 0.3vh;
}

/* Бейджи в таблицах */
.badge {
    padding: 0.6vh 1.2vh;
    border-radius: 1vh;
    font-size: 1.3vh;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 0.1vh 0.3vh rgba(0, 0, 0, 0.1);
}

.bg-success {
    background: linear-gradient(135deg, #7EC8C1, #38B2AC) !important;
    color: white;
}

.bg-secondary {
    background: linear-gradient(135deg, #6C757D, #495057) !important;
    color: white;
}

.bg-danger {
    background: linear-gradient(135deg, #FF6B6B, #FF4757) !important;
    color: white;
}

/* Звезды рейтинга */
.fa-star.text-warning {
    color: #FF9A3D !important;
    text-shadow: 0 0.1vh 0.2vh rgba(255, 154, 61, 0.3);
}

/* Формы */
.admin-form {
    background: #F8F9FA;
    border-radius: 1.5vh;
    padding: 2.5vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
}

.form-group {
    margin-bottom: 2vh;
}

.form-label {
    font-weight: 600;
    color: #4A2E80;
    margin-bottom: 0.8vh;
    font-size: 1.5vh;
    display: block;
}

.form-control, .form-select {
    border: 0.1vh solid rgba(74, 46, 128, 0.2);
    border-radius: 0.8vh;
    padding: 1vh 1.2vh;
    font-size: 1.5vh;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #7EC8C1;
    box-shadow: 0 0 0 0.2vh rgba(126, 200, 193, 0.25);
    outline: none;
}

/* Кнопки формы */
.btn-submit {
    background: linear-gradient(135deg, #4A2E80, #7EC8C1);
    color: white;
    border: none;
    padding: 1.2vh 2.4vh;
    font-size: 1.6vh;
    font-weight: 600;
    border-radius: 2vh;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit:hover {
    transform: translateY(-0.2vh);
    box-shadow: 0 0.4vh 0.8vh rgba(74, 46, 128, 0.3);
}

.btn-cancel {
    background: #6C757D;
    color: white;
    border: none;
    padding: 1.2vh 2.4vh;
    font-size: 1.6vh;
    font-weight: 600;
    border-radius: 2vh;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5A6268;
    transform: translateY(-0.2vh);
}

/* Карточка тура в админке */
.tour-admin-card {
    background: white;
    border-radius: 1.5vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2vh;
}

.tour-admin-card:hover {
    transform: translateY(-0.3vh);
    box-shadow: 0 0.6vh 1.2vh rgba(74, 46, 128, 0.1);
}

.tour-admin-img {
    height: 20vh;
    width: 100%;
    object-fit: cover;
}

.tour-admin-body {
    padding: 2vh;
}

.tour-admin-title {
    font-size: 2vh;
    font-weight: 700;
    color: #2D1B69;
    margin-bottom: 1vh;
}

.tour-admin-price {
    font-size: 1.8vh;
    font-weight: 700;
    color: #4A2E80;
    margin-bottom: 1vh;
}

/* Фильтры */
.filter-container {
    background: white;
    border-radius: 1.5vh;
    padding: 2vh;
    margin-bottom: 2vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
    box-shadow: 0 0.2vh 0.6vh rgba(74, 46, 128, 0.05);
}

.filter-row {
    display: flex;
    gap: 1.5vh;
    align-items: flex-end;
}

/* Поиск */
.search-box {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 1vh 1.2vh 1vh 4vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.2);
    border-radius: 0.8vh;
    font-size: 1.5vh;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #7EC8C1;
    box-shadow: 0 0 0 0.2vh rgba(126, 200, 193, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1.2vh;
    top: 50%;
    transform: translateY(-50%);
    color: #4A2E80;
    font-size: 1.4vh;
}

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3vh;
}

.pagination {
    display: flex;
    gap: 0.5vh;
    background: white;
    padding: 0.8vh;
    border-radius: 1.5vh;
    box-shadow: 0 0.2vh 0.6vh rgba(74, 46, 128, 0.1);
}

.page-item {
    list-style: none;
}

.page-link {
    padding: 0.8vh 1.4vh;
    border: 0.1vh solid rgba(74, 46, 128, 0.1);
    border-radius: 0.8vh;
    color: #4A2E80;
    text-decoration: none;
    font-size: 1.4vh;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.page-link:hover {
    background: rgba(74, 46, 128, 0.05);
    border-color: rgba(74, 46, 128, 0.2);
}

.page-link.active {
    background: linear-gradient(135deg, #4A2E80, #7EC8C1);
    color: white;
    border-color: #4A2E80;
    box-shadow: 0 0.2vh 0.4vh rgba(74, 46, 128, 0.2);
}

/* Анимация загрузки таблицы */
@keyframes fadeInTable {
    from {
        opacity: 0;
        transform: translateY(1vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-table-container {
    animation: fadeInTable 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 20vh;
    }
    
    .admin-main {
        margin-left: 20vh;
        padding: 2vh;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-responsive {
        border-radius: 1.5vh;
        overflow: hidden;
    }
    
    .table thead th,
    .table tbody td {
        padding: 1.5vh 1vh;
        font-size: 1.4vh;
    }
    
    .btn-action {
        padding: 0.6vh 1vh;
        min-width: 3vh;
        min-height: 3vh;
    }
}

@media (max-width: 576px) {
    .admin-sidebar {
        width: 18vh;
    }
    
    .admin-main {
        margin-left: 18vh;
        padding: 1.5vh;
    }
    
    .admin-content {
        padding: 2vh;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1vh;
    }
    
    .filter-row .form-control,
    .filter-row .form-select,
    .filter-row .search-box {
        width: 100%;
    }
    
    .table-responsive {
        border: 0.1vh solid rgba(74, 46, 128, 0.1);
        border-radius: 1.5vh;
        overflow-x: auto;
    }
    
    .admin-page-title {
        font-size: 2.8vh;
    }
}

@media (max-width: 480px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-header .admin-brand span {
        font-size: 2vh;
    }
    
    .table thead th {
        font-size: 1.3vh;
        padding: 1.2vh 0.8vh;
    }
    
    .table tbody td {
        font-size: 1.3vh;
        padding: 1.2vh 0.8vh;
    }
    
    .status-badge,
    .badge {
        font-size: 1.1vh;
        padding: 0.4vh 0.8vh;
    }
}

/* Цены в таблицах */
.price-cell {
    font-weight: 700;
    font-size: 1.6vh;
    color: #4A2E80;
    background: linear-gradient(135deg, rgba(74, 46, 128, 0.05), transparent);
    padding: 0.8vh 1.2vh;
    border-radius: 0.8vh;
    display: inline-block;
}

/* Линки в таблицах */
.table a {
    color: #4A2E80;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 0.1vh solid transparent;
}

.table a:hover {
    color: #2D1B69;
    border-bottom-color: #7EC8C1;
}

/* Скрываем колонку SerialColumn */
.yii-grid-serial-column {
    display: none;
}

/* Скрываем колонку ID */
.yii-grid-id-column {
    display: none;
}