/* BizLink Client-Specific Styles */

/* ================================================
   1. GLOBAL & VARIABLES
   ================================================ */
:root {
    --body-bg: #f7f7f7;
    --component-bg: #ffffff;
    --primary-text: #1f1f1f;
    --secondary-text: #6b7280;
    --border-light: #e5e7eb;
    --primary-color: #1f1f1f;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --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);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--body-bg) !important;
    font-family: var(--font-main) !important;
    color: var(--primary-text);
}

a { color: var(--primary-text); transition: color 0.2s; }
a:hover { color: #000; text-decoration: none; }

/* ================================================
   2. NAVBAR STYLES (Tailwind-inspired Redesign)
   ================================================ */

/* 
 * We are applying Tailwind-like utility styles to the existing Bootstrap markup
 * to achieve a modern, responsive design without altering the core HTML structure.
 */

/* Main Header Container */
.navbar-default {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important; /* border-gray-100 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; /* shadow-sm */
    min-height: 4rem !important; /* h-16 */
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-default .container {
    width: 100%;
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand & Toggle (Mobile) */
.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    margin: 0 !important;
}

.navbar-brand {
    padding: 0 !important;
    height: auto !important;
    display: flex;
    align-items: center;
}

.navbar-toggle {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important; /* rounded-md */
    color: #6b7280 !important; /* text-gray-500 */
    transition: all 0.2s;
}

.navbar-toggle:hover, 
.navbar-toggle:focus {
    background-color: #f3f4f6 !important; /* bg-gray-100 */
    color: #1f2937 !important; /* text-gray-800 */
}

.navbar-toggle .icon-bar {
    background-color: currentColor !important;
    height: 2px !important;
    width: 22px !important;
    border-radius: 1px;
}

/* Navigation Links Container */
.navbar-collapse {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
    margin: 0 !important;
}

/* Individual Nav Items */
.navbar-nav > li {
    float: none !important;
}

.navbar-nav > li > a {
    display: inline-flex !important;
    align-items: center;
    padding: 0.5rem 0.75rem !important; /* px-3 py-2 */
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 500 !important; /* font-medium */
    color: #4b5563 !important; /* text-gray-600 */
    border-radius: 0.375rem !important; /* rounded-md */
    transition: all 0.15s ease-in-out;
    line-height: 1.25rem !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.active > a {
    color: #111827 !important; /* text-gray-900 */
    background-color: #f3f4f6 !important; /* bg-gray-100 */
}

/* Icons Integration */
.navbar-nav > li > a::before {
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900; /* Critical for FA5 Solid */
    content: ''; /* Fallback */
    margin-right: 0.5rem; /* mr-2 */
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.15s;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.navbar-nav > li > a:hover::before {
    color: #4b5563; /* text-gray-600 */
}

/* Specific Icons Mapping */
.customers-nav-item-knowledge-base > a::before { content: '\f059'; } /* fa-question-circle */
.customers-nav-item-projects > a::before { content: '\f0ae'; }       /* fa-tasks */
.customers-nav-item-cases > a::before { content: '\f0b1'; }          /* fa-briefcase */
.customers-nav-item-invoices > a::before { content: '\f15c'; }       /* fa-file-invoice */
.customers-nav-item-agreements > a::before { content: '\f15b'; }     /* fa-file */
.customers-nav-item-contracts > a::before { content: '\f56c'; }      /* fa-file-contract (Updated for better context) */
.customers-nav-item-estimates > a::before { content: '\f0ca'; }      /* fa-list-ul */
.customers-nav-item-proposals > a::before { content: '\f044'; }      /* fa-edit */
.customers-nav-item-support > a::before { content: '\f1cd'; }        /* fa-life-ring */


/* ================================================
   3. PROFILE SECTION (Tailwind Redesign)
   ================================================ */

.navbar-nav > li.customers-nav-item-profile {
    margin-left: 1rem !important;
    position: relative;
}

/* Profile Toggle */
.navbar-nav > li.customers-nav-item-profile > a {
    padding: 0.25rem !important; /* p-1 */
    border-radius: 9999px !important; /* rounded-full */
    background-color: transparent !important;
}

.navbar-nav > li.customers-nav-item-profile > a:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6; /* ring-2 ring-offset-2 ring-blue-500 */
}

.client-profile-image-small {
    height: 2rem !important; /* h-8 */
    width: 2rem !important; /* w-8 */
    border-radius: 9999px !important; /* rounded-full */
    object-fit: cover;
    border: 2px solid #e5e7eb !important; /* border-gray-200 */
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    z-index: 1000;
    margin-top: 0.5rem !important; /* mt-2 */
    min-width: 12rem !important; /* w-48 */
    transform-origin: top right;
    border-radius: 0.375rem !important; /* rounded-md */
    background-color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; /* shadow-lg */
    border: 1px solid rgba(0,0,0,0.05) !important; /* ring-1 ring-black ring-opacity-5 */
    padding: 0.25rem 0 !important; /* py-1 */
}

/* Dropdown Items */
.dropdown-menu > li > a {
    display: block !important;
    padding: 0.5rem 1rem !important; /* px-4 py-2 */
    font-size: 0.875rem !important; /* text-sm */
    color: #374151 !important; /* text-gray-700 */
    text-decoration: none;
    font-weight: 400 !important;
}

.dropdown-menu > li > a:hover {
    background-color: #f3f4f6 !important; /* bg-gray-100 */
    color: #111827 !important; /* text-gray-900 */
}

/* Nested Dropdowns (Language) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -0.25rem !important;
    margin-right: 0.25rem !important;
    left: auto;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-default .container {
        padding-left: 1rem;
        padding-right: 1rem;
        flex-wrap: wrap;
    }

    .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        display: none; /* Hidden by default, toggled by JS */
    }

    .navbar-collapse.in {
        display: block !important;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        margin-top: 0.5rem !important;
        border-top: 1px solid #f3f4f6;
    }

    .navbar-nav > li {
        width: 100%;
        margin-left: 0 !important;
    }

    .navbar-nav > li > a {
        display: flex !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.375rem;
    }

    /* Mobile Profile Section */
    .navbar-nav > li.customers-nav-item-profile {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        border-top: 1px solid #f3f4f6;
        padding-top: 0.5rem;
    }

    .navbar-nav > li.customers-nav-item-profile > a {
        padding-left: 0 !important;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding-left: 1rem !important;
    }
}

/* ================================================
   3. CARDS & CONTAINERS
   ================================================ */

/* Soft Card */
.soft-card {
    background-color: var(--component-bg) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.soft-card.h-100 { height: 100%; }

/* Dashboard Header */
.dashboard-header {
    padding: 30px !important;
    margin-bottom: 30px !important;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.dashboard-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--primary-text) !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    color: var(--secondary-text) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

/* Case Hero Header */
.case-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.case-hero-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-text);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.case-number-display {
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    color: var(--primary-text);
}

/* ================================================
   4. STATISTICS & METRICS
   ================================================ */

.stat-card-horizontal {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.stat-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 5px;
}

/* ================================================
   5. COMPONENTS (Badges, Buttons, Key-Value)
   ================================================ */

/* Pastel Badges */
.badge-pastel {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid transparent;
}

.badge-pastel.info { background-color: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.badge-pastel.success { background-color: #ecfdf5; color: #047857; border-color: #d1fae5; }
.badge-pastel.warning { background-color: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-pastel.danger { background-color: #fef2f2; color: #b91c1c; border-color: #fee2e2; }
.badge-pastel.default { background-color: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.badge-pastel.primary { background-color: #f0fdfa; color: #0f766e; border-color: #ccfbf1; }

/* Buttons */
.btn { border-radius: var(--radius-sm); font-weight: 600; transition: all 0.2s; }
.btn-pill-large { border-radius: 50px; padding: 10px 24px; }

/* Key-Value Grid */
.key-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.kv-item { display: flex; flex-direction: column; gap: 5px; }
.kv-label {
    font-size: 0.75rem; color: var(--secondary-text); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.kv-value { font-size: 1rem; font-weight: 600; color: var(--primary-text); }

/* ================================================
   6. SPECIAL CARDS
   ================================================ */

/* Monochrome Card (Support) */
.monochrome-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.monochrome-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mono-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.mono-badge { background: #000; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.mono-card-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 5px 0; color: #000; }
.mono-card-subtext { color: var(--secondary-text); font-size: 0.9rem; }

/* Upcoming Hearing Card */
.upcoming-hearing-card {
    background: linear-gradient(135deg, #1f1f1f 0%, #374151 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.upcoming-hearing-card .badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.upcoming-hearing-card .text-muted { color: rgba(255,255,255,0.7) !important; }
.upcoming-hearing-card .btn-default { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
}
.upcoming-hearing-card .btn-default:hover { background: #fff; color: #000 !important; }

/* ================================================
   7. TIMELINES
   ================================================ */

/* Modern New Timeline (Dashboard) */
.timeline-wrapper-new {
    position: relative;
    padding-left: 10px;
}

.timeline-item-new {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-line {
    width: 2px;
    background: #e5e7eb;
    position: absolute;
    top: 40px;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item-new:last-child .timeline-line { display: none; }

.timeline-content-new {
    flex-grow: 1;
    padding-top: 8px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-text);
    margin-bottom: 2px;
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--secondary-text);
    font-weight: 500;
    text-transform: uppercase;
}

.timeline-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #f3f4f6;
}

/* Classic Rich Timeline (Case Details) */
ul.rich-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
ul.rich-timeline::before {
    content: ''; position: absolute; top: 5px; bottom: 0; left: 7px; width: 2px; background: #e5e7eb; z-index: 0;
}
.timeline-item { position: relative; padding-left: 35px; margin-bottom: 30px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::after {
    content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: #ffffff;
    border: 2px solid #e5e7eb; border-radius: 50%; z-index: 1; transition: all 0.2s ease;
}
.timeline-timestamp { font-size: 0.75rem; color: var(--secondary-text); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.timeline-content { font-size: 0.95rem; color: var(--primary-text); line-height: 1.5; }

/* Icon Colors */
.bg-primary { background-color: var(--primary-color); }
.bg-blue { background-color: var(--info-color); }
.bg-green { background-color: var(--success-color); }
.bg-red { background-color: var(--danger-color); }
.bg-orange { background-color: var(--warning-color); }

/* ================================================
   8. UTILITIES (Tailwind-compat & Helpers)
   ================================================ */
/* Typography */
.tw-font-bold, .font-bold { font-weight: 700 !important; }
.tw-font-semibold, .font-semibold { font-weight: 600 !important; }
.tw-font-medium, .font-medium { font-weight: 500 !important; }
.tw-text-2xl, .text-2xl { font-size: 1.5rem !important; }
.tw-text-xl, .text-xl { font-size: 1.25rem !important; }
.tw-text-lg, .text-lg { font-size: 1.125rem !important; }
.tw-text-base, .text-base { font-size: 1rem !important; }
.tw-text-sm, .text-sm { font-size: 0.875rem !important; }
.tw-text-xs, .text-xs { font-size: 0.75rem !important; }
.text-20 { font-size: 20px !important; }
.text-dark { color: #111827 !important; }
.text-muted { color: #6b7280 !important; }
.text-white { color: #ffffff !important; }
.text-primary { color: var(--primary-color) !important; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.line-through { text-decoration: line-through; }

/* Spacing */
.mtop0, .mt-0 { margin-top: 0 !important; }
.mtop5, .mt-1 { margin-top: 0.25rem !important; }
.mtop10, .mt-2 { margin-top: 0.5rem !important; }
.mtop15, .mt-3 { margin-top: 0.75rem !important; }
.mtop20, .mt-4 { margin-top: 1rem !important; }
.mtop25, .mt-6 { margin-top: 1.5rem !important; }
.mtop30 { margin-top: 2rem !important; }

.mbottom0, .mb-0 { margin-bottom: 0 !important; }
.mbottom5, .mb-1 { margin-bottom: 0.25rem !important; }
.mbottom10, .mb-2 { margin-bottom: 0.5rem !important; }
.mbottom15, .mb-3 { margin-bottom: 0.75rem !important; }
.mbottom20, .mb-4 { margin-bottom: 1rem !important; }
.mbottom25, .mb-6 { margin-bottom: 1.5rem !important; }
.mbottom30 { margin-bottom: 2rem !important; }

.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.pt-4 { padding-top: 1rem !important; }

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

/* Flex & Layout */
.d-flex, .display-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center, .align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-between, .justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.flex-grow-1 { flex-grow: 1; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.grid-cols-1 { grid-template-columns: 1fr !important; }

/* Borders & Radius */
.border-0 { border: none !important; }
.border-bottom-light { border-bottom: 1px solid var(--border-light); }
.border-top-light { border-top: 1px solid var(--border-light); }
.border-dashed { border-style: dashed !important; }
.border-2 { border-width: 2px !important; }
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-full { border-radius: 9999px !important; }

/* Misc */
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.bg-white { background-color: #ffffff !important; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-orange { background-color: #f97316 !important; }
.bg-red { background-color: #ef4444 !important; }
.bg-green { background-color: #10b981 !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }

/* Timeline Variations */
.timeline-card-purple { background-color: #f3e8ff; border: 1px solid #e9d5ff; }
.timeline-card-purple .card-tag { color: #7e22ce; }
.timeline-card-purple i { color: #9333ea; }

.timeline-card-green { background-color: #dcfce7; border: 1px solid #bbf7d0; }
.timeline-card-green .card-tag { color: #15803d; }
.timeline-card-green i { color: #16a34a; }

.timeline-card-blue { background-color: #eff6ff; border: 1px solid #dbeafe; }
.timeline-card-blue .card-tag { color: #1d4ed8; }
.timeline-card-blue i { color: #2563eb; }

.card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255, 0.7); backdrop-filter: blur(4px); }

/* ================================================
   9. LEGAL NOTICE / LOAD CARDS (Premium Style)
   ================================================ */

.load-card {
  --card-primary: var(--primary-text);
  --card-background: var(--component-bg);
  --card-hover-bg: #fafbfc;
  --card-shadow: rgba(0, 0, 0, 0.04);
  --card-border: var(--primary-color);
  --card-accent-green: #10b981;
  --card-accent-red: #ef4444;
  --card-pills-bg: #f3f4f6;
  --card-pills-color: #6b7280;
  --card-info-bg: #f8f9fa;

  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--card-shadow);
  background: var(--card-background);
  margin-bottom: 20px;
  color: var(--card-primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid var(--card-pills-bg);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.load-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-border) 0%, var(--card-accent-green) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.load-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  background: var(--card-hover-bg);
  border-bottom: 3px solid var(--card-border);
  border-color: rgba(0, 0, 0, 0.05);
}

.load-card:hover::before { opacity: 1; }

.card-name-price, .card-time, .card-info, .units-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name-price { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; color: var(--card-primary); line-height: 1.3; }
.load-card-nm { font-weight: 700; color: var(--card-primary); }
.load-card-price { font-weight: 700; font-size: 0.95rem; padding: 4px 12px; border-radius: 12px; white-space: nowrap; }
.load-card-price.active { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.card-time { font-size: 0.85rem; color: var(--secondary-text); margin-bottom: 16px; font-weight: 500; }
.load-card-tm { font-weight: 600; color: #6b7280; }
.load-card-mi { font-size: 0.8rem; color: var(--secondary-text); font-weight: 500; }

.card-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--card-info-bg);
  border-radius: 14px;
  flex-grow: 1;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-date-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
  padding-right: 16px;
  border-right: 2px solid #e5e7eb;
}

.card-info .month, .card-info .day { font-size: 0.7rem; text-transform: uppercase; color: var(--secondary-text); font-weight: 700; letter-spacing: 0.08em; }
.card-info .date { font-size: 1.75rem; font-weight: 800; color: var(--primary-text); line-height: 1; margin: 6px 0; }

.card-city-unit-wrapper { flex: 1; display: flex; flex-direction: column; gap: 10px; position: relative; }
.card-city-unit-wrapper::before { content: ""; position: absolute; height: 55%; top: 22%; left: 5px; border-left: 2px dotted #cbd5e1; z-index: 0; }

.city-with-mi { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.city-nm { font-size: 0.9rem; font-weight: 600; color: #374151; line-height: 1.4; }

.round-icon { display: block; height: 11px; width: 11px; border-radius: 50%; background-color: #10b981; border: 3px solid #ffffff; box-shadow: 0 0 0 1px #e5e7eb; flex-shrink: 0; }
.square-icon { display: block; height: 11px; width: 11px; background-color: #1f1f1f; border: 3px solid #ffffff; box-shadow: 0 0 0 1px #cbd5e1; flex-shrink: 0; }

.rate-check-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  min-width: 85px;
  flex-shrink: 0;
}

.rate-check-box .rate { font-size: 1.4rem; font-weight: 800; color: var(--primary-text); line-height: 1; margin: 2px 0; }
.rate-check-box .rc { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: var(--secondary-text); letter-spacing: 0.08em; }

.units-wrapper { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.04); }
.pills-wrapper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-pill { background-color: var(--card-pills-bg); color: var(--card-pills-color); border-radius: 14px; padding: 5px 14px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid rgba(0, 0, 0, 0.05); }

/* Custom Grid */
.dashboard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
@media (max-width: 1200px) { .dashboard-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dashboard-grid-3 { grid-template-columns: 1fr; } }

/* Floating Input */
.floating-pill-input {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.floating-pill-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    outline: none;
}

/* Document Card Styles */
.document-card .soft-card {
    border: 1px solid transparent;
}
.document-card .soft-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
}
.file-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-text);
}

/* Vertical Timeline UI */
.vertical-timeline { position: relative; padding: 10px 0; }
.vt-item { display: flex; margin-bottom: 24px; position: relative; }
.vt-left { width: 75px; text-align: right; padding-right: 20px; padding-top: 4px; flex-shrink: 0; }
.vt-time { font-size: 0.75rem; color: var(--secondary-text); font-weight: 600; line-height: 1.2; }
.vt-date { font-size: 0.65rem; color: #9ca3af; display: block; margin-top: 2px; }
.vt-center { position: relative; display: flex; flex-direction: column; align-items: center; margin-right: 20px; flex-shrink: 0; }
.vt-circle { 
    width: 16px; height: 16px; border-radius: 50%; background: #fff; 
    border: 2px solid var(--info-color, #3b82f6); z-index: 2; 
    display: flex; align-items: center; justify-content: center;
}
.vt-circle-inner { width: 6px; height: 6px; border-radius: 50%; background: var(--info-color, #3b82f6); }
.vt-line { 
    position: absolute; top: 16px; bottom: -28px; width: 2px; background: var(--border-light, #f3f4f6); z-index: 1; 
}
.vt-item:last-child .vt-line { display: none; }
.vt-right { flex-grow: 1; }
.vt-card { 
    background: #fff; border: 1px solid var(--border-light, #f3f4f6); border-radius: 12px; 
    padding: 15px 20px; position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.vt-card:hover { border-color: #e5e7eb; transform: translateX(4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
.vt-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-text); margin-bottom: 6px; }
.vt-desc { font-size: 0.875rem; color: var(--secondary-text); line-height: 1.5; margin-bottom: 10px; }
.vt-meta { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; }
.vt-tag { background: #eff6ff; color: #3b82f6; padding: 3px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.025em; }
.vt-link { color: var(--secondary-text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; font-weight: 500; }
.vt-link:hover { color: var(--info-color, #3b82f6); }

/* VT Circle Status Variants */
.vt-circle.success { border-color: var(--success-color, #10b981); }
.vt-circle.success .vt-circle-inner { background: var(--success-color, #10b981); }
.vt-circle.warning { border-color: var(--warning-color, #f59e0b); }
.vt-circle.warning .vt-circle-inner { background: var(--warning-color, #f59e0b); }
.vt-circle.danger { border-color: var(--danger-color, #ef4444); }
.vt-circle.danger .vt-circle-inner { background: var(--danger-color, #ef4444); }