/* Gromci Lojistik - Premium Modern CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-nav: rgba(7, 9, 14, 0.88);
    --bg-sidebar: rgba(11, 15, 23, 0.95);
    --primary: #EF4444; /* Electric Red Accent */
    --primary-hover: #DC2626;
    --primary-glow: rgba(239, 68, 68, 0.35);
    --secondary: #3B82F6; /* Vibrant Blue */
    --success: #10B981; /* Emerald Green */
    --warning: #F59E0B; /* Amber Gold */
    --info: #06B6D4; /* Cyan */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(239, 68, 68, 0.2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-main: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-title: 'Outfit', 'Inter', sans-serif;
}

/* Light Theme Preset */
body.theme-light {
    --bg-dark: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-sidebar: rgba(248, 250, 252, 0.98);
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --text-main: #0F172A;
    --text-muted: #334155;
    --border-light: rgba(15, 23, 42, 0.12);
}

/* Cyber Theme Preset */
body.theme-cyber {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(31, 41, 55, 0.95);
    --bg-nav: rgba(17, 24, 39, 0.90);
    --bg-sidebar: rgba(15, 23, 42, 0.95);
    --primary: #06B6D4;
    --primary-hover: #0891B2;
    --primary-glow: rgba(6, 182, 212, 0.35);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-light: rgba(6, 182, 212, 0.2);
}

/* Hero Carousel Slider */
.hero-slide {
    display: none;
    animation: slideFade 0.6s ease-in-out;
}
.hero-slide.active {
    display: block;
}
@keyframes slideFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 10px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(239, 68, 68, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
}

[id^="sec-"] {
    scroll-margin-top: 95px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav, rgba(7, 9, 14, 0.88));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #B91C1C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-logo .brand-text h1 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--text-main);
}

.brand-logo .brand-text span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

/* Hero Section */
.hero {
    padding: 160px 2rem 80px 2rem;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-family: var(--font-title);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-content h2 span {
    background: linear-gradient(135deg, #EF4444, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Tracking Bar Box */
.tracking-box {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tracking-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.tracking-input-group {
    display: flex;
    gap: 10px;
}

.tracking-input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.2rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.tracking-input-group input:focus {
    border-color: var(--primary);
}

.tracking-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: none;
}

/* Balkan Routes Section */
.section {
    padding: 90px 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header span {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.section-header h3 {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 6px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.route-card {
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.route-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.route-card .country-flag {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.route-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.route-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.route-card .badge {
    margin-top: 1rem;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-item {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--primary-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem auto;
}

html {
    scroll-behavior: smooth;
}

/* Dashboard Layout */
.dashboard-container {
    padding-top: 80px;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--bg-sidebar, rgba(11, 15, 23, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 90;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background: var(--primary-glow);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Leaflet Map */
#fleetMap {
    height: 480px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    z-index: 1;
}

/* Data Table */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-yolda { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-gumruk { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-teslim { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-atandi { background: rgba(139, 92, 246, 0.2); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.4); }

/* Modal Overlay & Backdrop Popup System */
.modal-overlay, .modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 7, 18, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 1rem !important;
}

.modal-overlay.active, .modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: popupFadeIn 0.25s ease-out forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content, .modal-box {
    width: 100% !important;
    max-width: 560px !important;
    padding: 2rem !important;
    border-radius: 18px !important;
    position: relative !important;
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(96, 165, 250, 0.2) !important;
    margin: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;

}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: rgba(7, 9, 14, 0.95);
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
