body {
    background-color: #F8F8F8; /* Light background, close to white */
    color: #333333; /* Dark text for contrast */
    font-family: 'CiscoSans', Arial, sans-serif; /* Cisco-like font */
}



.card {
    background-color: #FFFFFF; /* White cards */
    border: 1px solid #E0E0E0; /* Light border for cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    border-radius: 0.5rem;
}

.form-control, .form-select {
    background-color: #F0F0F0; /* Light grey for input fields */
    color: #333333;
    border-color: #CCCCCC;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    color: #333333;
    border-color: #007bff; /* Bootstrap primary blue for focus */
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff; /* Standard Bootstrap primary blue */
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-secondary {
    color: #6c757d; /* Bootstrap secondary color */
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #FFFFFF;
}

.btn-success {
    background-color: #28a745; /* Standard Bootstrap success green */
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.list-group-item {
    border-color: #E0E0E0; /* Light border for list items */
}

.table-light {
    --bs-table-color: lavender; /* Dark text for light table */
    --bs-table-bg: #07172e; /* White background for table */
    --bs-table-border-color: #E0E0E0;
    --bs-table-striped-bg: #F8F8F8; /* Light stripe */
    --bs-table-hover-bg: #F0F0F0; /* Lighter hover */
}

/* Specific text colors for elements on blue background (if applicable) */
.text-primary {
    color: #005073 !important; /* Cisco blue for primary text */
}

.text-dark {
    color: #333333 !important; /* Dark text for general use */
}

.text-light {
    color: lavender !important; 
}

.text-info {
    color: #007bff !important; /* Standard Bootstrap info blue for links */
}

.text-warning {
    color: #ffc107 !important; /* Bootstrap warning yellow */
}

.text-blue-light {
    color: deepskyblue !important;
}

.text-lime-green {
    color: limegreen !important;
}

.bg-custom {
    background-color: #07172e !important;
}

.bg-dark-blue {
    background-color: #07172e !important;
    /* color: lavender !important; */
}


/* Progress bar styling */
.progress {
    background-color: #e9ecef; /* Light background for the progress bar track */
}

.progress-bar {
    background-color: #07172e; /* Use bg-custom color for the progress bar fill */
}

/* Global Navigation Bar */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    height: 4rem;
    align-content: center;
}

.global-nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: center; /* Center the menu items */
    align-items: center;
    height: 44px; /* Apple's nav height */
}

.global-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Desktop menu visible by default */
    justify-content: space-between;
    width: 100%; /* Allow items to spread */
}

.global-nav-item {
    flex-grow: 1; /* Distribute space evenly */
    text-align: center;
    align-content: center; /* Added as per feedback */
}

.global-nav-link {
    display: block;
    padding: 0 10px;
    line-height: 44px;
    color: #424245; /* Apple's nav link color */
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease;
    text-decoration: none;
}

.global-nav-link:hover {
    color: #1d1d1f;
}

.global-nav-link.logo {
    font-weight: 700;
    font-size: 1rem;
    color: #1d1d1f;
}

.navbar-logo {
    height: 45px; /* Adjust as needed for proper sizing */
    vertical-align: middle;
}

.global-nav-link.button-link {
    background-color: #007aff;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 9999px;
    line-height: normal;
    align-self: center; /* Align button vertically */
    margin-left: 20px; /* Space from other links */
}

.global-nav-link.button-link:hover {
    background-color: #0066cc;
    color: #ffffff;
}


/* Hide hamburger menu and mobile overlay by default (desktop-first) */
.hamburger-menu,
.mobile-menu-overlay {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    /* Mobile Navigation - Hide desktop menu, show hamburger */
    .global-nav-list {
        display: none; /* Hide desktop menu on mobile */
    }

    .global-nav-content {
        justify-content: space-between; /* Space between logo and hamburger */
        padding: 0 22px;
        height: 44px;
    }

    .global-nav-link.logo {
        flex-grow: 0; /* Don't let logo take all space */
    }

    .hamburger-menu {
        display: block; /* Show hamburger icon on mobile */
        cursor: pointer;
        font-size: 1.5rem;
        color: #424245;
        line-height: 44px;
        padding: 0 10px;
    }

    /* Full-screen mobile menu overlay */
    .mobile-menu-overlay {
        display: flex; /* Show mobile menu overlay on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1001;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        position: absolute;
        top: 5px;
        right: 30px;
        font-size: 2.5rem;
        color: white;
        cursor: pointer;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .mobile-menu-list li {
        margin-bottom: 25px;
    }

    .mobile-menu-list a {
        font-size: 2rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
    }

    .mobile-menu-list a:hover {
        color: #007aff;
    }

    .mobile-menu-list .button-link {
        font-size: 1.5rem;
        padding: 12px 30px;
    }
    
}

/* Case Results and Details Styling */
.case-select-link {
    cursor: pointer;
    border: 1px solid #007bff; /* Blue border */
    transition: all 0.2s ease-in-out;
}

.case-select-link:hover {
    background-color: #e0f2ff !important; /* Lighter blue on hover */
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Specific styles for the new selection boxes */
.jurisdiction-box, .motion-type-card {
    background-color: #003366; /* Slightly lighter dark blue */
    border: 2px solid #004080; /* Darker blue border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: block; /* Make the whole box clickable */
    transition: all 0.3s ease;
    height: 100%; /* Ensure consistent height in rows */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.jurisdiction-box:hover, .motion-type-card:hover {
    background-color: #004080; /* Even lighter dark blue on hover */
    border-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.jurisdiction-box i, .motion-type-card i {
    color: deepskyblue; /* Amber yellow for icons */
    margin-bottom: 15px;
}

.jurisdiction-box h3, .motion-type-card h4 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.jurisdiction-box p, .motion-type-card p {
    color: #ccc;
    font-size: 0.95rem;
}

.disabled-jurisdiction, .disabled-motion-type-card {
    background-color: #001a33; /* Even darker for disabled */
    border-color: #001a33;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none; /* Disable click events */
}

.disabled-jurisdiction:hover, .disabled-motion-type-card:hover {
    transform: none; /* No hover effect for disabled */
    box-shadow: none;
}

.disabled-jurisdiction p, .disabled-motion-type-card p {
    color: #888; /* Lighter text for disabled */
}

.motion-icon {
    width: 80px; /* Adjust size as needed */
    height: 80px;
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Cover the area */
    margin-bottom: 15px;
    border: 3px solid #ffc107; /* Yellow border for icons */
}

.docket-checkbox {
    width: 1.2rem;
    height: 1.2rem;
}
/* Scanner animation for progress bar */
.progress {
    position: relative;
    overflow: hidden;
}

.progress-bar-scanner {
    position: absolute;
    top: 0;
    width: 20%; /* Width of the scanner bar */
    height: 100%;
    background: white;
    /* opacity: 0.5; */
    box-shadow: 0 0 15px 10px white;
    animation: scanner-animation 4s linear infinite;
}

@keyframes scanner-animation {
    0% {
        left: -20%;
    }
    100% {
        left: 100%;
    }
}



.google-login {
    color: #535a60;
    border-color: #d6d9dc;
}
.facebook-login {
    color: #FFF !important;
    background-color: #395697 !important;
    border-color: transparent !important;
}
.auth-provider {
    font-family: system-ui, roboto, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 40px;
    padding: 0 21px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: 1px solid #d6d9dc;
    text-align: center;
    background: #FFF;
    color: #535a60;
    width: 10rem;
}



/* Button Spinner */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.75rem;
    margin-left: -0.75rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: button-spinner-animation 0.6s linear infinite;
}

@keyframes button-spinner-animation {
    to {
        transform: rotate(360deg);
    }
}


.btn-xsmall {
    padding-top: 1.5px !important;
    padding-bottom: 1px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    width: 60px !important;
}
.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.logo-color-dark {
    color: #0860ba;
}

.logo-color-light {
    color:#0081fb;
}
/* Comparison Section */
.comparison-container {
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}
.comparison-column {
    padding: 0;
}
.comparison-header {
    background-color: #e9ecef;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    min-height: 82px;
    align-content: center;
}
.comparison-column:first-child .comparison-header {
    border-right: 1px solid #e0e0e0;
}
.comparison-header .table-logo {
    height: 40px;
    vertical-align: middle;
}
.comparison-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: #333;
}
.comparison-body {
    padding: 20px;
    color: #333;
}
.comparison-column:first-child {
    border-right: 1px solid #e0e0e0;
}
.comparison-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    text-align: left;
}
.comparison-body ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}
.comparison-body ul li:before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}
.comparison-body .attorney-list li:before {
    content: '✗';
    color: #dc3545;
}

@media (max-width: 991px) {
    .comparison-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .comparison-column:first-child .comparison-header {
        border-right: none;
    }
}

.editable-content {
    white-space: pre-wrap; /* Preserve markdown formatting */
}
/* Document Boxes on Motion Result Page */
.document-box {
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 1rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background-color: #495057;
    color: #fff;
    text-align: center;
    min-width: 180px;
}
.document-box:hover {
    background-color: #6c757d;
}
.document-box.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

@media print {
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 12pt !important;
    }

    /* Hide non-essential elements */
    .global-nav, 
    .btn, 
    #motion-result-card > h2, 
    #motion-result-card > .text-center, 
    .document-box, 
    .card > .mb-2.mt-2,
    #loading-section,
    .navbar,
    footer {
        display: none !important;
    }

    /* Ensure the main content area is visible and styled for print */
    #motion-result-card, 
    #result-content, 
    .card.bg-light.text-dark,
    .editable-content {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #FFFFFF !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Page break control */
    h1, h2, h3, h4, h5, h6, thead {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, blockquote, ul, ol, li, table, tr, img {
        page-break-inside: avoid;
    }

    /* Ensure links are not shown with URL */
    a {
        color: #000000 !important;
        text-decoration: none !important;
    }
    a[href]:after {
        content: none !important;
    }
}


.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 15px;
    width: 125px;
    height: 125px;
    font-size: 1rem;
    font-weight: bold;
    /* color: darkslateblue; */
    /* background-color: deepskyblue; */
    /* border: 1px solid #343a40; */
    border-radius: 2.4rem;
    /* transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.1s ease-in-out; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    --bs-btn-color: #fff;
    --bs-btn-bg: black;
    --bs-btn-border-color: black;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: grey;
    --bs-btn-hover-border-color: grey;
}

.quick-action-btn i {
    font-size: 2.6rem;
    margin-bottom: 15px;
}