/* Modern Color Palette & UI/UX Design */

/* CSS Variables - Shadcn/UI Inspired Design System */
:root {
    /* Shadcn Slate Neutral Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    /* Primary Colors - Shadcn Blue (Header & Primary) */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;
    
    /* Secondary Colors - Indigo (Interline) */
    --secondary-50: #eef2ff;
    --secondary-100: #e0e7ff;
    --secondary-200: #c7d2fe;
    --secondary-300: #a5b4fc;
    --secondary-500: #6366f1;
    --secondary-600: #4f46e5;
    --secondary-700: #4338ca;
    --secondary-800: #3730a3;
    --secondary-900: #312e81;
    
    /* Success Colors - Green (Uçak Maliyet) */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --success-800: #166534;
    --success-900: #14532d;
    
    /* Warning Colors - Amber (TIR + Uçak) */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    /* Danger Colors - Red (Buttons) */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-900: #7f1d1d;
    
    /* Destination Colors - Teal (Varış Noktaları) */
    --destination-50: #f0fdfa;
    --destination-100: #ccfbf1;
    --destination-200: #99f6e4;
    --destination-500: #14b8a6;
    --destination-600: #0d9488;
    --destination-700: #0f766e;
    --destination-800: #115e59;
    --destination-900: #134e4a;
    
    /* Selection Colors - Pink (Seçim Formu) */
    --selection-50: #fdf2f8;
    --selection-100: #fce7f3;
    --selection-200: #fbcfe8;
    --selection-500: #ec4899;
    --selection-600: #db2777;
    --selection-700: #be185d;
    --selection-800: #9f1239;
    --selection-900: #831843;
    
    /* Background & Surface (Shadcn style) */
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #3b82f6;
    
    /* Legacy compatibility */
    --gray-50: var(--slate-50);
    --gray-100: var(--slate-100);
    --gray-200: var(--slate-200);
    --gray-300: var(--slate-300);
    --gray-400: var(--slate-400);
    --gray-500: var(--slate-500);
    --gray-600: var(--slate-600);
    --gray-700: var(--slate-700);
    --gray-800: var(--slate-800);
    --gray-900: var(--slate-900);
    --bg-primary: var(--slate-50);
    --bg-secondary: var(--background);
    --bg-tertiary: var(--slate-100);
    --text-primary: var(--foreground);
    --text-secondary: var(--slate-600);
    --text-tertiary: var(--slate-500);
    --text-inverse: #ffffff;
    
    /* Shadcn Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    
    /* Shadcn Border Radius */
    --radius-sm: 0.125rem;  /* 2px */
    --radius: 0.25rem;      /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-3xl: 1.5rem;   /* 24px */
    
    /* Legacy compatibility */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    
    /* Shadcn Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ring (focus ring) */
    --ring-width: 2px;
    --ring-offset: 2px;
    --ring-offset-color: var(--background);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--slate-50);
    color: var(--foreground);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    margin: 0;
    padding: 20px;
    max-width: 100%;
}

/* Modern Header - Professional Design */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--primary-800);
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.parite-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.parite-header label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.parite-header input {
    width: 100px;
    padding: 0.5rem 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    background: white;
    color: var(--primary-700);
    text-align: right;
    font-family: 'Courier New', monospace;
}

.parite-header input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.parite-update-time {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}

.btn-refresh-parite {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-refresh-parite:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-refresh-parite:active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-refresh-parite:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
    line-height: 1.3;
}

.btn-reset {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: var(--danger-600);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reset:active {
    background: var(--danger-700);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

/* Calculation Row */
.calculation-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: flex-start;
}

/* Data Sections Row (Varış Noktaları ve Interline - Yan Yana 2/5 - 3/5) */
.data-sections-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.section-destination {
    flex: 0 0 calc((100% - 10px) * 2 / 5);
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-width: calc((100% - 10px) * 2 / 5);
}

.section-interline {
    flex: 0 0 calc((100% - 10px) * 3 / 5);
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-width: calc((100% - 10px) * 3 / 5);
}

/* Data sections içindeki tablolar - Desktop'ta normal, mobilde scroll */
.section-destination .data-table,
.section-interline .data-table {
    display: table;
}

@media (max-width: 768px) {
    .section-destination .data-table,
    .section-interline .data-table {
        min-width: 800px; /* Mobilde scroll için */
        width: max-content;
    }
}

/* İçeriklerin taşmaması için - Desktop */
@media (min-width: 769px) {
    .section-destination,
    .section-interline {
        overflow: hidden;
    }
}

/* Mobilde scroll için overflow hidden'ı kaldır */
@media (max-width: 768px) {
    .section-destination,
    .section-interline {
        overflow: visible;
    }
}

/* Data sections için özel kompakt stil */
.section-destination,
.section-interline {
    padding: 10px !important;
    margin-bottom: 0 !important;
}

/* Varış Noktaları - Teal/Turquoise Theme */
.section-destination {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-color: var(--destination-200);
}

.section-destination::before {
    background: linear-gradient(90deg, var(--destination-500) 0%, var(--destination-600) 100%);
}

.section-destination:hover {
    border-color: var(--destination-300);
    background: linear-gradient(135deg, #ffffff 0%, #ccfbf1 100%);
}

.section-destination .section-title {
    padding: 0.5rem 0.625rem !important;
    margin: -10px -10px 0.5rem -10px !important;
    font-size: 0.85em !important;
    background: linear-gradient(135deg, var(--destination-500) 0%, var(--destination-600) 100%);
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Interline Havayolları - Indigo/Purple Theme */
.section-interline {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border-color: var(--secondary-200);
}

.section-interline::before {
    background: linear-gradient(90deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
}

.section-interline:hover {
    border-color: var(--secondary-300);
    background: linear-gradient(135deg, #ffffff 0%, #f0e7ff 100%);
}

.section-interline .section-title {
    padding: 0.5rem 0.625rem !important;
    margin: -10px -10px 0.5rem -10px !important;
    font-size: 0.85em !important;
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Modern Section Cards - Shadcn Style */
.section {
    background: var(--card);
    padding: 1.5rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
}

/* Desktop'ta overflow hidden */
@media (min-width: 769px) {
    .section {
        overflow: hidden;
    }
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-500);
    transition: all var(--transition-base);
    z-index: 0;
}

.section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--slate-300);
}

.section:hover::before {
    height: 4px;
}

/* Remove top accent line for all cards */
.section::before {
    display: none;
}

/* Navlun Section (3/5) - Ocean Blue Theme */
.section-navlun {
    flex: 0 0 calc((100% - 20px) * 3 / 5);
    min-width: 0;
    max-width: calc((100% - 20px) * 3 / 5);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-color: var(--primary-200);
}

.section-navlun::before {
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.section-navlun:hover {
    border-color: var(--primary-400);
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
}

.section-navlun .section-title {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    position: relative;
    z-index: 1;
}

/* Cost Section (1/5) - Base Styles */
.section-cost {
    flex: 0 0 calc((100% - 20px) * 1 / 5);
    min-width: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    max-width: calc((100% - 20px) * 1 / 5);
}

.section-cost .section-title {
    font-size: 0.85em;
    padding: 0.625rem 0.75rem;
    margin: -1.5rem -1.5rem 0.75rem -1.5rem;
    white-space: nowrap;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Uçak Maliyet - Emerald Green Theme */
.section-cost-aircraft {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf5 100%);
    border-color: var(--success-200);
}

.section-cost-aircraft::before {
    background: linear-gradient(90deg, var(--success-500) 0%, var(--success-600) 100%);
}

.section-cost-aircraft:hover {
    border-color: var(--success-300);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.section-cost-aircraft .section-title {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
}

/* TIR + Uçak Maliyet - Amber/Orange Theme */
.section-cost-tir {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: var(--warning-200);
}

.section-cost-tir::before {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-600) 100%);
}

.section-cost-tir:hover {
    border-color: var(--warning-300);
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
}

.section-cost-tir .section-title {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
}

.section-cost .cost-table {
    width: 100%;
    margin-top: 0;
}

.cost-table td,
.cost-table td span {
    color: #000000;
}

.data-table thead th,
.results-table thead th {
    color: #000000;
}

.iata-search {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.iata-search input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-md);
    background: var(--background);
}

.suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 50;
}

.search-bar-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-bar-top .iata-search {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--muted);
}

.section-search-results {
    margin-top: 12px;
}

.search-results-container {
    overflow-x: auto;
    margin-bottom: 12px;
}

.route-builder {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    align-items: start;
}

.segments-pool {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: var(--card);
    min-height: 120px;
}

.segment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 4px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: grab;
}

.segment-chip:active {
    cursor: grabbing;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 120px;
    background: var(--card);
}

.drop-zone.dragover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.route-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    background: var(--card);
}

/* Cost cards: remove top accent line and enforce black text */
.section-cost::before,
.section-cost-aircraft::before,
.section-cost-tir::before {
    display: none;
}

.section-cost .cost-table td,
.section-cost .cost-table td span,
.section-cost .currency,
.section-cost .currency span {
    color: #000000 !important;
}

/* Ensure black text in data and results tables across sections */
.data-table td,
.data-table td span {
    color: #000000 !important;
}

.results-table td,
.results-table td span {
    color: #000000 !important;
}

/* Modern Section Title - Default (will be overridden by section-specific styles) */
.section-title {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    color: var(--text-inverse);
    padding: 0.75rem 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    font-weight: 700;
    text-align: center;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Modern Data Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    font-size: 13px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: table;
}

/* Mobil için tabloların scroll edilebilmesi */
@media (max-width: 768px) {
    /* Section'ları scroll container yap */
    .section-navlun,
    .section-cost,
    .section-destination,
    .section-interline,
    .section-selection-form {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        position: relative;
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Container için negatif margin ile section'ları taşırarak full-width scroll */
    .container {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
    
    /* Section'ları container dışına taşı */
    .section-navlun,
    .section-cost,
    .section-destination,
    .section-interline,
    .section-selection-form {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: calc(100% + 1.5rem);
    }
    
    /* Scroll göstergesi için */
    .section-navlun::after,
    .section-cost::after,
    .section-destination::after,
    .section-interline::after {
        content: '';
        position: sticky;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, var(--card), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
        margin-left: -20px;
    }
}

@media (min-width: 769px) {
    .section-navlun,
    .section-cost,
    .section-destination,
    .section-interline,
    .section-selection-form {
        overflow-x: visible;
        overflow-y: visible;
    }
}

/* Data sections içindeki tablolar için kompakt stil */
.section-destination .data-table,
.section-interline .data-table {
    margin-top: 6px;
    font-size: 12px;
}

/* Data table headers - Section specific colors */
.data-table thead {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.section-navlun .data-table thead {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

.section-destination .data-table thead {
    background: linear-gradient(135deg, var(--destination-50) 0%, var(--destination-100) 100%);
}

.section-interline .data-table thead {
    background: linear-gradient(135deg, var(--secondary-50) 0%, var(--secondary-100) 100%);
}

.section-cost-aircraft .cost-table thead {
    background: linear-gradient(135deg, var(--success-50) 0%, var(--success-100) 100%);
}

.section-cost-tir .cost-table thead {
    background: linear-gradient(135deg, var(--warning-50) 0%, var(--warning-100) 100%);
}

.data-table th {
    padding: 6px 8px;
    text-align: left;
    border: none;
    border-bottom: 2px solid var(--gray-300);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--gray-100);
}

/* Data sections içindeki th için daha kompakt */
.section-destination .data-table th,
.section-interline .data-table th {
    padding: 5px 6px;
    font-size: 10px;
}

.data-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.data-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.data-table td {
    padding: 4px 6px;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
}

/* Data sections içindeki td için daha kompakt */
.section-destination .data-table td,
.section-interline .data-table td {
    padding: 3px 4px;
    font-size: 11px;
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

/* Zebra striping - Tek satırlar (1, 3, 5, ...) - Beyaz/Dolu */
.data-table tbody tr:nth-child(odd) {
    background: var(--bg-secondary);
    border-left: 3px solid transparent;
}

/* Zebra striping - Çift satırlar (2, 4, 6, ...) - Gri/Boş */
.data-table tbody tr:nth-child(even) {
    background: var(--gray-100);
    border-left: 3px solid var(--gray-300);
}

/* Navlun - Blue zebra striping */
.section-navlun .data-table tbody tr:nth-child(odd) {
    background: #ffffff;
    border-left: 3px solid var(--primary-200);
}

.section-navlun .data-table tbody tr:nth-child(even) {
    background: var(--primary-50);
    border-left: 3px solid var(--primary-300);
}

/* Varış Noktaları - Teal zebra striping */
.section-destination .data-table tbody tr:nth-child(odd) {
    background: #ffffff;
    border-left: 3px solid var(--destination-200);
}

.section-destination .data-table tbody tr:nth-child(even) {
    background: var(--destination-50);
    border-left: 3px solid var(--destination-300);
}

/* Interline Havayolları - Purple zebra striping */
.section-interline .data-table tbody tr:nth-child(odd) {
    background: #ffffff;
    border-left: 3px solid var(--secondary-200);
}

.section-interline .data-table tbody tr:nth-child(even) {
    background: var(--secondary-50);
    border-left: 3px solid var(--secondary-300);
}

/* Hover efekti - Section specific colors */
.data-table tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1;
    position: relative;
}

.section-navlun .data-table tbody tr:hover {
    background: var(--primary-100) !important;
    border-left-color: var(--primary-500) !important;
    box-shadow: 0 2px 6px rgba(0, 115, 230, 0.2);
}

.section-destination .data-table tbody tr:hover {
    background: var(--destination-100) !important;
    border-left-color: var(--destination-500) !important;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

.section-interline .data-table tbody tr:hover {
    background: var(--secondary-100) !important;
    border-left-color: var(--secondary-500) !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

.section-cost-aircraft .cost-table tbody tr:hover {
    background: var(--success-100) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.section-cost-tir .cost-table tbody tr:hover {
    background: var(--warning-100) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

/* Data sections içindeki input'lar için kompakt */
.section-destination .data-table input[type="number"],
.section-destination .data-table input[type="text"],
.section-destination .data-table select,
.section-interline .data-table input[type="number"],
.section-interline .data-table input[type="text"],
.section-interline .data-table select {
    padding: 3px 5px;
    font-size: 11px;
}

/* Data sections içindeki number input spin button'ları kaldır */
.section-destination .data-table input[type="number"]::-webkit-inner-spin-button,
.section-destination .data-table input[type="number"]::-webkit-outer-spin-button,
.section-interline .data-table input[type="number"]::-webkit-inner-spin-button,
.section-interline .data-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.section-destination .data-table input[type="number"],
.section-interline .data-table input[type="number"] {
    -moz-appearance: textfield; /* Firefox için */
}

/* Data sections içindeki calculated cell'ler için kompakt */
.section-destination .calculated,
.section-interline .calculated {
    padding: 3px 4px;
    font-size: 11px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modern Input Fields */
.data-table input[type="number"],
.data-table input[type="text"],
.data-table select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: inherit;
}

.data-table input[type="number"] {
    -moz-appearance: textfield; /* Firefox için spin button'ları kaldır */
}

/* Number input spin button'ları kaldır (Webkit tarayıcılar için) */
.data-table input[type="number"]::-webkit-inner-spin-button,
.data-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.data-table input[type="number"]:focus,
.data-table input[type="text"]:focus,
.data-table select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 var(--ring-width) var(--ring);
}

.data-table input[type="number"]:hover,
.data-table input[type="text"]:hover,
.data-table select:hover {
    border-color: var(--slate-400);
}

/* Calculated Cells - Section specific colors */
.calculated {
    background: linear-gradient(135deg, var(--success-50) 0%, #d1fae5 100%);
    font-weight: 700;
    text-align: right;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--success-700);
    border-left: 3px solid var(--success-500);
}

.section-navlun .calculated {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary-700);
    border-left: 3px solid var(--primary-500);
}

.section-destination .calculated {
    background: linear-gradient(135deg, var(--destination-50) 0%, var(--destination-100) 100%);
    color: var(--destination-700);
    border-left: 3px solid var(--destination-500);
}

.section-interline .calculated {
    background: linear-gradient(135deg, var(--secondary-50) 0%, var(--secondary-100) 100%);
    color: var(--secondary-700);
    border-left: 3px solid var(--secondary-500);
}

/* Total Cells */
.total-cell {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
    color: #000000 !important;
    font-weight: 700;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    text-shadow: none;
}

.total-value {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
    color: #000000 !important;
    font-weight: 700;
    text-align: right;
    font-size: 14px;
    padding: 10px 12px;
    text-shadow: none;
}

/* Modern Buttons */
.btn-add {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Data sections içindeki button için daha kompakt */
.section-destination .btn-add,
.section-interline .btn-add {
    padding: 6px 12px;
    font-size: 11px;
    margin-top: 4px;
}

.btn-add:hover {
    background: var(--success-700);
    box-shadow: var(--shadow);
}

.btn-add:focus {
    outline: none;
    box-shadow: 0 0 0 var(--ring-width) var(--success-500);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-delete {
    background: var(--danger-600);
    color: white;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-delete:hover {
    background: var(--danger-700);
    box-shadow: var(--shadow);
}

.btn-delete:focus {
    outline: none;
    box-shadow: 0 0 0 var(--ring-width) var(--danger-500);
}

.btn-delete:hover {
    background: linear-gradient(135deg, var(--danger-600) 0%, var(--danger-700) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-delete:active {
    transform: translateY(0);
}

/* Cost Section */
.cost-section {
    margin-bottom: 0;
    padding: 12px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    color: #000000;
}

.cost-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    margin-top: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    color: #000000;
    display: table;
}

/* Mobilde cost table scroll */
@media (max-width: 768px) {
    .cost-table {
        min-width: 280px;
        width: 100%;
    }
}

.cost-table td {
    padding: 5px 7px;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    white-space: nowrap;
    background: var(--bg-secondary);
    color: #000000 !important;
}

.cost-table tr:last-child td {
    border-bottom: none;
}

.cost-table td:first-child {
    font-weight: 600;
    width: 60%;
    font-size: 11px;
    padding: 5px 7px;
    white-space: normal;
    line-height: 1.4;
    color: #000000 !important;
}

.cost-table input[type="number"] {
    width: 75px;
    padding: 6px 8px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: #000000 !important;
    transition: all var(--transition-base);
    -moz-appearance: textfield; /* Firefox için spin button'ları kaldır */
}

/* Cost table number input spin button'ları kaldır (Webkit tarayıcılar için) */
.cost-table input[type="number"]::-webkit-inner-spin-button,
.cost-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cost-table input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cost-table .currency {
    text-align: right;
    font-weight: 700;
    color: #000000 !important;
    font-size: 12px;
    padding: 8px 10px;
}

/* Currency içindeki TÜM elementler (span, input, text) siyah */
.cost-table .currency *,
.cost-table .currency span,
.cost-table .currency input,
.cost-table tr:not(.total-row) .currency span,
.cost-table tr:not(.total-row) .currency input,
.cost-table tr:not(.total-row) .currency {
    color: #000000 !important;
}

/* ID'li span'lar için de siyah */
#istanbul_antalya,
#kar_marji,
#tir_istanbul_amsterdam,
#toplam_maliyet,
#tir_toplam_maliyet {
    color: #000000 !important;
}

/* Total row - Sarı arka plan üzerinde beyaz kalır */
.cost-table .total-row {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
    color: #000000 !important;
    font-weight: 700;
}

.cost-table .total-row td {
    font-size: 13px;
    padding: 6px 8px;
    font-weight: 700;
    color: #000000 !important;
    text-shadow: none;
}

/* Total row içindeki TÜM elementler beyaz */
.cost-table .total-row td.currency,
.cost-table .total-row .currency,
.cost-table .total-row .total,
.cost-table .total-row *,
.cost-table .total-row span,
.cost-table .total-row input {
    color: #000000 !important;
    text-shadow: none;
}

/* Total row içindeki ID'li span'lar da beyaz */
.cost-table .total-row #toplam_maliyet,
.cost-table .total-row #tir_toplam_maliyet {
    color: #000000 !important;
}

/* Parite Section */
.parite-section {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--primary-200);
}

.parite-section label {
    font-weight: 600;
    margin-right: 10px;
    font-size: 13px;
    color: var(--text-primary);
}

.parite-section input {
    padding: 8px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    width: 130px;
    background: var(--bg-secondary);
    transition: all var(--transition-base);
}

.parite-section input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filter Section */
.filter-section {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

/* Data sections içindeki filter için daha kompakt */
.section-destination .filter-section,
.section-interline .filter-section {
    margin-bottom: 6px;
    padding: 4px 6px;
}

.filter-section input,
.filter-section select {
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: inherit;
}

.filter-section select {
    cursor: pointer;
    min-width: 180px;
}

/* Data sections içindeki input için daha kompakt */
.section-destination .filter-section input,
.section-destination .filter-section select,
.section-interline .filter-section input,
.section-interline .filter-section select {
    padding: 4px 6px;
    font-size: 11px;
}

.filter-section input:focus,
.filter-section select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-section input {
    flex: 1;
    max-width: 300px;
}

.filter-section select {
    min-width: 150px;
}

/* Selection Form Styles - Pink/Magenta Theme */
.section-selection-form {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
    border-color: var(--selection-200);
}

.section-selection-form::before {
    background: linear-gradient(90deg, var(--selection-500) 0%, var(--selection-600) 100%);
}

.section-selection-form:hover {
    border-color: var(--selection-300);
    background: linear-gradient(135deg, #ffffff 0%, #fce7f3 100%);
}

.section-selection-form .section-title {
    background: linear-gradient(135deg, var(--selection-500) 0%, var(--selection-600) 100%);
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.selection-form-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

/* Form Grupları Kolonu (Sol - 1/7) */
.form-groups-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
    width: calc(100% / 7);
    max-width: calc(100% / 7);
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-select {
    padding: 8px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    cursor: pointer;
    font-family: inherit;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select:hover {
    border-color: var(--gray-400);
}

/* Results Table Styles */
.results-table-container {
    flex: 6;
    min-width: 0;
    width: calc((100% / 7) * 6);
    max-width: calc((100% / 7) * 6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
}

.results-table th {
    padding: 10px 12px;
    text-align: left;
    border: none;
    border-bottom: 2px solid var(--primary-700);
    font-weight: 700;
    font-size: 12px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.results-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.results-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.results-table td {
    padding: 6px 8px;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    background: var(--bg-secondary);
}

.results-table tbody tr {
    transition: all var(--transition-fast);
}

.results-table tbody tr:nth-child(odd) {
    background: var(--bg-secondary);
}

.results-table tbody tr:nth-child(even) {
    background: var(--gray-100);
}

.results-table tbody tr:hover {
    background: var(--primary-50) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.results-table .no-results {
    text-align: center;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 20px;
    background: var(--gray-50);
}

.results-table .calculated {
    background: linear-gradient(135deg, var(--success-50) 0%, #d1fae5 100%);
    font-weight: 700;
    text-align: right;
    color: var(--success-700);
    border-left: 3px solid var(--success-500);
}

.results-table td strong {
    color: var(--primary-700);
    font-weight: 700;
}

/* En Uygun Seçenek Vurgulama */
.results-table tbody tr.best-option {
    background: linear-gradient(135deg, var(--success-50) 0%, #d1fae5 100%) !important;
    border: 2px solid var(--success-500);
    border-left: 4px solid var(--success-600);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
    font-weight: 600;
    /* Transform kaldırıldı - tablo yerleşimini bozmaması için */
}

.results-table tbody tr.best-option td {
    background: transparent;
    color: var(--success-800);
    font-weight: 600;
}

.results-table tbody tr.best-option:hover {
    background: linear-gradient(135deg, var(--success-100) 0%, #bbf7d0 100%) !important;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.25);
    /* Transform kaldırıldı */
}

.results-table tbody tr.best-option td strong {
    color: var(--success-700);
    font-weight: 800;
    font-size: 14px;
}

.results-table tbody tr.recommended {
    position: relative;
}

.results-table tbody tr.recommended td:first-child::before {
    content: '⭐';
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Öneri Mesajı - Tablonun Altında */
.recommendation-message-container {
    margin-top: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary-50) 0%, #dbeafe 100%);
    border: 1px solid var(--primary-300);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.recommendation-message-container .recommendation-message {
    font-size: 13px;
    line-height: 1.7;
    color: var(--primary-800);
    text-align: left;
}

.recommendation-message-container .recommendation-message strong {
    color: var(--primary-700);
    font-weight: 700;
}

/* Sıralama İndikatörleri */
.results-table tbody tr[data-price] {
    cursor: pointer;
    transition: all var(--transition-base);
}

.results-table tbody tr[data-price]:hover {
    background: var(--primary-50) !important;
}

/* Filtreleme ve Sıralama Stilleri (gelecekte eklenecek) */
.results-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.results-controls select,
.results-controls button {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-size: 12px;
    cursor: pointer;
}

.results-controls select:focus,
.results-controls button:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0.75rem;
    }

    header {
        flex-direction: column;
        gap: 0.875rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .parite-header {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0.5rem 0.875rem;
        gap: 0.5rem;
    }

    .parite-header label {
        font-size: 0.8125rem;
    }

    .parite-header input {
        width: 85px;
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }

    .parite-update-time {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    .btn-refresh-parite {
        min-width: 32px;
        height: 32px;
        padding: 0.375rem;
    }

    header h1 {
        order: -1;
        font-size: 1.125rem;
        margin: 0;
        line-height: 1.4;
    }

    .btn-reset {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
    }

    .section-title {
        padding: 0.625rem 1rem;
        margin: -1rem -1rem 0.75rem -1rem;
        font-size: 0.875rem;
    }

    .calculation-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .section-navlun,
    .section-cost {
        width: 100%;
        max-width: 100%;
        flex: 1;
    }

    /* Mobilde data sections alt alta */
    .data-sections-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-destination,
    .section-interline {
        width: 100%;
        max-width: 100%;
        flex: 1;
        padding: 0.75rem !important;
    }

    /* Tablolar için minimum genişlik - scroll için */
    .data-table,
    .cost-table,
    .results-table {
        font-size: 0.75rem;
        min-width: 650px; /* Minimum genişlik mobilde scroll için */
        width: max-content; /* İçeriğe göre genişlik */
        display: table;
    }
    
    /* Navlun tablosu için özel */
    #navlunTable {
        min-width: 700px;
    }
    
    /* Cost table için */
    .cost-table {
        min-width: 300px;
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .data-table th {
        font-size: 0.6875rem;
        padding: 0.5rem 0.375rem;
    }

    .section-destination .data-table th,
    .section-interline .data-table th {
        font-size: 0.625rem;
        padding: 0.375rem 0.25rem;
    }

    .section-destination .data-table td,
    .section-interline .data-table td {
        padding: 0.25rem 0.375rem;
        font-size: 0.6875rem;
    }

    .cost-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        padding: 0.5rem;
    }

    .filter-section input,
    .filter-section select {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }

    /* Selection form responsive */
    .selection-form-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-groups-column {
        width: 100%;
        max-width: 100%;
        flex: none;
        gap: 0.75rem;
    }
    
    .results-table-container {
        width: 100%;
        max-width: 100%;
        flex: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-group {
        width: 100%;
        min-width: 100%;
    }

    .form-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .form-select {
        width: 100%;
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }

    .results-table {
        font-size: 0.75rem;
        min-width: 700px; /* Minimum genişlik */
    }

    .results-table th,
    .results-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .btn-add {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-delete {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }

    .calculated {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .total-cell,
    .total-value {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Çok küçük ekranlar için (480px ve altı) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0.5rem;
    }

    header {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    header h1 {
        font-size: 1rem;
    }

    .parite-header {
        padding: 0.375rem 0.625rem;
        gap: 0.375rem;
    }

    .parite-header input {
        width: 75px;
        padding: 0.3125rem 0.4375rem;
        font-size: 0.75rem;
    }

    .section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .section-title {
        padding: 0.5rem 0.75rem;
        margin: -0.75rem -0.75rem 0.625rem -0.75rem;
        font-size: 0.8125rem;
    }

    .data-table,
    .cost-table,
    .results-table {
        font-size: 0.6875rem;
        min-width: 500px;
    }

    .data-table th,
    .data-table td {
        padding: 0.3125rem 0.375rem;
        font-size: 0.6875rem;
    }

    .data-table th {
        font-size: 0.625rem;
        padding: 0.4375rem 0.3125rem;
    }

    .section-destination .data-table th,
    .section-interline .data-table th {
        font-size: 0.5625rem;
        padding: 0.3125rem 0.25rem;
    }

    .section-destination .data-table td,
    .section-interline .data-table td {
        padding: 0.1875rem 0.3125rem;
        font-size: 0.625rem;
    }

    .btn-add,
    .btn-reset {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn-delete {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }
}

/* Additional Modern Enhancements */
.section {
    font-size: 13px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-500);
    color: white;
}

::-moz-selection {
    background: var(--primary-500);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
