/* ==========================================================================
   Logidist Ltd — Main Stylesheet
   A complete custom CSS framework for the corporate site, vault portal,
   and admin panel. No Bootstrap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
    /* Colours */
    --color-primary:         #0A2463;
    --color-primary-light:   #1a3a7a;
    --color-primary-dark:    #061844;
    --color-accent:          #10B981;
    --color-accent-hover:    #059669;
    --color-accent-light:    #d1fae5;
    --color-gold:            #D4A843;
    --color-orange:          #F97316;

    --color-text:            #1F2937;
    --color-text-light:      #6B7280;
    --color-text-muted:      #9CA3AF;
    --color-white:           #FFFFFF;

    --color-bg:              #FFFFFF;
    --color-bg-alt:          #F9FAFB;
    --color-bg-dark:         #0F172A;
    --color-bg-dark-lighter: #1E293B;

    --color-border:          #E5E7EB;
    --color-border-dark:     #D1D5DB;

    --color-success:         #10B981;
    --color-success-bg:      #ECFDF5;
    --color-danger:          #EF4444;
    --color-danger-bg:       #FEF2F2;
    --color-warning:         #F59E0B;
    --color-warning-bg:      #FFFBEB;
    --color-info:            #3B82F6;
    --color-info-bg:         #EFF6FF;

    /* Typography */
    --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Radii */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;

    /* Motion */
    --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   1. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

table { border-collapse: collapse; }

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem;font-weight: 600; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.875rem;font-weight:600; }

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text);
}

small { font-size: 0.875rem; }

strong { font-weight: 600; }

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   4. Grid
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   5. Flex Utilities
   -------------------------------------------------------------------------- */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column  { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem;   }
.gap-3 { gap: 1.5rem; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border-dark);
    color: var(--color-text);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger);
}
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: var(--color-white);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }

.btn-block { width: 100%; text-align: center; }

.btn-icon { gap: 0.5rem; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-danger);
    margin-top: 0.375rem;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-row > * { flex: 1; }

/* --------------------------------------------------------------------------
   9. Navigation / Navbar
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.navbar-brand:hover { color: var(--color-primary); }

.navbar-brand img,
.site-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Footer logo — already white, no filter needed */
.footer-logo img,
.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: none;
}

/* Sidebar logo (admin/vault) */
.sidebar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* CTA button in navbar */
.nav-cta {
    flex-shrink: 0;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.nav-mobile {
    display: none;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.nav-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile-links a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-mobile-links a:hover,
.nav-mobile-links a.active {
    color: var(--color-primary);
}

.nav-mobile-links li:last-child a {
    border-bottom: none;
}

.nav-mobile-cta {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    background-image: url('../img/hero-vault.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.7;
    color: var(--color-white);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   11. Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   12. Service Cards
   -------------------------------------------------------------------------- */
.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   13. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    opacity: 0.8;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent-light);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-role {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   15. Trust Badges
   -------------------------------------------------------------------------- */
.trust-section {
    padding: 40px 0;
    text-align: center;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.trust-badge {
    padding: 0.75rem 1.5rem;
    opacity: 0.6;
    transition: var(--transition);
}

.trust-badge:hover {
    opacity: 1;
}

.trust-badge img {
    max-height: 48px;
    width: auto;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column a {
    color: var(--color-text-muted);
    display: block;
    padding: 4px 0;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: var(--color-white);
}

/* Footer brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}



.footer-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Footer contact list */
.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--color-accent);
    width: 20px;
    margin-top: 4px;
    flex-shrink: 0;
    text-align: center;
}

.footer-contact a {
    color: var(--color-text-muted);
    display: inline;
    padding: 0;
}
.footer-contact a:hover {
    color: var(--color-white);
}

/* Footer social */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-bg-dark-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding: 0;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid var(--color-bg-dark-lighter);
    padding: 1.5rem 0;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    color: var(--color-text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding: 0;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.footer-sep {
    color: var(--color-bg-dark-lighter);
}

/* --------------------------------------------------------------------------
   17. Alerts
   -------------------------------------------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0;
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 0;
    right: 0;
    z-index: 1100;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-message { flex: 1; }

.alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: #065f46;
}

.alert-danger,
.alert-error {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: #991b1b;
}

.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning);
    color: #92400e;
}

.alert-info {
    background: var(--color-info-bg);
    border-color: var(--color-info);
    color: #1e40af;
}

.alert-close {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.25rem;
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   18. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
    background: var(--color-bg-alt);
    padding: 1rem 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
}

.breadcrumb li + li::before {
    content: '/';
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .active {
    color: var(--color-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   19. Tables
   -------------------------------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th {
    background: var(--color-bg-alt);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.table tbody tr:hover {
    background: var(--color-bg-alt);
}

.table-striped tbody tr:nth-child(even) {
    background: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   20. Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger);  }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info);    }
.badge-primary { background: rgba(10,36,99,0.1);     color: var(--color-primary); }

/* --------------------------------------------------------------------------
   21. Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   22. Timeline (for package tracking)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item.active::before {
    background: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent), 0 0 8px rgba(16,185,129,0.4);
}

.timeline-content {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.timeline-date {
    color: var(--color-text-light);
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* --------------------------------------------------------------------------
   23. Sidebar (for vault / admin)
   -------------------------------------------------------------------------- */
.sidebar {
    width: 260px;
    background: var(--color-bg-dark);
    min-height: 100vh;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-bg-dark-lighter);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-brand span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

.sidebar-nav a {
    color: var(--color-text-muted);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav a:hover {
    background: var(--color-bg-dark-lighter);
    color: var(--color-white);
}

.sidebar-nav a.active {
    background: var(--color-accent);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   24. Dashboard / Admin Layout
   -------------------------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--color-bg-alt);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-card-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Admin body */
.admin-body {
    background: var(--color-bg-alt);
}

/* Sidebar toggle button */
.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
}
.sidebar-toggle:hover {
    background: var(--color-bg-alt);
}

/* Notification bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.125rem;
    color: var(--color-text-light);
    transition: var(--transition);
}
.notification-bell:hover {
    color: var(--color-primary);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 0 4px;
}

/* Sidebar logout link */
.sidebar-nav a.logout-link {
    color: var(--color-danger);
    margin-top: 0.5rem;
}
.sidebar-nav a.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

/* Sidebar brand h3 + small */
.sidebar-brand h3 {
    color: var(--color-white);
    margin: 0;
}
.sidebar-brand small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

/* Grid display utility */
.d-grid { display: grid; }

/* Align items center (flex) */
.align-center { align-items: center; }

/* Badge accent */
.badge-accent { background: var(--color-accent-light); color: var(--color-accent); }

/* Badge gray */
.badge-gray { background: #f3f4f6; color: #6b7280; }

/* Form select styling */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
    appearance: auto;
}
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.15);
}

/* Card footer info text */
.card-footer code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   25. Login Split Layout
   -------------------------------------------------------------------------- */
.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-brand {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.login-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.login-brand h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.login-brand p {
    color: rgba(255,255,255,0.8);
    max-width: 380px;
}

.login-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-form {
    width: 100%;
    max-width: 420px;
}

.login-form h2 {
    margin-bottom: 0.5rem;
}

.login-form p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.login-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.login-form .form-options a {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   26. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination .active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   27. Page Header (for inner pages)
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   28. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem;
}

/* --------------------------------------------------------------------------
   29. Utilities
   -------------------------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text colours */
.text-primary { color: var(--color-primary) !important; }
.text-accent  { color: var(--color-accent)  !important; }
.text-light   { color: var(--color-text-light) !important; }
.text-muted   { color: var(--color-text-muted) !important; }
.text-white   { color: var(--color-white) !important; }
.text-danger  { color: var(--color-danger) !important; }
.text-success { color: var(--color-success) !important; }

/* Text sizes */
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Font weight */
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-normal   { font-weight: 400; }

/* Margin top */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem;   }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem;   }
.mt-5 { margin-top: 3rem;   }

/* Margin bottom */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem;   }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem;   }
.mb-5 { margin-bottom: 3rem;   }

/* Margin left / right */
.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem;   }
.ml-3 { margin-left: 1.5rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem;   }
.mr-3 { margin-right: 1.5rem; }

/* Padding */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem;   }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem;   }
.p-5 { padding: 3rem;   }

/* Display */
.d-none   { display: none;   }
.d-block  { display: block;  }
.d-flex   { display: flex;   }
.d-grid   { display: grid;   }
.d-inline { display: inline; }

/* Width / Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Misc */
.mx-auto          { margin-left: auto; margin-right: auto; }
.overflow-hidden  { overflow: hidden; }
.position-relative { position: relative; }
.rounded          { border-radius: var(--radius-md); }
.rounded-full     { border-radius: var(--radius-full); }
.shadow           { box-shadow: var(--shadow-md); }
.shadow-lg        { box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   30. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet / medium screens */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .hero h1 { font-size: 2.5rem; }
    .hero { min-height: 500px; }

    .admin-content { padding: 1.5rem; }
}

/* Mobile / small screens */
@media (max-width: 768px) {
    /* Responsive logos */
    .navbar-brand img,
    .site-logo {
        height: 35px;
        max-width: 150px;
    }
    .footer-logo img,
    .footer-logo-img {
        height: 30px;
        max-width: 140px;
    }
    .sidebar-logo {
        height: 30px;
    }

    /* Show hamburger, hide desktop nav */
    .nav-toggle { display: flex; }
    .nav-links  { display: none; }
    .nav-cta    { display: none; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: 2rem; }
    .hero p  { font-size: 1.0625rem; }
    .hero { min-height: 450px; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.5rem; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section { padding: 48px 0; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 2rem; }

    /* Login layout stacks */
    .login-layout { grid-template-columns: 1fr; }
    .login-brand  { display: none; }

    /* Sidebar collapses */
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 1rem;
        display: none;
    }
    .sidebar.active { display: block; }
    .admin-content { margin-left: 0; padding: 1rem; }
    .sidebar-toggle { display: inline-flex; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .container { padding-left: 1rem; padding-right: 1rem; }

    .hero h1 { font-size: 1.75rem; }
    .hero { min-height: 400px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }

    .btn-lg { padding: 14px 24px; font-size: 1rem; }

    .form-row { flex-direction: column; gap: 0; }
}

/* Responsive display utilities */
@media (max-width: 768px) {
    .d-md-none   { display: none; }
    .d-md-block  { display: block; }
    .d-md-flex   { display: flex; }
}

@media (min-width: 769px) {
    .d-md-none { display: none !important; }
}

/* --------------------------------------------------------------------------
   31. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.modal-overlay.active { animation: fadeIn 0.2s ease; }
.alert { animation: slideDown 0.3s ease; }

/* --------------------------------------------------------------------------
   32. Tracking Page Styles
   -------------------------------------------------------------------------- */

/* ── Base Card ─────────────────────────────────────────── */
.tracking-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    color: #E2E8F0;
}

.tracking-card .form-label {
    color: #94A3B8;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.tracking-card .form-help {
    color: #64748B;
}
.tracking-card .form-control {
    background: #0F172A;
    border-color: #334155;
    color: #F1F5F9;
}
.tracking-card .form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.tracking-card .form-control::placeholder {
    color: #475569;
}

/* ── Header: Tracking # + Badge ────────────────────────── */
.tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 1.25rem;
}
.tracking-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F1F5F9;
    letter-spacing: 0.025em;
}
.tracking-number i { color: #3B82F6; }
.tracking-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* ── Progress Bar ──────────────────────────────────────── */
.tracking-progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 1.25rem 0 1.5rem;
    padding: 0 0.25rem;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    z-index: 1;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0F172A;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748B;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}
.progress-step.reached .step-circle {
    color: #fff;
    border-color: transparent;
}
.progress-step.active .step-circle {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.step-pulse {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    50%  { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(0.8); opacity: 1; }
}
.step-num { font-size: 0.75rem; font-weight: 600; }
.step-label {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: #64748B;
    text-align: center;
    white-space: nowrap;
}
.progress-step.reached .step-label,
.progress-step.active .step-label {
    color: #CBD5E1;
    font-weight: 500;
}
.step-connector {
    position: absolute;
    top: 18px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 3px;
    background: #334155;
    border-radius: 2px;
    z-index: 0;
}

/* ── Progress Status Message ───────────────────────────── */
.progress-status-msg {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #94A3B8;
    margin: -0.75rem 0 1.25rem;
}

/* ── Admin Notice ──────────────────────────────────────── */
.tracking-notice {
    background: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 1.25rem;
}
.tracking-notice .notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.tracking-notice .notice-icon { color: #F59E0B; font-size: 1.1rem; }
.tracking-notice .notice-title { font-weight: 600; color: #92400E; font-size: 0.95rem; }
.tracking-notice .notice-body { color: #78350F; line-height: 1.6; margin: 0; font-size: 0.9rem; }

/* ── Dates Row ─────────────────────────────────────────── */
.tracking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #334155;
    margin-bottom: 16px;
}
.date-item label {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 500;
}
.date-item .date-value {
    font-size: 0.95rem;
    color: #F1F5F9;
    font-weight: 500;
}
.date-pending {
    color: #F59E0B;
    font-style: italic;
    font-size: 0.88rem;
}

/* ── Parties Row (Sender / Recipient) ─────────────────── */
.tracking-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    margin-bottom: 12px;
}
.party-item label {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 500;
}
.party-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: #E2E8F0;
}

/* ── Route Display (From → To) ────────────────────────── */
.tracking-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 0 8px;
    text-align: center;
}
.route-point {
    flex: 1;
}
.route-label {
    font-size: 0.68rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 500;
}
.route-city {
    font-size: 1rem;
    color: #F1F5F9;
    font-weight: 600;
    line-height: 1.3;
}
.route-connector {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3B82F6;
    font-size: 1rem;
    flex-shrink: 0;
}
.route-line {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #334155, #3B82F6);
    border-radius: 2px;
}
.route-connector i {
    font-size: 1.1rem;
    color: #3B82F6;
}

/* ── Section Title ─────────────────────────────────────── */
.tracking-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #CBD5E1;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}
.tracking-section-title i { color: #3B82F6; }

/* ── Timeline ──────────────────────────────────────────── */
.tracking-timeline {
    position: relative;
    padding: 8px 0 0;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #334155;
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    padding-left: 52px;
    padding-bottom: 28px;
}
.timeline-entry:last-child {
    padding-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #334155;
    background: #1E293B;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #475569;
}
.timeline-dot.completed {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}
.timeline-dot.current {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
    animation: pulse 2s infinite;
}
.timeline-dot.future {
    background: #475569;
    border-color: #475569;
    color: #64748B;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55); }
    50%       { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); }
}

/* Timeline content */
.timeline-info {
    min-width: 0;
}
.timeline-status {
    font-weight: 600;
    font-size: 0.95rem;
    color: #F1F5F9;
    margin-bottom: 4px;
    line-height: 1.3;
}
.timeline-location {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.timeline-location i {
    color: #F59E0B;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.timeline-date {
    color: #64748B;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

/* Future entries are greyed out */
.timeline-entry:has(.timeline-dot.future) .timeline-status {
    color: #475569;
}
.timeline-entry:has(.timeline-dot.future) .timeline-location {
    color: #334155;
}
.timeline-entry:has(.timeline-dot.future) .timeline-date {
    color: #334155;
}

/* State labels */
.timeline-state-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}
.timeline-state-label.current {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}
.timeline-state-label.completed {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

/* Empty timeline state */
.timeline-empty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #64748B;
    font-size: 0.9rem;
    padding: 1.25rem 0 0.5rem;
}
.timeline-empty i {
    color: #3B82F6;
    font-size: 1rem;
}

/* ── Tracking Responsive ───────────────────────────────── */
@media (max-width: 600px) {
    .tracking-card { padding: 1.15rem; }
    .tracking-header { flex-direction: column; align-items: flex-start; }
    .tracking-dates { grid-template-columns: 1fr; gap: 12px; }
    .tracking-parties { grid-template-columns: 1fr; gap: 10px; }
    .tracking-route { flex-direction: column; gap: 10px; }
    .route-connector { transform: rotate(90deg); }
    .route-point { text-align: center; }
    .step-label { font-size: 0.62rem; }
    .step-circle { width: 30px; height: 30px; font-size: 0.7rem; }
    .step-connector { top: 15px; left: calc(50% + 17px); right: calc(-50% + 17px); }
    .tracking-progress-bar { padding: 0; }
    .tracking-timeline::before { left: 16px; }
    .timeline-dot { left: 7px; width: 18px; height: 18px; }
    .timeline-entry { padding-left: 44px; }
}

/* --------------------------------------------------------------------------
   33. Dropdown Navigation
   -------------------------------------------------------------------------- */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

.nav-dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    display: block;
}

.nav-links .dropdown-item,
.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-links .dropdown-item:hover,
.dropdown-item:hover {
    background: #334155;
    color: #F1F5F9;
}

.nav-links .dropdown-item.active,
.dropdown-item.active {
    color: #3B82F6;
}

/* Mobile dropdown styles */
.nav-mobile .nav-dropdown {
    position: static;
}

.nav-mobile .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    text-align: left;
}

.nav-mobile .dropdown-toggle:hover {
    color: var(--color-primary);
}

.nav-mobile .dropdown-menu {
    position: static;
    background: var(--color-bg-alt);
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-width: auto;
}

.nav-mobile .dropdown-item {
    padding: 0.6rem 0 0.6rem 1.25rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile .dropdown-item:hover {
    background: transparent;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   34. Cookie Consent
   -------------------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E293B;
    border-top: 1px solid #334155;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin: 0;
}

.cookie-consent a {
    color: #3B82F6;
    text-decoration: underline;
}

.cookie-accept-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background: #2563EB;
}

/* Cookie consent responsive */
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
