/* ================================================================
   NEXTAIR - ФИНАЛЬНАЯ ВЕРСИЯ CSS
   Единый файл стилей для всего проекта
   ================================================================ */

/* --- ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #EFF6FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-color: #F9FAFB;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- БАЗОВЫЕ СТИЛИ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* --- ФОРМЫ --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

/* --- КАРТОЧКИ --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
}

/* --- Таблицы (последние рейсы, допуски и т.п.) --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}

.data-table thead {
    background: #F3F4F6;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #4B5563;
    border-bottom: 1px solid #E5E7EB;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

.data-table tbody tr:nth-child(2n) {
    background: #F9FAFB;
}

.data-table tbody tr:hover {
    background: #EFF6FF;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- БЕЙДЖИ --- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-active,
.badge-approved,
.badge-booked { background: #D1FAE5; color: #065F46; }

.badge-pending { background: #FEF3C7; color: #92400E; }

.badge-suspended,
.badge-rejected,
.badge-cancelled { background: #FEE2E2; color: #991B1B; }

.badge-completed { background: #DBEAFE; color: #1E40AF; }

/* --- АЛЕРТЫ --- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* --- МОДАЛЬНЫЕ ОКНА --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* ================================================================
   ГЛАВНАЯ СТРАНИЦА (LANDING)
   ================================================================ */

.landing-page {
    background: var(--bg-color);
}

/* --- ШАПКА --- */
.landing-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.landing-header .logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.landing-header .logo strong {
    color: var(--primary-color);
}

.landing-header .main-nav {
    display: flex;
    gap: 40px;
}

.landing-header .main-nav a {
    font-weight: 600;
    color: var(--text-light);
}

.landing-header .auth-buttons {
    display: flex;
    gap: 12px;
}

/* --- HERO СЕКЦИЯ --- */
.hero-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EFF6FF 0%, #F9FAFB 100%);
    opacity: 0.8;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-section h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- О КОМПАНИИ --- */
.about-section {
    padding: 80px 0;
    background: var(--surface);
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* --- ФЛОТ --- */
.fleet-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.aircraft-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.aircraft-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.aircraft-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-color);
}

.aircraft-info {
    padding: 25px;
}

.aircraft-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.aircraft-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.aircraft-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.aircraft-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* --- НОВОСТИ --- */
.news-section {
    padding: 80px 0;
    background: var(--surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card .news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* --- CTA СЕКЦИЯ --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

/* --- ПОДВАЛ --- */
.landing-footer {
    padding: 60px 0 30px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-logo strong {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* ================================================================
   СТРАНИЦЫ АВТОРИЗАЦИИ
   ================================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: var(--surface);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.auth-logo a {
    color: var(--text-dark);
}

.auth-logo strong {
    color: var(--primary-color);
}

.auth-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
}

/* ================================================================
   ДАШБОРД И АДМИН-ПАНЕЛЬ
   ================================================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- САЙДБАР --- */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 0 25px 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.sidebar .logo i {
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 0 15px;
    overflow-y: auto;
}

.nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 15px;
    margin: 20px 0 10px;
    letter-spacing: 0.5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-light);
    border-radius: var(--radius);
    margin-bottom: 5px;
    transition: var(--transition);
    font-weight: 600;
}

.sidebar-nav a i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.sidebar-nav a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 20px 15px 0;
    border-top: 1px solid var(--border);
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
    background: var(--bg-color);
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.dashboard-header .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- СТАТИСТИКА --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- ГРИД КОНТЕНТА --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* --- СПИСКИ --- */
.flights-list,
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.flight-route i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.flight-details {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-item {
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.news-item .news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.news-item .news-title {
    font-weight: 600;
    color: var(--text-dark);
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

/* --- ФЛОТ В АДМИНКЕ --- */
.fleet-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.aircraft-card-admin {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.aircraft-card-admin img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-color);
}

.aircraft-card-admin h3 {
    padding: 20px 20px 10px;
    font-size: 1.25rem;
    font-weight: 800;
}

.aircraft-card-admin p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.card-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================================================================
   АНИМАЦИИ
   ================================================================ */

.fade-in,
.fade-in-up {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        padding: 15px;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 100;
    }
    
    .sidebar-header,
    .sidebar-footer {
        display: none;
    }
    
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 0;
    }
    
    .sidebar-nav a {
        flex-direction: column;
        padding: 10px;
        margin: 0;
    }
    
    .sidebar-nav a span {
        font-size: 0.75rem;
        margin-top: 5px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 20px 100px;
    }
    
    .landing-header .main-nav {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* --- ИНФОРМАЦИЯ О ПИЛОТЕ --- */
.pilot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- СТАТИСТИКА (дополнительные стили) --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.dashboard-header .subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 5px;
}

.btn-full {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* --- ПОДГОТОВКА К ПОЛЕТУ --- */
.flight-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-block {
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- ВЫБОР САМОЛЕТА --- */
.aircraft-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aircraft-card-select {
    cursor: pointer;
    display: block;
}

.aircraft-card-select input[type="radio"] {
    display: none;
}

.aircraft-info-box {
    background: var(--bg-color);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.aircraft-card-select input[type="radio"]:checked + .aircraft-info-box {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.aircraft-card-select:hover .aircraft-info-box {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.aircraft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.aircraft-header strong {
    font-size: 1.25rem;
}

.aircraft-details p {
    margin: 8px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.aircraft-details i {
    color: var(--primary-color);
    width: 20px;
}
/* --- ВЫБОР ПОЛОСЫ --- */
.runway-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.runway-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.runway-option:hover {
    background: var(--surface);
    border-color: var(--primary-color);
}

.runway-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.runway-option input[type="radio"]:checked + .runway-label {
    color: var(--primary-color);
    font-weight: 700;
}

.runway-label {
    flex: 1;
    font-size: 1.1rem;
}

.runway-label strong {
    font-size: 1.3rem;
}

/* --- СГЕНЕРИРОВАННЫЙ МАРШРУТ --- */
#generated-route {
    word-wrap: break-word;
    line-height: 1.8;
}
/* --- КАЛЬКУЛЯТОР ТОПЛИВА --- */
.fuel-metric-card {
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.fuel-metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.fuel-metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.fuel-metric-sublabel {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}
/* --- COMING SOON PLACEHOLDERS --- */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
    border-radius: var(--radius);
}

.coming-soon-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

.coming-soon-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    animation: glow 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}
/* --- НОВОСТИ --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.news-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.news-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- БЫСТРЫЕ ДЕЙСТВИЯ --- */
.quick-actions {
    margin-top: 20px;
}

.quick-actions h2 {
    margin-bottom: 15px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    text-align: center;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.action-card span {
    font-weight: 600;
    font-size: 1rem;
}
/* --- КРАСИВАЯ ИНФОРМАЦИЯ О ПИЛОТЕ --- */
.pilot-info-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.pilot-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pilot-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
}

.pilot-header-text {
    flex: 1;
}

.pilot-header-text h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
}

.pilot-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.pilot-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.badge-admin {
    background: #F59E0B !important;
    color: white !important;
}

.pilot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
}

.info-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.info-section h3 i {
    color: var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}
.rating-request-row {
    margin-top: 15px;
}

.rating-request-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.rating-select-wrap {
    min-width: 260px;
}

.rating-request-form .form-control {
    width: 100%;
    max-width: 320px;
}
/* --- Карточка "Наш авиапарк" --- */
.fleet-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-top: 24px;
}

.fleet-card-content {
    flex: 1 1 auto;
}

.fleet-subtitle {
    margin: 4px 0 12px 0;
    font-weight: 600;
    color: #111827;
}

.fleet-text {
    margin: 0 0 16px 0;
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fleet-card-image {
    flex: 0 0 320px;          /* ширина правого блока */
    border-radius: 16px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    min-height: 180px;
}

/* Адаптив: на телефоне картинка уходит вниз */
@media (max-width: 900px) {
    .fleet-card {
        flex-direction: column-reverse;
    }
    .fleet-card-image {
        width: 100%;
        flex: 0 0 180px;
    }
}

/* --- Обновленный вид табличек --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}

.data-table thead {
    background: #F3F4F6;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #4B5563;
    border-bottom: 1px solid #E5E7EB;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

.data-table tbody tr:nth-child(2n) {
    background: #F9FAFB;
}

.data-table tbody tr:hover {
    background: #EFF6FF;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}
/* Сетка авиапарка */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Карточка самолета */
.aircraft-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 18px 22px;
}

/* Внутренняя раскладка: текст слева, картинка справа */
.aircraft-card-main {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.aircraft-card-info {
    flex: 1 1 auto;
}

/* Шильдик "СРЕДНЕМАГИСТРАЛЬНЫЙ" и т.п. */
.aircraft-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #E5F0FF;
    color: #2563EB;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Заголовок и подзаголовок */
.aircraft-title {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.aircraft-subtitle {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #6B7280;
}

/* Линия-разделитель */
.aircraft-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 6px 0 12px 0;
}

/* Нижний блок из трёх колонок */
.aircraft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 4px;
}

.aircraft-meta-item {
    min-width: 110px;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9CA3AF;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2563EB;
}

/* Картинка хвоста справа */
.aircraft-card-image {
    flex: 0 0 200px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 18px;
    min-height: 120px;
}

/* Адаптив: на мобильном картинка вниз */
@media (max-width: 900px) {
    .aircraft-card-main {
        flex-direction: column-reverse;
    }
    .aircraft-card-image {
        flex: 0 0 150px;
        width: 100%;
    }
}
