/* backend/public/assets/style.css */
/* Темная тема для админки ProExcursions - исправленная версия */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e5e5e5;
    line-height: 1.6;
}

/* === СТРАНИЦА ВХОДА === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #facc15;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo p {
    color: #888;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #facc15;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.error {
    background: #dc2626;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* === ОСНОВНОЙ ИНТЕРФЕЙС === */
.container {
    display: flex;
    min-height: 100vh;
}

/* Боковая панель */
.sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.sidebar .logo h1 {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link span {
    margin-right: 12px;
    font-size: 18px;
}

.nav-link:hover {
    background: #262626;
    color: #facc15;
    transform: translateX(4px);
}

.nav-link.active {
    background: #facc15;
    color: #000;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 30px;
    background: #0f0f0f;
    overflow-x: auto;
}

.header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.header h1 {
    color: #e5e5e5;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header p {
    color: #888;
    font-size: 16px;
}

/* Карточки */
.content {
    display: grid;
    gap: 20px;
}

.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #e5e5e5;
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    color: #bbb;
    margin-bottom: 10px;
}

/* === ГЛАВНАЯ СТРАНИЦА АДМИНКИ === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: #facc15;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.15);
}

.metric-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 4px;
    line-height: 1;
}

.metric-detail {
    font-size: 13px;
    color: #888;
}

/* Цветовые варианты карточек */
.metric-card.visits .metric-icon { 
    background: rgba(56, 189, 248, 0.15); 
}
.metric-card.visits .metric-value { 
    color: #38bdf8; 
}

.metric-card.bookings .metric-icon { 
    background: rgba(74, 222, 128, 0.15); 
}
.metric-card.bookings .metric-value { 
    color: #4ade80; 
}

.metric-card.week .metric-icon { 
    background: rgba(168, 85, 247, 0.15); 
}
.metric-card.week .metric-value { 
    color: #a855f7; 
}

.metric-card.total .metric-icon { 
    background: rgba(250, 204, 21, 0.15); 
}
.metric-card.total .metric-value { 
    color: #facc15; 
}

/* === БЫСТРЫЕ ДЕЙСТВИЯ - ИСПРАВЛЕННЫЕ СТИЛИ === */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions .card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.quick-actions h2 {
    color: #facc15;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* ИСПРАВЛЕННЫЕ КЛАССЫ ДЛЯ БЫСТРЫХ ДЕЙСТВИЙ */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.quick-action-btn span {
    font-size: 16px;
}

.quick-action-btn.primary {
    background: #facc15;
    color: #000;
}

.quick-action-btn.primary:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.3);
}

.quick-action-btn.secondary {
    background: #404040;
    color: #ccc;
    border: 1px solid #555;
}

.quick-action-btn.secondary:hover {
    background: #555;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 64, 64, 0.3);
}

/* === СТАТУС СИСТЕМЫ === */
.system-status {
    margin-bottom: 30px;
}

.system-status .card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.system-status h2 {
    color: #facc15;
    font-size: 20px;
    margin-bottom: 16px;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #ccc;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-item.offline .status-dot {
    background: #ef4444;
}

.status-item.online .status-dot {
    background: #4ade80;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === УПРАВЛЕНИЕ ТУРАМИ === */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tour-file-card {
    background: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tour-file-card:hover {
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #404040;
}

.file-header h3 {
    color: #facc15;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.file-size {
    background: #404040;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.file-info {
    margin-bottom: 15px;
}

.file-info p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #facc15;
    color: #000;
}

.btn-primary:hover {
    background: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
    background: #404040;
    color: #ccc;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 64, 64, 0.3);
}

.btn-success {
    background: #4ade80;
    color: #000;
}

.btn-success:hover {
    background: #22c55e;
}

.btn-info {
    background: #38bdf8;
    color: #000;
}

.btn-info:hover {
    background: #0ea5e9;
}

/* === ТАБЛИЦЫ === */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.table th {
    background: #262626;
    color: #facc15;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: #ccc;
}

.table tr:hover {
    background: #262626;
}

.table tr:last-child td {
    border-bottom: none;
}

/* === СТРАНИЦА ЗАЯВОК === */
.filters-section {
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select, .filter-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #404040;
    background: #262626;
    color: #fff;
    font-size: 14px;
    min-width: 150px;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

.bookings-table-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bookings-table th {
    background: #262626;
    color: #facc15;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #404040;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bookings-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.bookings-table tr:hover {
    background: #262626;
}

/* Стили для содержимого ячеек заявок */
.booking-datetime {
    min-width: 80px;
}

.booking-datetime .time {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

.client-info .client-name {
    font-weight: 600;
    color: #facc15;
}

.contact-info {
    min-width: 120px;
}

.contact-info .phone {
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 2px;
}

.contact-info .email {
    font-size: 11px;
    color: #888;
}

.tour-info {
    max-width: 200px;
}

.tour-title {
    font-weight: 500;
    line-height: 1.3;
}

.location-badge {
    background: #404040;
    color: #facc15;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-date {
    font-family: monospace;
    background: #4ade80;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.no-date {
    color: #888;
    font-style: italic;
    font-size: 11px;
}

.booking-amount {
    text-align: right;
    min-width: 80px;
}

.amount-booking {
    font-weight: 700;
    color: #4ade80;
    font-size: 14px;
}

.amount-full {
    color: #888;
    font-size: 10px;
    margin-top: 2px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-new {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.status-confirmed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.booking-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.table-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #404040;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #ccc;
}

.table-action-btn:hover {
    transform: scale(1.1);
}

.table-action-btn.view:hover { 
    background: #38bdf8; 
    color: #000;
}
.table-action-btn.edit:hover { 
    background: #facc15; 
    color: #000;
}
.table-action-btn.call:hover { 
    background: #4ade80; 
    color: #000;
}
.table-action-btn.delete:hover { 
    background: #ef4444; 
    color: #fff;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 12px;
    background: #404040;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #555;
    color: #fff;
}

.pagination-btn.active {
    background: #facc15;
    color: #000;
    font-weight: 600;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* === ФОРМЫ === */
.form-label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    background: #262626;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #e5e5e5;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

.form-control.textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* === АНИМАЦИИ === */
.metric-card, .tour-file-card, .card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card.visits:hover .metric-icon {
    animation: bounce 0.6s ease-in-out;
}

.metric-card.bookings:hover .metric-icon {
    animation: heartbeat 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .bookings-table {
        font-size: 12px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        order: 2;
        padding: 15px;
    }
    
    .main-content {
        order: 1;
        padding: 20px;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
    }
    
    .nav-link {
        white-space: nowrap;
        min-width: auto;
        padding: 10px 14px;
    }
    
    .nav-link span {
        margin-right: 6px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select, .filter-input {
        min-width: auto;
        width: 100%;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .bookings-table-section .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    /* Скрыть некоторые колонки на мобильных */
    .bookings-table th:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table th:nth-child(7),
    .bookings-table td:nth-child(7) {
        display: none;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .file-actions {
        flex-direction: column;
    }
}

/* === АДАПТИВНОСТЬ ДЛЯ ДЕТАЛЬНОЙ СТАТИСТИКИ === */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .period-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .period-tab {
        flex-shrink: 0;
        padding: 8px 16px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        min-height: 250px;
    }
    
    .chart-card canvas {
        max-height: 200px;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-table {
        font-size: 11px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 6px 8px;
    }
    
    /* Скрыть некоторые колонки на мобильных */
    .stats-table th:nth-child(n+4),
    .stats-table td:nth-child(n+4) {
        display: none;
    }
    
    .table-card.full-width .stats-table th:nth-child(n+4),
    .table-card.full-width .stats-table td:nth-child(n+4) {
        display: table-cell;
    }
}

/* === ГЛАВНАЯ СТРАНИЦА - УПРОЩЕННАЯ === */
.today-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #facc15;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 13px;
    color: #ccc;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-detail {
    font-size: 12px;
}

.stat-detail .change.positive {
    color: #4ade80;
}

.stat-detail .change.negative {
    color: #ef4444;
}

/* Цветовые варианты для карточек статистики */
.stat-card.visits .stat-icon { 
    background: rgba(56, 189, 248, 0.15); 
}
.stat-card.visits .stat-value { 
    color: #38bdf8; 
}

.stat-card.bookings .stat-icon { 
    background: rgba(74, 222, 128, 0.15); 
}
.stat-card.bookings .stat-value { 
    color: #4ade80; 
}

.stat-card.revenue .stat-icon { 
    background: rgba(168, 85, 247, 0.15); 
}
.stat-card.revenue .stat-value { 
    color: #a855f7; 
}

.stat-card.tickets .stat-icon { 
    background: rgba(168, 85, 247, 0.15); 
}
.stat-card.tickets .stat-value { 
    color: #a855f7; 
}

/* === СТРАНИЦА ЗАЯВОК - ДОПОЛНЕНИЯ === */
.bookings-summary {
    margin-bottom: 30px;
}

.location-stats {
    margin-bottom: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.location-item {
    background: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: #facc15;
    transform: translateY(-2px);
}

.location-name {
    font-weight: 600;
    color: #facc15;
    margin-bottom: 8px;
    font-size: 16px;
}

.location-stats-nums {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bookings-count {
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
}

.tickets-count {
    color: #a855f7;
    font-size: 13px;
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.order-id {
    font-family: monospace;
    font-size: 11px;
    color: #facc15;
    font-weight: 600;
}

.tickets-info {
    text-align: center;
}

.tickets-count {
    font-weight: 600;
    color: #a855f7;
    font-size: 14px;
}

.tickets-detail {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* Статусы для JSON заявок */
.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.status-confirmed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.status-paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-failed {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid #f56565;
}

.table-action-btn.link:hover { 
    background: #a855f7; 
    color: #fff;
}

/* Цветовые варианты для сводных карточек заявок */
.summary-card.pending .summary-icon { 
    background: rgba(251, 191, 36, 0.15); 
}
.summary-card.pending .summary-value { 
    color: #fbbf24; 
}

.summary-card.confirmed .summary-icon { 
    background: rgba(74, 222, 128, 0.15); 
}
.summary-card.confirmed .summary-value { 
    color: #4ade80; 
}

.summary-card.tickets .summary-icon { 
    background: rgba(168, 85, 247, 0.15); 
}
.summary-card.tickets .summary-value { 
    color: #a855f7; 
}

/* Последние заявки на главной */
.recent-bookings {
    margin-bottom: 30px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #262626;
    border-radius: 8px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.booking-item:hover {
    border-color: #facc15;
    transform: translateX(4px);
}

.booking-time {
    font-family: monospace;
    color: #888;
    font-size: 12px;
    min-width: 60px;
}

.booking-details {
    flex: 1;
}

.booking-client {
    color: #facc15;
    font-weight: 600;
    margin-bottom: 2px;
}

.booking-tour {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 2px;
}

.booking-contact {
    color: #888;
    font-size: 11px;
}

.booking-amount {
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
    min-width: 70px;
    text-align: right;
}

.booking-status {
    min-width: 30px;
    text-align: center;
}

.booking-status .status-badge {
    padding: 6px;
    border-radius: 50%;
    font-size: 12px;
    border: none;
    background: transparent;
}

.card-footer {
    padding-top: 15px;
    border-top: 1px solid #333;
    text-align: center;
}

/* === АДАПТИВНОСТЬ ДЛЯ ГЛАВНОЙ === */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .booking-amount {
        text-align: left;
        min-width: auto;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.stats-periods {
    margin-bottom: 30px;
}

.period-tabs {
    display: flex;
    gap: 5px;
    background: #262626;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.period-tab {
    padding: 10px 20px;
    text-decoration: none;
    background: transparent;
    color: #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.period-tab.active {
    background: #facc15;
    color: #000;
}

.period-tab:hover:not(.active) {
    background: #404040;
    color: #fff;
}

/* Быстрая сводка */
.quick-summary {
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    border-color: #facc15;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.15);
}

.summary-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
}

.summary-content {
    flex: 1;
}

.summary-content h3 {
    font-size: 13px;
    color: #ccc;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 4px;
    line-height: 1;
}

.summary-change {
    font-size: 12px;
}

.summary-change .change.positive {
    color: #4ade80;
}

.summary-change .change.negative {
    color: #ef4444;
}

/* Цветовые варианты для сводных карточек */
.summary-card.visits .summary-icon { 
    background: rgba(56, 189, 248, 0.15); 
}
.summary-card.visits .summary-value { 
    color: #38bdf8; 
}

.summary-card.bookings .summary-icon { 
    background: rgba(74, 222, 128, 0.15); 
}
.summary-card.bookings .summary-value { 
    color: #4ade80; 
}

.summary-card.revenue .summary-icon { 
    background: rgba(168, 85, 247, 0.15); 
}
.summary-card.revenue .summary-value { 
    color: #a855f7; 
}

.summary-card.conversion .summary-icon { 
    background: rgba(250, 204, 21, 0.15); 
}
.summary-card.conversion .summary-value { 
    color: #facc15; 
}

/* Графики */
.charts-section {
    margin-bottom: 30px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
}

.chart-card h3 {
    color: #facc15;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card canvas {
    max-height: 250px;
}

/* Детальные таблицы */
.detailed-tables {
    margin-bottom: 30px;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.table-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.table-card.full-width {
    grid-column: 1 / -1;
}

.table-card h3 {
    color: #facc15;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-wrapper {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stats-table th {
    background: #262626;
    color: #facc15;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #404040;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.stats-table tr:hover {
    background: #262626;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

/* Стили для содержимого таблиц */
.page-url {
    font-family: monospace;
    font-size: 12px;
    max-width: 200px;
    word-break: break-all;
}

.visits-count,
.bookings-count {
    font-weight: 600;
    color: #38bdf8;
}

.percentage {
    color: #888;
    font-size: 12px;
}

.tour-name {
    font-weight: 500;
    color: #facc15;
    margin-bottom: 2px;
}

.tour-location {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.revenue,
.avg-check {
    font-weight: 600;
    color: #4ade80;
    text-align: right;
}

.booking-time {
    font-family: monospace;
    font-size: 11px;
    color: #888;
}

.client-name {
    font-weight: 500;
    color: #facc15;
}

.phone {
    font-family: monospace;
    font-size: 12px;
}

.tour-title {
    font-size: 12px;
    max-width: 150px;
    line-height: 1.3;
}

.amount {
    font-weight: 600;
    color: #4ade80;
    text-align: right;
}

/* === Д

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.success-text { color: #4ade80; }
.warning-text { color: #fbbf24; }
.error-text { color: #ef4444; }
.info-text { color: #38bdf8; }

.bg-success { background: rgba(74, 222, 128, 0.1); }
.bg-warning { background: rgba(251, 191, 36, 0.1); }
.bg-error { background: rgba(239, 68, 68, 0.1); }
.bg-info { background: rgba(56, 189, 248, 0.1); }

/* === КАСТОМНЫЙ СКРОЛЛБАР === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #404040;
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background-color: #262626;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Скроллбар для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #404040 #262626;
}