/**
 * Cargo Shipping Tracking System - Main Stylesheet
 * Dark/Light Mode Support
 * Inspired by modern shipping app design
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors - Orange accent */
    --primary: #f97316;
    --primary-light: #fb923c;
    --primary-dark: #ea580c;
    --primary-rgb: 249, 115, 22;
    
    /* Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    /* Status Colors */
    --status-pending: #f59e0b;
    --status-transit: #3b82f6;
    --status-arrived: #8b5cf6;
    --status-out-delivery: #06b6d4;
    --status-delivered: #22c55e;
    
    --payment-paid: #22c55e;
    --payment-pending: #ef4444;
    
    /* Shadows */
    --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-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
}

/* Dark Mode - Deep Blue Theme */
[data-theme="dark"] {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-tertiary: #233554;
    --bg-card: #112240;
    --bg-input: #1d2d50;
    
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    
    --border-color: #233554;
    --border-light: #303c55;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

/* ==================== Layout ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Modern V2 Pill Buttons with Icons (Image Style) */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 260px;
    border: 1px solid transparent;
}

.btn-v2-text {
    flex-grow: 1;
    text-align: left;
    margin-right: 1.5rem;
}

.btn-v2-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-v2-solid {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-v2-solid {
    background-color: var(--text-primary); /* Dark background in light mode */
    color: var(--bg-secondary); /* Light text in light mode */
}

.btn-v2-solid .btn-v2-icon {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
}

[data-theme="light"] .btn-v2-solid .btn-v2-icon {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-v2-solid:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-tertiary);
    color: #000000 !important;
}

.btn-v2-solid:hover .btn-v2-icon {
    color: #000000 !important;
}

.btn-v2-outline {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-v2-outline .btn-v2-icon {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

.btn-v2-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* Primary Version of V2 Pill Button */
.btn-v2-primary {
    background-color: var(--primary);
    color: white;
}

.btn-v2-primary .btn-v2-icon {
    background-color: white;
    color: var(--primary);
}

.btn-v2-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    color: white;
}

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

.btn-success:hover {
    background-color: #16a34a;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* ==================== Cards ==================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

/* ==================== Navigation ==================== */
.navbar {
    height: 80px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background-color: var(--bg-secondary);
    position: sticky;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white; /* Default to white for transparent header */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.navbar.scrolled .navbar-brand {
    color: var(--text-primary);
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.75rem;
}

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

.navbar .nav-link {
    color: white !important; /* Force white for transparent header */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

.navbar.scrolled .nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .navbar-toggle {
    color: var(--text-primary);
}

.theme-toggle {
    color: white;
}

.navbar.scrolled .theme-toggle {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .navbar-brand i {
        font-size: 1.4rem;
    }

    .navbar-toggle {
        display: block;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #112240; /* Force Deep Blue for mobile menu visibility */
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    }
    
    .navbar-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        animation: slideIn 0.3s ease forwards;
    }

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* ==================== Hero Section V2 ==================== */
.hero-v2 {
    height: 100vh;
    min-height: 800px;
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(3px); /* Slightly increased blur for premium feel */
    z-index: 0;
    transform: scale(1.1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.4) 50%, rgba(10, 25, 47, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 0;
}

/* Background Large Text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .hero-bg-text {
    color: rgba(10, 25, 47, 0.03);
}

.hero-top-row {
    display: flex;
    justify-content: flex-end;
}

.hero-tagline {
    text-align: right;
}

.hero-tagline p {
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: white !important; /* Always white regardless of theme */
}

.tagline-line {
    width: 100px;
    height: 2px;
    background-color: var(--primary);
    margin-left: auto;
}

.hero-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-top: auto;
}

.hero-description h2 {
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    color: white !important; /* Always white regardless of theme */
}

.hero-stats-v2 {
    display: flex;
    gap: 3rem;
}

.stat-item-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
}

.stat-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.9;
    color: white !important; /* Always white in hero area */
}

.hero-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Button Styles */
.hero-btn-solid, .hero-btn-outline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 240px;
    transition: all var(--transition-normal);
}

.hero-btn-solid {
    background-color: white;
    color: var(--bg-primary);
}

.hero-btn-solid .btn-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.hero-btn-outline .btn-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-solid:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Tracking Section V2 */
.tracking-section-v2 {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.tracking-card-v2 {
    background-color: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.input-wrapper-v2 {
    flex: 1;
    position: relative;
}

.input-wrapper-v2 i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper-v2 input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem; /* Better for mobile touch and visibility */
    transition: all 0.3s ease;
}

.input-wrapper-v2 input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Optimized for Mobile */
@media (max-width: 768px) {
    .input-wrapper-v2 input {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .tracking-card-v2 form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tracking-card-v2 .btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Stats Grid Optimization */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid-v2 {
        gap: 2rem 1rem;
    }
}

/* Testimonial Images */
.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-bg-text { font-size: 20vw; }
    .hero-stats-v2 { gap: 1.5rem; }
    .hero-description h2 { font-size: 2rem; }
}

@media (max-width: 992px) {
    .hero-top-row {
        justify-content: center;
    }
    .hero-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-tagline { text-align: center; width: 100%; }
    .tagline-line { margin: 0 auto; }
    .hero-stats-v2 { margin: 2rem 0; }
    .hero-actions-v2 { width: 100%; max-width: 300px; }
}

@media (max-width: 768px) {
    .hero-v2 { height: auto; padding: 10rem 0 6rem; min-height: 100vh; }
    .hero-bg-text { display: none; }
    .hero-top-row { justify-content: center; }
    .hero-tagline { text-align: center; width: 100%; }
    .tagline-line { margin: 0 auto; }
    .hero-description h2 { font-size: 2.25rem; text-align: center; }
    .stat-num { font-size: 2.25rem; }
    .hero-stats-v2 { 
        flex-direction: row; 
        gap: 2rem; 
        margin: 3rem 0;
        justify-content: center;
    }
    .hero-actions-v2 { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-v2 { padding: 8rem 0 4rem; }
    .hero-description h2 { font-size: 2rem; }
    .hero-stats-v2 { gap: 1.5rem; }
    .stat-num { font-size: 1.75rem; }
    .hero-btn-solid, .hero-btn-outline { min-width: 100%; }
}

/* ==================== Contact & Quote Cards ==================== */
.contact-form, .quote-form-detailed {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-info-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

/* ==================== Page Header V2 ==================== */
.page-hero-v2 {
    padding: 12rem 0 6rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

[data-theme="light"] .page-hero-v2::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
    pointer-events: none;
}

.page-hero-v2.track-hero {
    background-image: url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaad5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.page-hero-v2.about-hero {
    background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.page-hero-v2.services-hero {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.page-hero-v2.contact-hero {
    background-image: url('https://images.unsplash.com/photo-1523966211575-eb4a01e7dd51?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.page-hero-v2.quote-hero {
    background-image: url('https://images.unsplash.com/photo-1454165833767-027ffea9e77b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.page-hero-v2 h1, 
.page-hero-v2 p {
    color: white !important;
    position: relative;
    z-index: 2;
}

.page-hero-v2 h1 {
    font-size: 3.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-hero-v2 p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.page-hero-v2 .container {
    position: relative;
    z-index: 5;
}

.page-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.03);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* ==================== Feature Cards Modern ==================== */
.feature-card {
    background-color: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;    height: 0;
    background-color: var(--primary);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-tertiary);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: white;
}

/* ==================== Tracking Form ==================== */
.tracking-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .tracking-form {
        padding: 1.5rem;
    }
    
    .tracking-form form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tracking-form .btn {
        width: 100%;
    }
}

.tracking-form .input-group {
    display: flex;
    gap: 0.75rem;
}

.tracking-form .form-control {
    flex: 1;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

.tracking-form .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ==================== Tracking Results ==================== */
.tracking-result {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-code {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.tracking-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Status Badges */
.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--status-pending);
}

.status-transit {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--status-transit);
}

.status-arrived {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--status-arrived);
}

.status-out-delivery {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--status-out-delivery);
}

.status-delivered {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--status-delivered);
}

.payment-paid {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--payment-paid);
}

.payment-pending {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--payment-pending);
}

/* Tracking Details Grid */
.tracking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border-color));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border: 4px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--status-delivered);
    box-shadow: 0 0 0 2px var(--status-delivered);
}

.timeline-item.active .timeline-marker {
    background-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 0 15px rgba(var(--primary-rgb), 0.5);
    animation: pulse 2s infinite;
}

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

.timeline-content {
    background-color: var(--bg-tertiary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== Admin Layout ==================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001; /* Above header */
    transition: transform var(--transition-normal), width var(--transition-normal);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.sidebar-search {
    padding: 1rem 1.5rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-wrapper .form-control {
    padding-left: 2.75rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Top Header */
.top-header {
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Logo and hamburger together */
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.mobile-logo {
    display: flex; /* Always visible in simplified header */
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mobile-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.mobile-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    order: -1; /* Toggle first, then logo */
}

/* Sidebar Toggle behavior on desktop */
@media (min-width: 1025px) {
    .mobile-toggle {
        display: none; /* Hide toggle on desktop as sidebar is visible */
    }
    
    .mobile-logo {
        display: none; /* Hide logo in header on desktop as it's in the sidebar */
    }
    
    .top-header {
        display: none; /* Hide header completely on desktop if it's only logo/toggle */
    }
    
    .main-content {
        margin-top: 0; /* Remove sticky header space */
    }
}

.header-search, .header-actions {
    display: none; /* Remove from header as per "clean header" requirement */
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Page Content */
.page-content {
    padding: 2rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ==================== Stats Cards ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

.stat-icon.blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-icon.orange {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.stat-icon.green {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==================== Tables ==================== */
.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
}

@media (min-width: 1025px) {
    .table-container {
        overflow: hidden; /* Keep this to clip the table corners on desktop */
    }
}

.table-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    display: block;
    position: relative;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Add a shadow to indicate scrolling on the right */
.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(var(--primary-rgb), 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.table-responsive.can-scroll-right::after {
    opacity: 1;
}

/* Ensure cells don't shrink too much */
.data-table th, .data-table td {
    min-width: 120px;
}

.data-table th:first-child, .data-table td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--bg-card);
    z-index: 3;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.data-table th:first-child {
    background-color: var(--bg-tertiary);
}

.table-responsive::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 1024px) {
    .data-table {
        min-width: 1000px; /* Force significant width on mobile to ensure swiping is possible */
    }
}

@media (min-width: 1025px) {
    .data-table {
        min-width: 100%;
    }
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* Prevent content wrapping to force horizontal scroll */
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 4; /* Higher than sticky column */
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

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

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--primary);
    color: white;
}

.action-btn.edit:hover {
    background-color: #3b82f6;
}

.action-btn.delete:hover {
    background-color: #ef4444;
}

/* ==================== Sections ==================== */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
}

/* ==================== Grid System ==================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Responsive Grid */
.responsive-grid-2-1 {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.settings-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .responsive-grid-2-1,
    .settings-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn {
        width: 40px;
        height: 40px;
        padding: 0;
        overflow: hidden;
        white-space: nowrap;
        text-indent: -9999px;
        position: relative;
    }
    
    .header-actions .btn i {
        text-indent: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== Service Cards Modern ==================== */
.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: -55px;
    position: relative;
    border: 5px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.service-content h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features li i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ==================== Quote Form ==================== */
.quote-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

/* ==================== Testimonials ==================== */
.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
}

.author-info h5 {
    font-size: 1rem;
}

.author-info p {
    font-size: 0.875rem;
}

/* ==================== Partner Logos ==================== */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    opacity: 0.5;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-section h2, .cta-section p {
    color: white;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand i {
    color: var(--primary);
}

.footer-links h5 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
}

/* ==================== Alerts ==================== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

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

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ==================== Login Page ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
}

/* ==================== Form Sections ==================== */
.form-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.form-section-title i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
    
    .detail-value {
        font-size: 0.875rem;
    }
    
    .btn-primary {
        width: 100%; /* Make buttons full width on small screens for easier clicking */
    }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .form-actions {
        justify-content: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

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

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==================== Not Found Page ==================== */
.not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.not-found-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.not-found h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.not-found p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.sidebar-overlay.active {
    display: block;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .admin-wrapper {
        display: block; /* Disable flex layout on mobile to avoid layout issues with fixed sidebar */
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px; /* Ensure full width on mobile */
        transition: transform var(--transition-normal);
        z-index: 1002;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .top-header {
        padding: 0 1rem;
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        width: 100% !important;
        left: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }
    
    .mobile-toggle {
        display: flex !important;
        margin-right: 0.5rem;
    }
    
    .mobile-logo {
        display: flex !important;
    }
    
    .header-search {
        order: 3;
        width: 100% !important;
        margin-top: 0.5rem;
    }
    
    .header-actions {
        order: 2;
        display: flex;
        justify-content: flex-end;
    }
    
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .tracking-form .input-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .page-header .btn {
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .page-title {
        font-size: 1.05rem;
    }
    
    .breadcrumb {
        display: none; /* Hide breadcrumbs on mobile to save space for the button */
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 6rem 0; min-height: 60vh; }
    .page-hero { padding: 8rem 0 4rem; }
    .page-hero h1 { font-size: 2.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .login-card {
        padding: 1.5rem;
    }
}

/* Copy button */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.copy-btn:hover {
    color: var(--primary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    justify-content: center;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.pagination a:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.pagination .active {
    background-color: var(--primary);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
