/* Modern Uçak Bileti Sistemi CSS - 2026 Model */

:root {
    --primary-color: #ff3c10;
    --primary-dark: #e0330e;
    --secondary-color: #667eea;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
}

/* Modern Flight Search Form */
.flight-search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 40px;
    margin-top: -80px;
    position: relative;
    overflow: hidden;
}

.flight-search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.flight-search-hero .container {
    position: relative;
    z-index: 1;
}

.flight-search-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flight-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.search-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.search-form-header p {
    color: #6b7280;
    font-size: 16px;
}

/* Modern Form Controls */
.form-group-modern {
    position: relative;
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-control-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 60, 16, 0.1);
}

.form-control-modern:hover {
    border-color: #d1d5db;
}

/* Swap Button */
.swap-airports-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swap-airports-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translate(-50%, -50%) rotate(180deg);
}

.swap-airports-btn:hover i {
    color: #fff;
}

.swap-airports-btn i {
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Modern Button */
.btn-modern {
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary-modern:active {
    transform: translateY(0);
}

/* Flight Results Cards */
.flight-results-section {
    padding: 60px 0;
    background: #f9fafb;
}

.flight-card-modern {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.flight-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.flight-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.flight-card-modern:hover::before {
    transform: scaleY(1);
}

.flight-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.flight-info-row:last-child {
    border-bottom: none;
}

.flight-time {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.flight-airport {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.flight-date {
    font-size: 12px;
    color: #9ca3af;
}

.flight-duration {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    position: relative;
}

.flight-duration::before,
.flight-duration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e5e7eb;
}

.flight-duration::before {
    left: 0;
}

.flight-duration::after {
    right: 0;
}

.duration-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.stops-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.stops-badge.direct {
    background: #d1fae5;
    color: #065f46;
}

.stops-badge.stop {
    background: #fef3c7;
    color: #92400e;
}

.flight-price {
    text-align: right;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.price-label {
    font-size: 12px;
    color: #6b7280;
}

.btn-select-flight {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-select-flight:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 60, 16, 0.3);
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 8px;
}

.filter-option:hover {
    background: #f9fafb;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    flex: 1;
}

.price-range-slider {
    width: 100%;
    margin: 20px 0;
}

/* Customer Panel Modern */
.customer-panel-wrapper {
    padding: 40px 0;
    background: #f9fafb;
    min-height: 100vh;
}

.panel-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 30px;
}

.user-profile-card {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.points-badge-modern {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.panel-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.panel-menu-item:last-child {
    border-bottom: none;
}

.panel-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.panel-menu-link:hover {
    background: #f9fafb;
    color: var(--primary-color);
    padding-left: 28px;
}

.panel-menu-link.active {
    background: #fef2f2;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.panel-menu-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stat-card.primary {
    border-top-color: var(--primary-color);
}

.stat-card.success {
    border-top-color: var(--success-color);
}

.stat-card.warning {
    border-top-color: var(--warning-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card.primary .stat-icon {
    background: #fef2f2;
    color: var(--primary-color);
}

.stat-card.success .stat-icon {
    background: #d1fae5;
    color: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: #fef3c7;
    color: var(--warning-color);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

/* Modern Table */
.table-modern {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-modern thead {
    background: #f9fafb;
}

.table-modern th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern td {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    color: #374151;
}

.table-modern tbody tr {
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state-text {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .search-form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .swap-wrapper {
        order: 2;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }
    
    .swap-btn {
        transform: rotate(90deg);
    }
    
    .search-button-wrapper {
        grid-column: 1 !important;
        order: 100;
    }
    
    .return-date-wrapper {
        display: block !important;
        opacity: 1 !important;
    }
    
    .return-date-wrapper.hidden {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .flight-search-card {
        padding: 24px;
    }
    
    .flight-info-row {
        flex-direction: column;
        text-align: center;
    }
    
    .flight-duration {
        padding: 20px 0;
    }
    
    .flight-duration::before,
    .flight-duration::after {
        width: 40%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
