   * {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }
        
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .animate-fadeIn {
            animation: fadeIn 0.5s ease-out;
        }

        /* Loader Animations */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .animate-spin {
            animation: spin 1s linear infinite;
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        .animate-bounce {
            animation: bounce 1s ease-in-out infinite;
        }

        /* Skeleton Loader */
        /* ─── Skeleton Loader ────────────────────────────────────────────────────── */
        .skeleton {
            background: linear-gradient(90deg, #F1F5F9 25%, #E9EFF5 50%, #F1F5F9 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Compact scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* Logo styling */
      .logo-container {
            width: 72px;
            height: 72px;
            min-width: 72px;
            border-radius: 50%;
            overflow: hidden;
            background: white;
            padding: 6px;
            box-shadow: 
                0 4px 10px rgba(0,0,0,0.25),
                inset 0 0 0 3px #d4af37; /* gold ring */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-container img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        @media (max-width: 640px) {
            .logo-container img {
                width: 2.75rem;
                height: 2.75rem;
            }
        }

        /* Shepherd.js Custom Styling */
        .shepherd-element {
            z-index: 9999;
        }
        
        .shepherd-modal-overlay-container {
            z-index: 9998;
        }
        .shepherd-has-title .shepherd-content .shepherd-header{
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);

        }
        .shepherd-header {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
            padding: 1rem 1.25rem;
            border-radius: 0.5rem 0.5rem 0 0;
        }

        .shepherd-title {
            color: white;
            font-weight: 700;
            font-size: 1.125rem;
            margin: 0;
        }

        .shepherd-cancel-icon {
            color: white;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .shepherd-cancel-icon:hover {
            opacity: 1;
        }

        .shepherd-text {
            padding: 1.25rem;
            font-size: 0.9375rem;
            line-height: 1.6;
            color: #374151;
        }

        .shepherd-footer {
            padding: 1rem 1.25rem;
            border-top: 1px solid #E5E7EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .shepherd-button {
            background: #3B82F6;
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 0.5rem;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .shepherd-button:hover {
            background: #2563EB;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .shepherd-button-secondary {
            background: #F3F4F6;
            color: #374151;
        }

        .shepherd-button-secondary:hover {
            background: #E5E7EB;
        }

        .shepherd-progress {
            font-size: 0.75rem;
            color: #6B7280;
            font-weight: 500;
        }
       /* Professional Case Orders Styling - Compact */
        .case-orders-list a {
            display: flex;
            align-items: center;
            padding: 0.625rem 0.875rem;
            background: white;
            border: 1px solid #E5E7EB;
            border-left: 3px solid #3B82F6;
            border-radius: 0.375rem;
            text-decoration: none;
            color: #1F2937;
            font-size: 0.8125rem;
            font-weight: 500;
            transition: all 0.2s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .case-orders-list a:hover {
            background: #F8FAFC;
            border-left-color: #2563EB;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
            transform: translateX(3px);
        }

        .case-orders-list a::before {
            content: '\f1c1';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #EF4444;
            font-size: 0.9375rem;
            margin-right: 0.625rem;
            min-width: 1.25rem;
            text-align: center;
        }

        .case-orders-list a::after {
            content: '\f35d';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #3B82F6;
            font-size: 0.6875rem;
            margin-left: auto;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .case-orders-list a:hover::after {
            opacity: 1;
        }

        /* Empty state styling */
        .case-orders-list:empty::after {
            content: 'No orders available for this case';
            display: block;
            text-align: center;
            padding: 1.5rem;
            color: #6B7280;
            font-size: 0.8125rem;
            font-style: italic;
        }

        /* ─── Global Search Bar ──────────────────────────────────────────────────── */
#global-search-bar {
    position: relative;
    max-width: 380px;
}
#global-search-bar input {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    color: white;
    padding: 8px 16px 8px 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

/* ─── Global Search Modal ────────────────────────────────────────────────── */
.global-search-overlay {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}
.global-search-box {
    background: white;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}
.global-search-result {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 26px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #F1F5F9;
}
.global-search-result:last-child { border-bottom: none; }
.global-search-result:hover { background: #EFF6FF; }
.global-search-result .case-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}
.global-search-result .case-parties {
    font-size: 0.8rem;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}


#global-search-bar input::placeholder { color: rgb(255, 255, 255); }
#global-search-bar input:focus { background: rgb(255, 255, 255); border-color: rgba(255, 255, 255, 0.986); outline: none; }
#global-search-bar .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); font-size: 0.8rem; pointer-events: none; }
#global-search-bar .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); font-size: 0.65rem; padding: 2px 5px; border-radius: 4px; font-family: var(--font-mono); }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-mono   { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, #E2E8F0, transparent); margin: 1rem 0; }

/* ─── Responsive Tweaks ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .logo-container { width: 52px; height: 52px; min-width: 52px; }
    .case-detail-header { padding: 1rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    #global-search-bar { display: none; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
    .app-header, .breadcrumb-bar, footer, button { display: none !important; }
    .animate-fadeIn { animation: none !important; }
}


/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 12px 14px 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}
.toast-item.show { opacity: 1; transform: translateX(0); }
.toast-progress {
    height: 3px;
    border-radius: 0 0 10px 10px;
    margin: 10px -14px 0;
    animation: toast-progress linear forwards;
}


   /* ── Loader styles (self-contained, no extra CSS file needed) ── */

        .jd-loader-overlay {
            position: fixed;
            inset: 0;
                           background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);

            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Three-ring spinning emblem */
        .jd-emblem {
            position: relative;
            width: 88px;
            height: 88px;
            margin: 0 auto 1.75rem;
        }

        .jd-ring-outer {
            position: absolute;
            inset: -20px;
            border-radius: 50%;
            border: 1px solid  #d4af37;
            border-top-color: #d4af37;
            animation: jd-spin 2.4s linear infinite reverse;
        }

        .jd-ring-inner {
            position: absolute;
            inset: -10px;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #d4af37;
            border-right-color: #d4af37;
            animation: jd-spin 1.1s linear infinite;
        }

        .jd-emblem-core {
            width: 88px;
            height: 88px;
            border-radius: 50%;
                                     background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);

            border: 2px solid rgba(212, 175, 55, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow:
                0 0 0 1px rgba(212, 175, 55, 0.08),
                0 8px 32px rgba(4, 12, 26, 0.5),
                0 4px 20px rgba(212, 175, 55, 0.12);
        }

        .jd-emblem-core i {
            color: #ffffffff;
            font-size: 1.65rem;
        }

        /* Gold divider line */
        .jd-divider {
            width: 48px;
            height: 1px;
            background: linear-gradient(90deg, transparent, #ffffffff, transparent);
            margin: 1rem auto;
        }

        /* Dot bounce row */
        .jd-dots {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 1rem 0 0.5rem;
        }

        .jd-dot {
            width: 6px;
            height: 6px;
            background: #ffffffff;
            border-radius: 50%;
            animation: jd-bounce 1.1s ease-in-out infinite;
        }

        .jd-dot:nth-child(2) { animation-delay: 160ms; }
        .jd-dot:nth-child(3) { animation-delay: 320ms; }

        @keyframes jd-spin {
            to { transform: rotate(360deg); }
        }

        @keyframes jd-bounce {
            0%, 100% { transform: translateY(0);    opacity: 0.6; }
            50%       { transform: translateY(-7px); opacity: 1;   }
        }