/* Minification failed. Returning unminified contents.
(184,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(467,1): run-time error CSS1019: Unexpected token, found '}'
(1448,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(1449,10): run-time error CSS1035: Expected colon, found '{'
(1460,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(1461,8): run-time error CSS1035: Expected colon, found '{'
(1784,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(1785,10): run-time error CSS1035: Expected colon, found '{'
(1961,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1962,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1963,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1965,44): run-time error CSS1039: Token not allowed after unary operator: '-color1'
(1965,59): run-time error CSS1039: Token not allowed after unary operator: '-color2'
(1968,29): run-time error CSS1039: Token not allowed after unary operator: '-height'
(1973,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1974,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1975,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1977,44): run-time error CSS1039: Token not allowed after unary operator: '-color1'
(1977,59): run-time error CSS1039: Token not allowed after unary operator: '-color2'
(1980,27): run-time error CSS1039: Token not allowed after unary operator: '-height'
(2517,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(2518,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(2538,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(2539,10): run-time error CSS1035: Expected colon, found '{'
(2602,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(2603,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(3096,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(3097,10): run-time error CSS1035: Expected colon, found '{'
(3434,15): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(3436,17): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(3437,21): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(3439,30): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(3460,33): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(3661,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(3662,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(4114,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(4115,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(4172,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(4173,10): run-time error CSS1035: Expected colon, found '{'
(4182,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(4183,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(4363,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(4364,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(4591,41): run-time error CSS1038: Expected hex color, found '#0004'
(4618,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(4619,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(4800,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4801,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4812,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4817,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5365,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(5366,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(5470,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(5471,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(5598,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6140,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6409,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(6410,10): run-time error CSS1035: Expected colon, found '{'
(7249,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7411,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7505,13): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7563,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(7564,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(7573,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(7574,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(7873,23): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-width'
(7874,29): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-width'
(7878,27): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-expanded-width'
(7879,33): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-expanded-width'
(7884,15): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(7886,30): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(7891,17): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-width'
(7898,21): run-time error CSS1039: Token not allowed after unary operator: '-side-menu-expanded-width'
(8084,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8364,15): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(8366,17): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(8367,21): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(8369,30): run-time error CSS1039: Token not allowed after unary operator: '-header-height'
(8390,33): run-time error CSS1039: Token not allowed after unary operator: '-panel-width'
(8521,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8599,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(8600,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(9027,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(9163,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(9966,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(9967,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
 */
/* AI Chat Base Styles - Extracted from AiChatBase.cshtml */

/* Base Typography */
body, .body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .tutorial-tooltip h3, .playbook-header-content h2 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

.header {
    background: transparent;
    height: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* MOBILE AI HEADER FIX: burger + logo + avatar in one row */
body.body-mobile .header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 50px !important;
    min-height: 48px !important;
    max-height: 50px !important;
}

body.body-mobile .header-left {
    width: auto !important;
    flex: 0 0 auto !important;
}

body.body-mobile .header-center {
    width: auto !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
}

body.body-mobile .header-right {
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Burger menu - bigger */
body.body-mobile .mobile-nav-open,
body.body-mobile #aOpenMobileNav {
    width: 40px !important;
    height: 40px !important;
    background-size: 28px !important;
}

/* Logo - bigger */
body.body-mobile .header .logo {
    height: 28px !important;
    max-width: 120px !important;
    background-size: contain !important;
}

/* Avatar - smaller */
body.body-mobile .header .user-info .logout,
body.body-mobile .header .logout {
    width: 32px !important;
    height: 32px !important;
    background-size: 32px !important;
}

body.body-mobile .mobile-nav-open, body.body-mobile #aOpenMobileNav {
    padding: 0px !important;
}

body {
    overflow: hidden;
    scroll-behavior: smooth;
    overflow: hidden;
    width: 100%;
    background-color: #1a1a1a;
}

.body {
    background-color: #1a1a1a;
}

.subMenu {
    position: fixed;
    top: 70px;
    opacity: 1 !important;
    right: 0px;
    left: auto;
}

.login-container {
    float: right;
    overflow: hidden;
}

.header .content {
    width: calc(100% - 20px);
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
}

.navigation,
.search-container,
.help-container,
.about-container,
.search-container-wrapper,
footer,
#help-dot-toggle {
    display: none !important;
}

.cls-1 {
    fill: none;
    stroke: #000000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5px;
    fill-rule: evenodd;
    cursor: pointer;
}


/* Tutorial overlay styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .tutorial-overlay.show {
        opacity: 1;
    }

.tutorial-spotlight {
    position: absolute;
    border: 3px solid #51afea;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(82, 175, 234, 0.6);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
    background: transparent;
    transform: scale(0.8);
    opacity: 0;
}

    .tutorial-spotlight.show {
        transform: scale(1);
        opacity: 1;
    }

.tutorial-tooltip {
    position: absolute;
    background: #1a1a1a;
    color: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 320px;
    min-width: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
}

    .tutorial-tooltip::-webkit-scrollbar {
        height: 1rem;
        width: 0.5rem;
    }

    .tutorial-tooltip::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }


    .tutorial-tooltip::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

        .tutorial-tooltip::-webkit-scrollbar-track:hover {
            background-color: transparent !important;
        }

    .tutorial-tooltip.show {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .tutorial-tooltip h3 {
        margin: 0 0 12px 0;
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .tutorial-tooltip p {
        margin: 0 0 20px 0;
        line-height: 1.6;
        font-size: 14px;
        color: #e0e0e0;
        transition: color 0.3s ease;
    }

.tutorial-controls {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.tutorial-progress {
    font-size: 12px;
    color: #a8a8a8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tutorial-buttons {
    display: flex;
    gap: 8px;
}

.tutorial-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.tutorial-btn-primary {
    background: #3d8ac7;
    color: #fff;
}

    .tutorial-btn-primary:hover {
        background: #51afea;
        transform: translateY(-1px);
    }

.tutorial-btn-secondary {
    background: transparent;
    color: #51afea;
    border: 1px solid #51afea;
}

    .tutorial-btn-secondary:hover {
        background: rgba(82, 175, 234, 0.1);
        transform: translateY(-2px);
    }

/* Panel animacije za boljšo sinhronizacijo */
.ai-right-panel-container {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease !important;
}



@media screen and (max-width: 767px) {
    /* Skrij originalno mobilno navigacijo na AI strani */
    body.body-mobile .mobile-navigation-container {
        display: none !important;
    }
    /* AI side menu na mobilnih napravah */
    body.body-mobile .ai-side-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        z-index: 99999;
        transition: left 0.3s ease;
        background-color: #1a1a1a;
        display: flex;
        flex-direction: column;
    }

        /* Ko je aktiven, pokaži ga */
        body.body-mobile .ai-side-menu.mobile-active {
            left: 0;
        }

    /* Sidebar header - HIDDEN on desktop */
    body:not(.body-mobile) .ai-side-menu-header,
    body.body-desktop .ai-side-menu-header {
        display: none !important;
    }

    /* Sidebar header - VISIBLE only on mobile */
    body.body-mobile .ai-side-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 60px 15px 15px 15px; /* Top padding for status bar */
        border-bottom: 1px solid rgba(255,255,255,0.12);
        flex-shrink: 0;
    }

    body.body-mobile .ai-side-menu-header-title {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }

    /* Close button for mobile side menu - MOBILE ONLY */
    /* Matches .ai-advanced-panel-close style */
    .ai-side-menu-close-btn {
        display: none !important; /* Hidden by default (desktop) */
    }

    body.body-mobile .ai-side-menu-close-btn {
        display: flex !important; /* Show only on mobile */
        background: none;
        border: none;
        color: #9c9c9c;
        cursor: pointer;
        padding: 0 5px;
        line-height: 1;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        body.body-mobile .ai-side-menu-close-btn:active {
            color: #fff;
        }

        body.body-mobile .ai-side-menu-close-btn svg {
            stroke: currentColor;
        }

    /* Scrollable menu list */
    body.body-mobile .ai-side-menu-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 120px; /* Safe area for iPhone home indicator */
    }

    /* Povečaj menu items za touch */
    body.body-mobile .ai-side-menu-item {
        padding: 20px 20px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    body.body-mobile .ai-side-menu-icon {
        width: 32px;
        height: 32px;
    }

        body.body-mobile .ai-side-menu-icon svg {
            width: 28px;
            height: 28px;
        }
    /* Vedno pokaži label na mobilnih */
    body.body-mobile .ai-side-menu-label {
        opacity: 1 !important;
        font-size: 18px;
        margin-left: 20px;
    }
    /* Remove hover width effects na mobilnih */
    body.body-mobile .ai-side-menu:hover {
        width: 100vw !important;
    }
    /* Dodaj close button na vrh menija */
    /*  body.body-mobile .ai-side-menu::before {
        content: "✕";
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: #ffffff;
        cursor: pointer;
        z-index: 100000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
    }*/
    /* Adjustment za glavni content na mobilnih */
    body.body-mobile .ai-view-container {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 0;
    }
    /* Fix za chat container */
    body.body-mobile .ai-chat-container {
        margin-left: 0;
        width: 100%;
    }
    /* Fix za ostale containerje */
    body.body-mobile #basic-chat-container,
    body.body-mobile #history-container,
    body.body-mobile #workspaces-container,
    body.body-mobile #ai-vault-documents-container,
    body.body-mobile #court-chat-container,
    body.body-mobile #helpdesk-container {
        margin-left: 0;
        width: 100%;
    }
    /* Ne prikazuj content-shifted efektov na mobilnih */
    body.body-mobile .ai-view-container.content-shifted {
        margin-left: 0 !important;
        width: 100% !important;
    }
    /* Overlay za zapiranje menija */
    body.body-mobile .ai-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

        body.body-mobile .ai-mobile-overlay.active {
            opacity: 1;
            visibility: visible;
        }
}

/* NOTE: Mobile right panel styles moved to site-mobile-1.2.css */
    /* Chat sources mini panel za mobile */
    body.body-mobile .ai-chat-sources-mini {
        display: none;
        /*  position: fixed;
        bottom: 120px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 120px;
        font-size: 12px;*/
    }

        body.body-mobile .ai-chat-sources-mini h3 {
            font-size: 14px;
        }
}

/* ============================================================================
   HISTORY VIEW - MOBILE OPTIMIZATION
   ============================================================================ */

/* History Modern Container */
body.body-mobile .ai-history-modern {
    max-width: 90%;
    height: 100vh;
    height: 100dvh; /* iOS Safari address bar fix */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* History Header */
body.body-mobile .ai-history-header {
    flex-shrink: 0; /* Don't shrink when scrolling */
}

/* "Nov pogovor" Button - Touch target */
body.body-mobile .ai-history-new-chat-btn {
    min-height: 48px; /* Touch-friendly */
    min-width: 115px;
}

    body.body-mobile .ai-history-new-chat-btn:active {
        transform: scale(0.98); /* Touch feedback */
    }

/* History Search */
body.body-mobile .ai-history-search {
    flex-shrink: 0;
}

body.body-mobile .ai-history-search-input {
    position: relative;
    width: 100%;
}

    body.body-mobile .ai-history-search-input svg {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 1;
    }

    body.body-mobile .ai-history-search-input input {
        width: 100%;
        min-height: 44px; /* Touch-friendly */
        font-size: 16px !important; /* iOS zoom prevention */
        font-size: max(16px, 1rem) !important;
    }

        body.body-mobile .ai-history-search-input input:focus {
            outline: none;
        }

/* History List - Scrollable */
body.body-mobile .ai-history-list {
    flex: 1; /* Take remaining space */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

/* History Item - Touch-friendly */
body.body-mobile .ai-history-item {
    min-height: 80px; /* Tall enough for touch */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    body.body-mobile .ai-history-item:active {
        transform: scale(0.99); /* Touch feedback */
    }

/* History Item Content */
body.body-mobile .ai-history-item-content {
    flex: 1;
    min-width: 0; /* Allow text truncation */
    display: flex;
    flex-direction: column;
}

body.body-mobile .ai-history-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
}

/* History Item Actions - Touch targets */
body.body-mobile .ai-history-item-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

body.body-mobile .ai-history-action-btn {
    width: 44px; /* Touch-friendly square */
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    body.body-mobile .ai-history-action-btn:active {
        transform: scale(0.95); /* Touch feedback */
    }

/* Load More Button - Touch target */
body.body-mobile .ai-history-load-more {
    flex-shrink: 0;
}

    body.body-mobile .ai-history-load-more button {
        width: 100%;
        min-height: 48px; /* Touch-friendly */
    }

        body.body-mobile .ai-history-load-more button:active {
            transform: scale(0.98); /* Touch feedback */
        }

/* Documents View - Reuse History Styles */
body.body-mobile #ai-vault-documents-container .ai-documents-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.body-mobile #ai-vault-documents-container .ai-history-new-chat-btn {
    flex: 1;
    min-width: 115px;
    justify-content: center;
}

/* ========================================
   DOCUMENTS VIEW MOBILE OPTIMIZATION
   ======================================== */

/* Documents Container - Full viewport */
body.body-mobile #ai-vault-documents-container {
    height: 100vh;
    height: 100dvh; /* iOS Safari address bar fix */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



    /* Documents Header */
    body.body-mobile #ai-vault-documents-container .ai-history-header {
        flex-shrink: 0;
        display: flex;
    }

    /* Upload Button - Touch target */
    body.body-mobile #ai-vault-documents-container .ai-documents-header-actions .ai-history-new-chat-btn {
        width: 100%;
        min-height: 48px;
    }

        body.body-mobile #ai-vault-documents-container .ai-documents-header-actions .ai-history-new-chat-btn:active {
            transform: scale(0.98); /* Touch feedback */
        }

    /* Documents Search - iOS zoom prevention */
    body.body-mobile #ai-vault-documents-container .ai-history-search {
        flex-shrink: 0;
    }

    body.body-mobile #ai-vault-documents-container .ai-history-search-input {
        position: relative;
        width: 100%;
    }

        body.body-mobile #ai-vault-documents-container .ai-history-search-input svg {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
            pointer-events: none;
        }

        body.body-mobile #ai-vault-documents-container .ai-history-search-input input {
            width: 100%;
            min-height: 44px; /* Touch target */
            font-size: 16px !important; /* iOS zoom prevention */
            font-size: max(16px, 1rem) !important;
            -webkit-appearance: none;
            appearance: none;
        }

            body.body-mobile #ai-vault-documents-container .ai-history-search-input input:focus {
                outline: none;
            }

    /* Documents List - Scrollable */
    body.body-mobile #ai-vault-documents-container .ai-history-list {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    }

    /* Document Item - Touch-friendly */
    body.body-mobile #ai-vault-documents-container .ai-user-doc-item {
        min-height: 80px; /* Touch-friendly height */
        display: flex;
        align-items: center;
    }

        body.body-mobile #ai-vault-documents-container .ai-user-doc-item:active {
            transform: scale(0.99); /* Touch feedback */
        }

        /* Document Item Content */
        body.body-mobile #ai-vault-documents-container .ai-user-doc-item .ai-history-item-content {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        body.body-mobile #ai-vault-documents-container .ai-user-doc-item .ai-history-item-title {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            word-break: break-word;
        }

        body.body-mobile #ai-vault-documents-container .ai-user-doc-item .ai-history-item-time {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Document Item Actions */
        body.body-mobile #ai-vault-documents-container .ai-user-doc-item .ai-history-item-actions {
            display: flex;
            flex-shrink: 0;
        }

    /* Action Button - Touch target */
    body.body-mobile #ai-vault-documents-container .ai-history-action-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        body.body-mobile #ai-vault-documents-container .ai-history-action-btn:active {
            transform: scale(0.95); /* Touch feedback */
        }

    /* Load More Button - Touch target */
    body.body-mobile #ai-vault-documents-container .ai-history-load-more {
        flex-shrink: 0;
    }

        body.body-mobile #ai-vault-documents-container .ai-history-load-more button {
            width: 100%;
            min-height: 48px; /* Touch-friendly */
        }

            body.body-mobile #ai-vault-documents-container .ai-history-load-more button:active {
                transform: scale(0.99); /* Touch feedback */
            }

/* ========================================
   WORKSPACES VIEW - MINIMAL MOBILE FIXES
   ======================================== */

/* Workspaces - viewport height */
body.body-mobile #workspaces-container {
    height: 100vh;
    height: 100dvh; /* iOS Safari address bar fix */
    overflow: hidden;
}

/* Workspaces buttons - touch targets */
body.body-mobile .ai-vault-action-button,
body.body-mobile .ai-vault-header-btn {
    min-height: 48px;
    min-width: 48px;
}

    body.body-mobile .ai-vault-action-button:active,
    body.body-mobile .ai-vault-header-btn:active {
        transform: scale(0.98); /* Touch feedback */
    }

/* Workspaces search - iOS zoom prevention */
body.body-mobile .ai-vault-search-input {
    font-size: 16px !important;
    font-size: max(16px, 1rem) !important;
    min-height: 44px;
}

/* Workspaces tabs container - horizontal scroll */
body.body-mobile .ai-vault-content-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px; /* Reduce padding for mobile */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

    body.body-mobile .ai-vault-content-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

/* Workspaces tab button - layout only */
body.body-mobile .ai-vault-tab-button {
    min-height: 44px; /* Touch target */
    padding: 10px 16px; /* Reduce padding for mobile */
    display: flex;
    align-items: center;
    gap: 6px; /* Space between icon, label, counter */
    white-space: nowrap;
    flex-shrink: 0; /* Don't shrink */
}

    body.body-mobile .ai-vault-tab-button:active {
        transform: scale(0.98); /* Touch feedback */
    }

/* Tab counter badge - inline layout */
body.body-mobile .ai-vault-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1;
}

/* Workspaces sidebar overlay */
body.body-mobile .ai-vault-workspace-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85vw;
    max-width: 320px;
    height: 100%;
    height: 100dvh;
    z-index: 10000;
    transition: left 0.3s ease;
}

    body.body-mobile .ai-vault-workspace-sidebar.ai-vault-sidebar-visible {
        left: 0;
    }

/* Sidebar close button - ensure visible and touch-friendly */
body.body-mobile .ai-vault-sidebar-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
}

    body.body-mobile .ai-vault-sidebar-toggle:active {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    body.body-mobile .ai-vault-sidebar-toggle i {
        font-size: 20px !important;
        color: #ffffff !important;
    }

/* Sidebar header - ensure close button is visible */
body.body-mobile .ai-vault-sidebar-header {
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

/* Workspaces container - overlay layout (not flexbox) */
body.body-mobile .ai-vault-workspace-container {
    display: block !important; /* Override desktop flexbox */
    position: relative;
    height: 100% !important;
}

/* Workspaces main content - full screen (sidebar overlays on top) */
body.body-mobile .ai-vault-workspace-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1; /* Below sidebar */
    box-sizing: border-box !important;
}

/* Mobile hamburger menu button - opens sidebar */
.ai-vault-mobile-menu-btn {
    display: none; /* Hidden by default (desktop) */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #9c9c9c;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
    min-width: 40px;
    height: 40px;
}

.ai-vault-mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

body.body-mobile .ai-vault-mobile-menu-btn {
    display: flex; /* Visible only on mobile */
    align-items: center;
    justify-content: center;
}

body.body-mobile .ai-vault-mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* Workspace header - adjust padding and spacing */
body.body-mobile .ai-vault-main-header {
    padding: 16px !important;
    min-height: auto !important;
    flex-wrap: wrap;
    gap: 12px;
}

body.body-mobile .ai-vault-header-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

body.body-mobile .ai-vault-current-workspace-details h1 {
    font-size: 18px !important;
    margin: 0 !important;
}

body.body-mobile .ai-vault-current-workspace-details p {
    font-size: 13px !important;
    margin: 4px 0 0 0 !important;
}

/* Header actions - icon only on mobile */
body.body-mobile .ai-vault-header-actions {
    gap: 8px !important;
}

/* When visible, display as flex */
body.body-mobile .ai-vault-header-actions:not([style*="display: none"]) {
    display: flex !important;
}

body.body-mobile .ai-vault-header-btn {
    padding: 10px !important; /* Square, icon-only */
    min-width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
}

body.body-mobile .ai-vault-header-btn span {
    display: none !important; /* Hide text, show only icons */
}

body.body-mobile .ai-vault-header-btn svg {
    display: block !important; /* SHOW icons */
    margin: 0 !important; /* Center icon */
    width: 20px !important;
    height: 20px !important;
}

/* Workspace content scrolling */
body.body-mobile .ai-vault-workspace-content {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

body.body-mobile .ai-vault-workspace-list,
body.body-mobile .ai-vault-tab-content {
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   WORKSPACE OVERVIEW - MOBILE FIXES
   ======================================== */

/* Summary stats - smaller numbers to prevent overflow */
body.body-mobile .ai-vault-summary-stats {
    gap: 8px !important; /* Reduce gap between stats */
    padding: 0 8px !important;
}

body.body-mobile .ai-vault-summary-stat-number {
    font-size: 24px !important; /* Smaller than desktop 32px */
    font-weight: 600 !important;
}

body.body-mobile .ai-vault-summary-stat-label {
    font-size: 11px !important;
}

/* Overview sections - prevent horizontal overflow */
body.body-mobile .ai-vault-overview-section {
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.body-mobile .ai-vault-overview-grid {
    gap: 16px !important;
    padding: 0 !important;
}

/* Recent sessions - ensure text truncation works */
body.body-mobile .ai-vault-recent-session-item {
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 12px !important;
}

body.body-mobile .ai-vault-recent-session-content {
    max-width: 100% !important;
    overflow: hidden !important;
}

body.body-mobile .ai-vault-recent-session-title {
    max-width: 100% !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Recent items (documents/sources) - same fix */
body.body-mobile .ai-vault-item-card {
    max-width: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.body-mobile .ai-vault-items-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 12px !important;
}

body.body-mobile .ai-vault-item-info {
    max-width: 100% !important;
    overflow: hidden !important;
}

body.body-mobile .ai-vault-item-title {
    max-width: 100% !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: normal !important; /* Override desktop word-wrap */
}

/* ========================================
   CHAT VIEWS - MINIMAL MOBILE FIXES
   ======================================== */

/* Chat containers - viewport height */
/* Note: #basic-chat-container excluded - uses .ai-view-container layout */
body.body-mobile .ai-chat-container {
    height: 100vh;
    height: 100dvh; /* iOS Safari address bar fix */
    overflow: hidden;
}

/* Chat textarea - iOS zoom prevention */
body.body-mobile .ai-search-input-textarea,
body.body-mobile #ai-search-textarea,
body.body-mobile #ai-chat-textarea {
    font-size: 16px !important; /* iOS zoom prevention */
    font-size: max(16px, 1rem) !important;
    min-height: 48px;
}

/* Chat buttons - touch targets */
body.body-mobile .ai-advanced-action-btn,
body.body-mobile .ai-search-input-textarea-btn {
    /* min-height: 44px; - removed, too big */
    /* min-width: 44px; - removed, too big */
}

    body.body-mobile .ai-advanced-action-btn:active,
    body.body-mobile .ai-search-input-textarea-btn:active {
        transform: scale(0.95); /* Touch feedback */
    }

/* Chat messages scrolling */
body.body-mobile .ai-chat-messages-box {
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px; /* ADD PADDING so input doesn't cover messages */
}

/* Chat messages container - ensure proper spacing */
body.body-mobile #chatMessages {
    padding-bottom: 100px !important; /* Extra padding for input area */
}


/* Ensure content doesn't overflow horizontally */
body.body-mobile body,
body.body-mobile #ai-application {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}



body.body-mobile .ai-title-wrapper h1 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important; /* Space between TFL, icon, Chat */
    flex-wrap: nowrap !important; /* Keep on one line */
}

    body.body-mobile .ai-title-wrapper h1 img {
        max-width: 40px !important; /* Limit AI icon size */
        height: auto !important;
    }



/* Document Comparison UI - Unified List */
.playbook-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .playbook-header-content h2 {
        margin: 0;
        color: #fff;
        font-size: 24px;
        font-weight: 600;
    }

.playbook-header-icon {
    color: #51afea;
    flex-shrink: 0;
}

.playbook-comparison-instructions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(82, 175, 234, 0.1);
    border-left: 3px solid #51afea;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #a8a8a8;
}

    .playbook-comparison-instructions svg {
        color: #51afea;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .playbook-comparison-instructions strong {
        color: #fff;
        font-weight: 600;
    }

.playbook-comparison-selection-status {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.selection-status-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .selection-status-item svg {
        flex-shrink: 0;
        color: #51afea;
    }

    .selection-status-item strong {
        color: #fff;
    }

.status-text {
    color: #a8a8a8;
}

    .status-text.selected {
        color: #51afea;
        font-weight: 500;
    }

.status-arrow {
    flex-shrink: 0;
    color: #6b6b6b;
}

.playbook-comparison-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

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

    .search-input-wrapper .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b6b6b;
        pointer-events: none;
    }

.playbook-doc-search-unified {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 12px 16px 12px 44px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .playbook-doc-search-unified:focus {
        outline: none;
        border-color: #51afea;
        background: #2a2a2a;
    }

    .playbook-doc-search-unified::placeholder {
        color: #6b6b6b;
    }

.playbook-btn-upload,
.playbook-btn-refresh {
    background: #2a2a2a;
    border: 2px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.playbook-btn-upload {
    background: #3d8ac7;
    border-color: #3d8ac7;
    color: #fff;
}

    .playbook-btn-upload:hover {
        background: #51afea;
        border-color: #51afea;
        transform: translateY(-1px);
    }

.playbook-btn-refresh:hover {
    background: #2a2a2a;
    border-color: #51afea;
    color: #51afea;
}

.playbook-btn-upload:disabled,
.playbook-btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


    .playbook-comparison-document-list::-webkit-scrollbar {
        width: 8px;
    }

    .playbook-comparison-document-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .playbook-comparison-document-list::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 4px;
    }

        .playbook-comparison-document-list::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Playbook document lists - minimalist style */
.playbook-doc-list-item {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    transition: all 0.15s;
    margin-bottom: 6px;
    cursor: pointer;
    padding: 10px 12px;
}

    .playbook-doc-list-item:hover {
        background-color: #333333;
        border-color: #51afea;
    }

/* Content wrapper */
.playbook-doc-content {
    flex: 1;
    min-width: 0;
}

.playbook-doc-name {
    color: #a8a8a8;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checkmark - hidden by default, visible when selected */
.playbook-doc-checkmark {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
    color: #fff;
}

/* Selected states */
.playbook-doc-list-item.selected {
    background-color: #3d8ac7;
}

    .playbook-doc-list-item.selected .playbook-doc-name {
        color: #fff;
        font-weight: 500;
    }

    .playbook-doc-list-item.selected .playbook-doc-checkmark {
        opacity: 1;
        transform: scale(1);
    }


/* Comparison dual-select - Document 1 and 2 (Both Blue, numbered) */
.playbook-doc-list-item.selected-doc1,
.playbook-doc-list-item.selected-doc2 {
    background: rgba(82, 175, 234, 0.9) !important;
    border-color: #51afea !important;
}

    .playbook-doc-list-item.selected-doc1 .playbook-doc-checkmark,
    .playbook-doc-list-item.selected-doc2 .playbook-doc-checkmark {
        background: #fff;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .playbook-doc-list-item.selected-doc1 .playbook-doc-checkmark svg,
        .playbook-doc-list-item.selected-doc2 .playbook-doc-checkmark svg {
            display: none;
        }

        .playbook-doc-list-item.selected-doc1 .playbook-doc-checkmark::after {
            content: '1';
            color: #51afea;
            font-weight: 700;
            font-size: 14px;
        }

        .playbook-doc-list-item.selected-doc2 .playbook-doc-checkmark::after {
            content: '2';
            color: #51afea;
            font-weight: 700;
            font-size: 14px;
        }

.playbook-doc-loading,
.playbook-doc-no-results,
.playbook-doc-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #6b6b6b;
    font-size: 14px;
}

.playbook-doc-error {
    color: #ef4444;
}

/* Upload notification */
.playbook-upload-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

    .playbook-upload-notification.error {
        background: #dc3545;
    }

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.playbook-btn-upload svg.spinning,
.playbook-btn-refresh svg.spinning,
.playbook-doc-loading svg.spinning {
    animation: spin 1s linear infinite;
}

.playbook-doc-loading svg {
    color: #51afea;
}
/* ============================================================================
   UNIFIED PLAYBOOK DIALOG STYLES - MINIMALIST DARK DESIGN
   ============================================================================ */

/* Overlay (backdrop) */
.playbook-comparison-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Container - Clean, minimal shadow */
.playbook-comparison-container {
    background: #272727;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Header - Simple, flat */
.playbook-comparison-header {
    padding: 14px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header content with icon */
.playbook-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.playbook-header-icon {
    color: #51afea;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.playbook-comparison-header h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Close button - SIMPLE like workspace (no animation) */
.playbook-comparison-close {
    background: none;
    border: none;
    color: #9c9c9c;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
}

.playbook-comparison-close:hover {
    background: #333333;
    color: #fff;
}

/* Body */
.playbook-comparison-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
}

/* Info box - Subtle */
.playbook-comparison-instructions {
    background: rgba(81, 175, 234, 0.08);
    border-left: 2px solid #51afea;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #a8a8a8;
}

.playbook-comparison-instructions svg {
    flex-shrink: 0;
    color: #51afea;
    margin-top: 1px;
    width: 16px;
    height: 16px;
}

.playbook-comparison-instructions strong {
    color: #51afea;
    font-weight: 500;
}

/* Selection status bar */
.playbook-comparison-selection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 12px;
}

.selection-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: #a8a8a8;
}

.selection-status-item svg {
    color: #51afea;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.selection-status-item strong {
    color: #a8a8a8;
    font-weight: 500;
}

.status-text {
    color: #6b6b6b;
}

.status-text.selected {
    color: #51afea;
    font-weight: 500;
}

.status-arrow {
    color: #555;
    flex-shrink: 0;
}

/* Search and controls */
.playbook-comparison-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 10px;
    color: #555;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.playbook-doc-search-unified {
    width: 100%;
    padding: 8px 10px 8px 34px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    transition: border-color 0.15s;
}

.playbook-doc-search-unified:focus {
    outline: none;
    border-color: #51afea;
}

.playbook-doc-search-unified::placeholder {
    color: #555;
}

/* Upload/Refresh buttons */
.playbook-btn-upload,
.playbook-btn-refresh {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #a8a8a8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}

.playbook-btn-upload:hover,
.playbook-btn-refresh:hover {
    background: #333333;
    border-color: #51afea;
    color: #51afea;
}

.playbook-btn-upload svg,
.playbook-btn-refresh svg {
    flex-shrink: 0;
}

.playbook-comparison-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.playbook-comparison-divider {
    background: #3d8ac7;
    color: #fff;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 60px;
}

.playbook-doc-selector h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.playbook-doc-search {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

    .playbook-doc-search:focus {
        outline: none;
        border-color: #51afea;
    }

.playbook-doc-results {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}


/* Old playbook-doc-result-item styles removed - now using ai-advanced-item structure */

/* Loading, no results, error states */
.playbook-doc-loading,
.playbook-doc-no-results,
.playbook-doc-error {
    padding: 40px 16px;
    text-align: center;
    color: #6b6b6b;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.playbook-doc-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scrollbar for document list */
.playbook-comparison-document-list::-webkit-scrollbar {
    width: 6px;
}

.playbook-comparison-document-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.playbook-comparison-document-list::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

.playbook-comparison-document-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Actions footer - COMPACT */
.playbook-comparison-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.playbook-btn-secondary,
.playbook-btn-primary {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.playbook-btn-secondary {
    background: #2a2a2a;
    color: #a8a8a8;
    border-color: rgba(255,255,255,0.12);
}

.playbook-btn-secondary:hover {
    background: #333333;
    border-color: #51afea;
    color: #51afea;
}

.playbook-btn-primary {
    background: #3d8ac7;
    color: #fff;
    border-color: #3d8ac7;
}

.playbook-btn-primary:hover:not(:disabled) {
    background: #51afea;
    border-color: #51afea;
}

.playbook-btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.playbook-btn-primary svg,
.playbook-btn-secondary svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.playbook-comparison-results {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.playbook-comparison-result-section {
    margin-bottom: 32px;
}

    .playbook-comparison-result-section h3 {
        color: #fff;
        font-size: 18px;
        margin: 0 0 16px 0;
    }

.ai-commentary {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #51afea;
}

    .ai-commentary p {
        color: #a8a8a8;
        line-height: 1.6;
        margin: 8px 0;
    }

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: #a8a8a8;
    font-size: 14px;
}

/* Diff Viewer Styles */
.diff-viewer {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #a8a8a8;
}

    .diff-viewer ins {
        background-color: rgba(74, 222, 128, 0.2);
        color: #4ade80;
        text-decoration: none;
        padding: 2px 4px;
        border-radius: 3px;
    }

    .diff-viewer del {
        background-color: rgba(248, 113, 113, 0.2);
        color: #f87171;
        text-decoration: line-through;
        padding: 2px 4px;
        border-radius: 3px;
    }

    .diff-viewer h1, .diff-viewer h2, .diff-viewer h3 {
        color: #fff;
        margin: 16px 0 8px 0;
    }

    .diff-viewer p {
        margin: 8px 0;
    }


insdiff {
    text-decoration: inherit;
    --color1: #c8f0da;
    --color2: #c8f0da;
    --height: 100%;
    all: unset;
    background-image: linear-gradient(var(--color1), var(--color2));
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: 0 var(--height);
}

deldiff {
    text-decoration: none;
    --color1: #ffcbbd;
    --color2: #ffcbbd;
    --height: 100%;
    all: unset;
    background-image: linear-gradient(var(--color1), var(--color2));
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: var(--height);

}

/* ============================================================================
   PLAYBOOK BULK ANALYSIS - CHECKBOX COUNTER STYLE
   ============================================================================ */

/* Checkbox counter bar */
.bulk-selection-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(82, 175, 234, 0.1);
    border: 1px solid rgba(82, 175, 234, 0.3);
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.bulk-selection-counter svg {
    color: #51afea;
}

.bulk-selection-counter strong {
    color: #51afea;
    font-weight: 600;
}

/* Bulk analysis styles removed - now using ai-advanced-item with checkboxes */

.playbook-bulk-results {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-results-summary h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #fff;
}

.bulk-results-summary p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.bulk-results-stats,
.bulk-results-types,
.bulk-results-missing {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bulk-results-stats h4,
.bulk-results-types h4,
.bulk-results-missing h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.bulk-results-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-results-types li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.bulk-results-missing p.small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================================================
   LEGAL FOLDER FROM CASE - Styling
   ============================================================================ */

/* Input tabs */
.legalfolder-input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legalfolder-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legalfolder-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.legalfolder-tab.active {
    color: #51afea;
    border-bottom-color: #51afea;
}

.legalfolder-tab svg {
    width: 18px;
    height: 18px;
}

/* Tab content */
.legalfolder-tab-content {
    display: none;
}

.legalfolder-tab-content.active {
    display: block;
}

/* Input group */
.legalfolder-input-group {
    margin-bottom: 20px;
}

.legalfolder-input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.legalfolder-textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.legalfolder-textarea:focus {
    outline: none;
    border-color: #51afea;
    background: rgba(255, 255, 255, 0.08);
}

.legalfolder-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.legalfolder-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.legalfolder-input:focus {
    outline: none;
    border-color: #51afea;
    background: rgba(255, 255, 255, 0.08);
}

.legalfolder-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Upload zone */
.legalfolder-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 20px;
}

.legalfolder-upload-zone:hover {
    border-color: #51afea;
    background: rgba(82, 175, 234, 0.05);
}

.legalfolder-upload-zone.dragover {
    border-color: #51afea;
    background: rgba(82, 175, 234, 0.1);
    transform: scale(1.02);
}

.legalfolder-upload-zone svg {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.legalfolder-upload-zone h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.legalfolder-upload-zone p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0 0 16px 0;
}

.legalfolder-browse-btn {
    padding: 8px 16px;
    background: rgba(82, 175, 234, 0.15);
    border: 1px solid #51afea;
    border-radius: 6px;
    color: #51afea;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.legalfolder-browse-btn:hover {
    background: rgba(82, 175, 234, 0.25);
}

/* File list */
.legalfolder-file-list {
    margin-top: 16px;
}

.legalfolder-files-header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legalfolder-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
}

.legalfolder-file-item svg {
    flex-shrink: 0;
    color: #51afea;
}

.legalfolder-file-info {
    flex: 1;
    min-width: 0;
}

.legalfolder-file-name {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legalfolder-file-size {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 2px;
}

.legalfolder-file-remove {
    flex-shrink: 0;
    padding: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.legalfolder-file-remove:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

/* ================================================
   CASE REPORT PLAYBOOK STYLES
   ================================================ */

.casereport-workspace-selector {
    margin-top: 16px;
}

.casereport-workspace-selector label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.casereport-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.casereport-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.casereport-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.casereport-dropdown option {
    background: #1a1a2e;
    color: #fff;
}

.casereport-workspace-preview {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.casereport-workspace-preview h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.casereport-counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.casereport-count-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.casereport-count-item .count-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.casereport-count-item .count-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.casereport-loading,
.casereport-error,
.casereport-empty {
    text-align: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.casereport-error {
    color: #ff6b6b;
}

.casereport-empty {
    color: #ffa726;
}

.casereport-options {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.casereport-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.casereport-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}

/* Voice Control Styles - see main styles below */

#voice-status.recording {
    color: #ef4444;
    font-weight: 500;
}

#voice-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#voice-message.show {
    opacity: 1;
}

#voice-message.success {
    background: #10b981;
    color: white;
}

#voice-message.error {
    background: #ef4444;
    color: white;
}

#voice-message.info {
    background: #3b82f6;
    color: white;
}

/* Voice Recording - Minimal Indicator */
/* Textarea gets red glow border when recording */
.voice-recording-active .ai-search-textarea-container {
    box-shadow: 0 0 0 2px #ef4444, 0 0 12px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transition: box-shadow 0.2s ease;
}

/* Mic button pulsing when recording */
#voice-input-btn.recording {
    color: #ef4444;
    animation: mic-pulse 1.5s ease-in-out infinite;
}

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

/* Interim text style (uncertain words) */
.voice-interim {
   
    user-select: none;
}

/* Microphone Permission Instructions */
.mic-permission-instructions {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: mic-instructions-slide-in 0.3s ease-out;
}

@keyframes mic-instructions-slide-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mic-instructions-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 360px;
    overflow: hidden;
}

.mic-instructions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
}

.mic-instructions-icon {
    font-size: 18px;
}

.mic-instructions-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mic-instructions-close:hover {
    color: #6b7280;
}

.mic-instructions-body {
    padding: 16px;
}

.mic-instructions-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
}

.mic-arrow-icon {
    font-size: 24px;
    animation: mic-arrow-bounce 1s ease-in-out infinite;
}

@keyframes mic-arrow-bounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, -4px); }
}

.mic-arrow-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.mic-instructions-text {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.mic-instructions-note {
    margin: 12px 0 0 0;
    padding: 8px 12px;
    background: #fef9c3;
    border-radius: 6px;
    font-size: 13px;
    color: #854d0e;
    line-height: 1.4;
}

.mic-instructions-footer {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.mic-instructions-btn {
    width: 100%;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mic-instructions-btn:hover {
    background: #1d4ed8;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Premium Upgrade Modal */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Premium Upgrade Modal */
.ai-premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ai-premium-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-premium-modal {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ai-premium-modal-overlay.active .ai-premium-modal {
    transform: scale(1);
}

.ai-premium-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ai-premium-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #1f2937;
}

.ai-premium-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.ai-premium-modal-feature {
    font-size: 16px;
    color: #fbbf24;
    margin-bottom: 16px;
    font-weight: 500;
}

.ai-premium-modal-description {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ai-premium-modal-benefits {
    text-align: left;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ai-premium-modal-benefits-title {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-premium-modal-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #e5e7eb;
    font-size: 14px;
}

.ai-premium-modal-benefit svg {
    color: #22c55e;
    flex-shrink: 0;
}

.ai-premium-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ai-premium-modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ai-premium-modal-btn-primary {
    background: #3d8ac7;
    color: #ffffff;
}

.ai-premium-modal-btn-primary:hover {
    background: #51afea;
    transform: translateY(-1px);
}

.ai-premium-modal-btn-secondary {
    background: #333333;
    color: #e5e7eb;
}

.ai-premium-modal-btn-secondary:hover {
    background: #4a4a4a;
}

/* Mobile adjustments for premium modal */
body.body-mobile .ai-premium-modal {
    padding: 24px;
    margin: 16px;
}

body.body-mobile .ai-premium-modal-title {
    font-size: 20px;
}

body.body-mobile .ai-premium-modal-actions {
    flex-direction: column;
}

/* Playbook result card - dark mode compatible */
.ai-playbook-result {
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.ai-playbook-result-header {
    font-size: 0.9em;
    color: #a8a8a8;
    margin-bottom: 12px;
    font-weight: 500;
}

.ai-playbook-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #3d8ac7;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ai-playbook-download-btn:hover {
    background: #51afea;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ai-playbook-download-btn svg {
    flex-shrink: 0;
}

.ai-playbook-download-btn .ai-download-filename {
    word-break: break-all;
    line-height: 1.3;
}

.ai-playbook-result-meta {
    font-size: 0.8em;
    color: #6b6b6b;
    margin-top: 10px;
    padding-left: 2px;
}

/* Playbook comparison title - light text for dark mode */
.ai-right-panel-comparison-title {
    color: #e0e0e0;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Diff content styling - ensure text readability */
.ai-right-panel-diff-content {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 16px;
}

.ai-right-panel-diff-html {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Diff highlight colors with good contrast */
.ai-right-panel-diff-html ins,
.ai-right-panel-diff-html .diff-ins {
    background: rgba(46, 125, 50, 0.3);
    color: #81c784;
    text-decoration: none;
    padding: 1px 2px;
    border-radius: 2px;
}

.ai-right-panel-diff-html del,
.ai-right-panel-diff-html .diff-del {
    background: rgba(198, 40, 40, 0.3);
    color: #ef9a9a;
    text-decoration: line-through;
    padding: 1px 2px;
    border-radius: 2px;
}

/* ========================================
   WORKSPACE DIALOG STYLES
   ======================================== */

/* Workspace button in document preview */
.ai-right-panel-workspace-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #9e9e9e;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-right-panel-workspace-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4fc3f7;
}

.ai-right-panel-workspace-btn:active {
    transform: scale(0.95);
}

.ai-right-panel-workspace-btn svg {
    width: 18px;
    height: 18px;
}

/* Workspace dialog popup */
.ai-workspace-dialog {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0;
    width: 300px;
    max-width: calc(100vw - 20px);
    z-index: 99999999999;
    overflow: hidden;
}

.ai-workspace-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: #333333;
}

.ai-workspace-dialog-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.ai-workspace-dialog-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9e9e9e;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-workspace-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ai-workspace-search {
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 10px 14px;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-workspace-search:focus {
    border-color: #4fc3f7;
}

.ai-workspace-search::placeholder {
    color: #757575;
}

.ai-workspace-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}

.ai-workspace-list::-webkit-scrollbar {
    width: 6px;
}

.ai-workspace-list::-webkit-scrollbar-track {
    background: transparent;
}

.ai-workspace-list::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 3px;
}

.ai-workspace-list::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.ai-workspace-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 8px;
    background: transparent;
    transition: all 0.15s ease;
}

.ai-workspace-item:hover {
    background: rgba(79, 195, 247, 0.15);
}

.ai-workspace-item:active {
    background: rgba(79, 195, 247, 0.25);
    transform: scale(0.98);
}

.ai-workspace-item-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.ai-workspace-item-count {
    color: #9e9e9e;
    font-size: 12px;
    flex-shrink: 0;
}

.ai-workspace-loading,
.ai-workspace-empty {
    padding: 24px 16px;
    text-align: center;
    color: #9e9e9e;
    font-size: 14px;
}

/* Toast notification */
.ai-workspace-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #4fc3f7;
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999999999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: toastSlideUp 0.3s ease;
}

.ai-workspace-toast-error {
    background: #ef5350;
    color: #ffffff;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   AI MODAL STYLES
   Extracted from: site-desktop-1.5.css (lines 13903-13954)
   ============================================ */

.ai-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.ai-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.ai-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .ai-close-button:hover,
    .ai-close-button:focus {
        color: black;
        text-decoration: none;
    }

/* ============================================
   AI DARK MODE ALERT OVERRIDES
   Extracted from: site-desktop-1.5.css (lines 14503-14600)
   ============================================ */

.ialert-backdrop.ai-dark-alert .ialert-modal,
.ai-dark-alert.ialert-modal {
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
}

.ialert-backdrop.ai-dark-alert .ialert-modal-header,
.ai-dark-alert .ialert-modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ialert-backdrop.ai-dark-alert .ialert-modal-title,
.ai-dark-alert .ialert-modal-title {
    color: #ffffff;
}

.ialert-backdrop.ai-dark-alert .ialert-modal-body,
.ai-dark-alert .ialert-modal-body,
.ialert-backdrop.ai-dark-alert .ialert-modal-body p,
.ai-dark-alert .ialert-modal-body p {
    color: #a8a8a8;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-ok,
.ai-dark-alert .ialert-btn-ok {
    background-color: #3d8ac7;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-ok:hover,
.ai-dark-alert .ialert-btn-ok:hover {
    background-color: #51afea;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-cancel,
.ai-dark-alert .ialert-btn-cancel {
    background-color: #333333;
    color: #b8b8b8;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-cancel:hover,
.ai-dark-alert .ialert-btn-cancel:hover {
    background-color: #404040;
    color: #ffffff;
}

/* ============================================
   AI CONTENT CONTROLS
   Extracted from: site-desktop-1.5.css (lines 14672-14749)
   ============================================ */

#ai-content-close {
    cursor: pointer;
    background-color: transparent;
    border-radius: 50%;
    padding: 5px;
    transition: background-color 0.3s;
}

    #ai-content-close:hover {
        background-color: rgba(255, 255, 255, 0.07);
    }

#ai-content-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 16px;
}

#ai-content-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#ai-copy {
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    color: #9c9c9c;
    transition: all 0.2s;
}

    #ai-copy:hover {
        background-color: rgba(255, 255, 255, 0.07);
        color: #ffffff;
    }

/* ============================================
   AI LEGAL MAP / RESEARCH STYLES
   Extracted from: site-desktop-1.5.css (lines 16031-16180)
   ============================================ */

.ai-raziskovanje-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #165A87;
}

.ai-raziskovanje-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #ffffff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.ai-raziskovanje-section {
    margin-bottom: 20px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
}

    .ai-raziskovanje-section h3 {
        background-color: #444;
        padding: 8px 12px;
        margin: 0;
        font-size: 1rem;
        color: #fff;
    }

.ai-raziskovanje-content {
    padding: 12px 16px;
}

.ai-raziskovanje-zakon {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #444;
}

    .ai-raziskovanje-zakon:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.ai-raziskovanje-zakon-title {
    font-weight: bold;
    color: #51afea;
    margin-bottom: 4px;
}

.ai-raziskovanje-zakon-cleni {
    margin-left: 16px;
    font-style: italic;
    font-size: 0.9rem;
    color: #ccc;
}

.ai-raziskovanje-zakon-opis {
    margin-top: 4px;
}

.ai-raziskovanje-sodba {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #444;
}

    .ai-raziskovanje-sodba:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.ai-raziskovanje-sodba-title {
    font-weight: bold;
    color: #51afea;
    margin-bottom: 6px;
}

.ai-raziskovanje-sodba-opis {
    font-size: 0.95rem;
}

.ai-raziskovanje-izracun {
    background-color: #3a3a3a;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
}

.ai-raziskovanje-izracun-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.ai-raziskovanje-izracun-formula {
    font-family: monospace;
    background-color: #2a2a2a;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ai-raziskovanje-izracun-primer {
    border-left: 2px solid #51afea;
    padding-left: 8px;
    margin-top: 8px;
}

.ai-raziskovanje-izjema {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

    .ai-raziskovanje-izjema::before {
        content: "\2022";
        position: absolute;
        left: 0;
        color: #51afea;
    }

.ai-raziskovanje-concept-tag {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ai-raziskovanje-main-concept-tag {
    background-color: #165A87;
    font-weight: bold;
}

.ai-raziskovanje-related-concepts-container,
.ai-raziskovanje-legal-basis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ai-raziskovanje-legal-basis-tag {
    display: inline-block;
    background-color: #444;
    color: #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    border-left: 3px solid #51afea;
}

@media (max-width: 768px) {
    .ai-raziskovanje-container,
    .ai-raziskovanje-board {
        padding: 12px;
    }

    .ai-raziskovanje-section h3 {
        font-size: 0.9rem;
    }

    .ai-raziskovanje-concept-tag,
    .ai-raziskovanje-legal-basis-tag {
        font-size: 0.8rem;
    }
}

/* ============================================
   AI RIGHT PANEL STYLES
   Extracted from: site-desktop-1.5.css (lines 17927-18440)
   ============================================ */

.ai-right-panel-container,
#ai-advanced-sources-panel {
    position: fixed;
    top: var(--header-height);
    right: -100vw;
    width: var(--panel-width);
    max-width: var(--panel-width);
    min-width: 320px;
    height: calc(100% - var(--header-height));
    background: #1a1a1a;
    z-index: 999;
    overflow: hidden;
    transition: right 0.5s ease;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

    .ai-right-panel-container.active,
    #ai-advanced-sources-panel.active {
        right: 0;
    }

@media screen and (min-width: 900px) {
    .panel-active .ai-chat-container,
    .panel-active .ai-chat-bottom-wrapper,
    .panel-active .ai-chat-messages-box,
    .panel-active .ai-search-container,
    .panel-active #court-chat-container {
        width: calc(100% - var(--panel-width) - 100px);
        transition: width 0.3s ease;
        margin-left: 85px;
    }
}

@media screen and (max-width: 899px) {
    .ai-right-panel-container,
    #ai-advanced-sources-panel {
        width: 90vw;
        max-width: 450px;
    }

    .panel-active .ai-chat-container,
    .panel-active .ai-chat-bottom-wrapper,
    .panel-active .ai-chat-messages-box,
    .panel-active .ai-search-container,
    .panel-active #court-chat-container {
        width: 100% !important;
    }
}

.ai-right-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ai-right-panel-header-content {
    flex: 1;
    overflow: hidden;
    margin-left: 10px;
}

.ai-right-panel-question {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-right-panel-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

    .ai-right-panel-title a {
        all: unset;
    }

    .ai-right-panel-title:hover {
        color: #51afea;
        text-decoration: underline;
    }

.ai-right-panel-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ai-right-panel-close:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.ai-right-panel-controls {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ai-right-panel-controls-left {
    display: flex;
    align-items: center;
}

.ai-right-panel-copy {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ai-right-panel-copy:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.ai-right-panel-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.ai-right-panel-content {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    line-height: 1.5;
}

    .ai-right-panel-content::-webkit-scrollbar {
        height: 1rem;
        width: 0.5rem;
    }

    .ai-right-panel-content::-webkit-scrollbar-thumb {
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-right-panel-document-content {
    padding: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.ai-right-panel-document-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-right-panel-block-title {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
}

    .ai-right-panel-block-title a {
        all: unset;
    }

    .ai-right-panel-block-title:hover {
        color: #52AFEA;
        text-decoration: underline;
        cursor: pointer;
    }

.ai-right-panel-block-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-right-panel-content-match {
    background: rgba(81, 175, 234, 0.15);
    border-left: 3px solid #51afea;
    border-radius: 0 4px 4px 0;
}

.ai-right-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.ai-right-panel-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #51afea;
    border-radius: 50%;
    animation: ai-right-panel-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes ai-right-panel-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ai-right-panel-error {
    padding: 16px;
    margin: 16px;
    background: rgba(255, 80, 80, 0.1);
    border-left: 3px solid rgba(255, 80, 80, 0.6);
    border-radius: 0 4px 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.ai-right-panel-notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(81, 175, 234, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1010;
}

.ai-right-panel-document {
    padding: 4px;
    margin-bottom: 16px;
}

.ai-right-panel-document-header {
    margin-bottom: 16px;
}

.ai-right-panel-document-institutiTags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ai-right-panel-tag {
    background: rgba(81, 175, 234, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.ai-right-panel-document-section {
    margin-bottom: 24px;
    border-radius: 6px;
    padding: 12px;
}

.ai-right-panel-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-right-panel-section-content {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.ai-right-panel-paragraph-title {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.ai-right-panel-paragraph {
    display: flex;
    font-size: 14px;
    padding: 8px 12px;
    margin: 2px 0px;
    border-radius: 4px;
    gap: 10px;
}

.ai-right-panel-paragraph-number {
    display: none;
    flex-shrink: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
    min-width: 24px;
}

.ai-right-panel-paragraph-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 12px;
}

    .ai-right-panel-paragraph-content h3 {
        color: rgba(255, 255, 255, 0.8) !important;
    }

.ai-right-panel-metadata-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
}

.ai-right-panel-metadata-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.ai-right-panel-metadata-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.ai-right-panel-document-metadata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 12px;
    padding: 10px;
}

.ai-right-panel-metadata-item {
    display: flex;
    align-items: center;
}

/* ============================================
   AI DATE FILTER DIALOG
   Extracted from: site-desktop-1.5.css (lines 19417-19620)
   ============================================ */

.ai-date-filter-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-date-filter-container {
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    background: #1E1E1E;
    z-index: 999;
    overflow: hidden;
    transition: right 0.5s ease;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

.ai-date-filter-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

    .ai-date-filter-header h3 {
        margin: 0;
        color: #9c9c9c;
        font-size: 18px;
    }

.ai-date-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #9c9c9c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .ai-date-filter-close:hover {
        background-color: #f5f5f5;
    }

.ai-date-filter-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .ai-date-filter-content p {
        margin: 0 0 15px 0;
        color: #9c9c9c;
    }

.ai-date-filter-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

    .ai-date-filter-actions button {
        padding: 8px 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        background: #f8f9fa;
        transition: background-color 0.2s;
        font-family: 'Open Sans';
        font-weight: bold;
        font-size: 12px;
    }

        .ai-date-filter-actions button:hover {
            background-color: #e9ecef;
        }

.ai-date-filter-clear {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

    .ai-date-filter-clear:hover {
        background-color: #c82333 !important;
    }

#ai-date-filter-calendar .ui-datepicker {
    position: static !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: none;
    min-width: 300px;
}

#ai-date-filter-calendar .ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: .2em 0;
    background: none;
    border: none;
}

#ai-date-filter-picker {
    border: none !important;
    background: none;
    pointer-events: none;
    height: 0px !important;
    padding: 0px !important;
}

    #ai-date-filter-picker:active,
    #ai-date-filter-picker:focus {
        border: none !important;
        outline: none;
    }

.ai-date-filter-dialog .ui-widget-content {
    background: #404041;
    background-color: #404041;
    border: none;
    color: #fff;
    border-radius: 1rem;
    padding: 0.1rem 0.4rem;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-state-highlight,
.ai-date-filter-dialog .ui-widget-content .ui-state-highlight,
.ai-date-filter-dialog .ui-widget-header .ui-state-highlight {
    border: none;
    background: #51afea !important;
    font-weight: normal;
    color: #fff;
}

.ai-date-filter-dialog .ui-state-default,
.ai-date-filter-dialog .ui-widget-content .ui-state-default,
.ai-date-filter-dialog .ui-widget-header .ui-state-default,
.ai-date-filter-dialog .ui-button,
.ai-date-filter-dialog html .ui-button.ui-state-disabled:hover,
.ai-date-filter-dialog html .ui-button.ui-state-disabled:active {
    border: none;
    background: #4c4c4c;
    font-weight: normal;
    color: #fff;
    font-family: 'Open Sans';
    padding: 10px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

    .ai-date-filter-dialog .ui-state-default:hover,
    .ai-date-filter-dialog .ui-widget-content .ui-state-default:hover {
        background: rgb(57, 57, 60);
    }

.ai-date-filter-dialog .ui-widget-header {
    border: 1px solid #dddddd;
    background: #404041;
    color: #fff;
    font-weight: bold;
    border: none;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-datepicker-prev,
.ai-date-filter-dialog .ui-datepicker-next {
    display: none;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-datepicker-title {
    display: flex !important;
    margin: 0px;
    font-family: 'Open Sans';
}

    .ai-date-filter-dialog .ui-datepicker-title select {
        margin: 1px 1rem;
        background: #4c4c4c;
        border: none;
        border-radius: 1rem;
        color: #fff;
        font-family: 'Open Sans';
    }

/* ============================================
   AI COPY & TTS BUTTON FEEDBACK
   Extracted from: site-desktop-1.5.css (lines 20674-20776)
   ============================================ */

.ai-right-panel-copy {
    position: relative;
    overflow: visible;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-right-panel-copy.tfl-doc-ai-copy-success {
    box-shadow: 0 0 0 1px rgba(81, 175, 234, 0.5),
                0 0 8px rgba(81, 175, 234, 0.25);
}

    .ai-right-panel-copy.tfl-doc-ai-copy-success svg {
        stroke: #51afea !important;
    }

.ai-right-panel-copy.tfl-doc-ai-copy-error {
    box-shadow: 0 0 0 1px rgba(244, 67, 54, 0.5),
                0 0 8px rgba(244, 67, 54, 0.25);
}

.tfl-doc-ai-copy-notification {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(45, 45, 45, 0.98);
    color: #51afea;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(81, 175, 234, 0.3);
    letter-spacing: 0.3px;
    z-index: 10000;
}

    .tfl-doc-ai-copy-notification.show {
        opacity: 1;
        transform: translateX(-50%) translateY(12px);
    }

    .tfl-doc-ai-copy-notification.error {
        color: #f44336;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(244, 67, 54, 0.3);
    }

    .tfl-doc-ai-copy-notification::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -4px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid rgba(45, 45, 45, 0.98);
    }

/* Azure TTS Loading State */
.ai-tts-toggle-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .ai-tts-toggle-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top-color: #52AFEA;
        border-radius: 50%;
        animation: ttsLoadingSpin 0.8s linear infinite;
    }

    .ai-tts-toggle-btn.loading svg {
        visibility: hidden;
    }

@keyframes ttsLoadingSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}




/* ============================================
   AI STYLES EXTRACTED FROM site-desktop-1.5.css
   Extraction date: 2026-01-29
   ============================================ */

#ai-promo-slider {
    margin: 0px;
}

/*Ai*/

#ai-wrapper {
    float: right;
    overflow-y: hidden;
    position: relative;
    margin: 0px 5px 0px 15px;
    height: 32px;/*recimo*/
    z-index: 1001;
}

#ai-icon {
    width: 32px;
    display: inline-flex;
    height: 32px;
    border-radius: 50%;
    -ms-border-radius: 50%;
    /*  background-color: #52AFEA;*/
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    overflow: hidden;
    /*   box-shadow: 0px 3px 6px 0px #00000044;*/
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

#ai-icon img {
        max-width: 32px;
        max-height: 32px;
    }

#ai-icon img:hover {
            animation: fullCircle 1s ease-in-out;
        }

@keyframes fullCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes aiReading {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

#ai-dialog {
    display: none;
    position: fixed;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 3px 6px 0px #00000044;
    -webkit-box-shadow: 0px 3px 6px 0px #00000044;
    -moz-box-shadow: 0px 3px 6px 0px #00000044;
    width: 250px;
    border-radius: 10px;
    -ms-border-radius: 10px;
    scroll-behavior: smooth;
    transition: right 0.5s ease;
    z-index: 5000;
}

#ai-dialog::-webkit-scrollbar {
        width: 10px;
        background: #fff;
        border-radius: 10px;
        -ms-border-radius: 10px;
    }

#ai-dialog::-webkit-scrollbar-thumb {
        border-radius: 10px;
        -ms-border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px #00000044;
        background: #c7c7c7;
    }

.turn-right {
    right: 0px;
    width: 45vw !important;
    max-height: 45vh !important;
    overflow-y: scroll;
    overflow-x: hidden;
}

#ai-minimize {
    position: absolute;
    top: 10px;
    right: 30px;
    cursor: pointer;
    background-color: #c7c7c7;
    border-radius: 50%;
    -ms-border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    font-size: 8px;
    font-weight: bold;
    color: #8b8e8f;
    transition: background-color 0.3s;
}

.ai-exit {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background-color: #c7c7c7;
    border-radius: 50%;
    -ms-border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    font-size: 8px;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s;
}

#ai-minimize:hover,
#ai-copy:hover,
#ai-exit:hover {
    -webkit-box-shadow: 0px 3px 6px 0px #00000044 inset;
    -moz-box-shadow: 0px 3px 6px 0px #00000044 inset;
    box-shadow: 0px 3px 6px 0px #00000044 inset;
}

#ai-dropdown ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

#ai-dropdown li {
    padding: 15px 20px 5px 20px;
    margin: 0px 0px;
    border-bottom: 1px solid #eee;
}

#ai-dropdown li:first-child {
        border-radius: 10px 10px 0 0;
        -ms-border-radius: 10px 10px 0 0;
    }

#ai-dropdown li:last-child {
        border-bottom: none;
        border-radius: 0 0 10px 10px;
        -ms-border-radius: 0 0 10px 10px;
        padding-bottom: 10px;
    }

.selected-data-action p {
    color: #52AFEA;
    font-weight: 600;
    cursor: default !important;
}

.selected-data-action label {
        cursor: default !important;
    }

.selected-data-action:hover {
    background-color: transparent !important; /* Prevents hover effect */
    cursor: default !important;
}

.no-bottom-border {
    border-bottom: none !important;
}

#ai-dropdown li p {
    margin: 0px;
    font-size: 14px;    
    line-height: 0.8;
    width: 100%;
    cursor: pointer;
}

#ai-dropdown li label {
        margin: 0px 0px;
        font-size: 10px;
        line-height: 0.8;
        cursor: pointer;
    }

.ai-message-text {
    color: #52AFEA;
}

#ai-dropdown li[data-action]:hover {
    background-color: #00000014;
    cursor: pointer;
}

.ai-loading-animation::after {
    content: '';
    display: inline-block;
    margin: 0px 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    -ms-border-radius: 50%;
    border: 2px solid #52AFEA;
    border-color: #52AFEA #52AFEA transparent;
    animation: ai-loading-animation 1.2s linear infinite;
}

@keyframes ai-loading-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#ai-legend > label:first-of-type {
        margin: 0px 0px;
        font-size: 10px;
        line-height: 0.8;
        cursor: pointer;
    }

#ai-legend div ul li label {
    display: block;   
    width: fit-content;
    border-radius: 5px;
    -ms-border-radius: 5px;
    padding: 0 5px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ai-legend div ul li label:hover {
                filter: drop-shadow(0px 1px 3px #00000030);
                -webkit-text-stroke: 0.5px #00000030;
            }

#ai-legend .label-odlocitev {
    font-weight: bold;
}

#ai-legend .label-jedro_vir {
    border: 1px solid black;
}

#ai-legend .label-navedba_zakona {
    border-bottom: 1px solid black;
    border-radius: 0px !important;
}

#ai-legend .label-utemeljitev {
    background-color: #ffddaa;
    color: #404041;
}

#ai-legend .label-v_pravni_podlagi {
    background-color: #ffc39d;
    color: #404041;
}

#ai-legend .legend_label {
    display: inline-flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    align-content: center;
    align-items: flex-start;
}

#ai-legend .moreinfo-icon {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    background-color: #363636;
    color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 10px;
    text-align: center;
    line-height: 15px;
    font-weight: bold;
}

#ai-legend .moreinfo-icon:hover {
        -webkit-box-shadow: 0px 3px 6px 0px #00000022 inset;
        -moz-box-shadow: 0px 3px 6px 0px #00000022 inset;
        box-shadow: 0px 3px 6px 0px #00000022 inset;
    }

#ai-legend .moreinfo-description {
    display: none;
    margin-bottom: 10px;
    padding: 2px 5px;
    font-size: 10px;
    background-color: #363636;
    border-radius: 5px;
}

.povzetek-options-container .povzetek-option {
    display: block;
    margin: 8px 0;
    padding: 8px;
    background-color: rgb(43, 43, 44);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.5s;
}

.povzetek-options-container .povzetek-option:hover {
        background: rgb(57, 57, 60);
        color: rgb(125, 125, 130);
    }

/*ai-review*/

#ai-review-containter {
    display: inline-flex;
    align-items: center;
    justify-content: space-evenly;
    border: none;
}

#ai-review-containter.ai-message-sodba {
        display: inline-flex;
        border: none;
        padding-top: 5px;
        text-align: start;
        vertical-align: middle;
        justify-content: flex-start;
    }

#ai-review-containter span {
        font-size: 10px;
        width: 120px;
        padding-left: 15px;
        height: 20px;
    }

#ai-review-containter.ai-message-sodba span {
        font-size: 14px;
        padding-left: 0px;
        width: 180px;
    }

#ai-review-containter button {
        width: 25px;
        height: 25px;
        background: none;
        border: none;
        fill: #707070;
        color: #707070;
    }

#ai-review-containter.ai-message-sodba button {
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        fill: #707070;
        color: #707070;
    }

#ai-review-containter button:hover {
            color: black;
            fill: black;
            cursor: pointer;
        }

/*ai-notsub*/

#ai-testlimit,
#ai-notsub {
    padding: 0px 10px 20px 10px
}

#ai-testlimit,
    #ai-notsub h4 {
        font-weight: normal;
        color: #83C3EE
    }

#ai-testlimit,
    #ai-notsub p {
        font-size: 12px;
    }

#ai-notuser {
    padding: 0px 10px 20px 10px
}

#ai-notuser div {
        width: 100%;
        display: inline-grid;
        grid-gap: 8px;
        justify-items: center;
        align-items: start;
        justify-content: center;
    }

#ai-notuser em {
        font-style: normal;
        font-weight: bold;
        font-size: inherit;
        color: #52AFEA;
    }

#ai-notuser h4 {
        font-weight: normal;
        color: #83C3EE
    }

#ai-notuser p {
        font-size: 12px;
    }

/*AiSodbe*/

ai.utemeljitev {
    padding: 2px;
    background-color: #ffddaa;
    border-radius: 5px;
    -ms-border-radius: 5px;
}

ai.navedba_zakona {
    padding: 2px;
    border-bottom: 1px solid black;
    cursor: pointer;
}

ai.navedba_zakona:hover {
        filter: drop-shadow(0px 0px 4px #0004);
    }

ai.jedro_vir {
    padding: 4px;
    display: block;
    border: 2px solid black;
    border-radius: 5px;
}

ai.v_pravni_podlagi {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0px 2px;
    background-color: #ffc39d;
    border-radius: 5px;
    -ms-border-radius: 5px;
}

ai.utemeljitev, ai.odlocitev, ai.navedba_zakona, ai.v_pravni_podlagi {
    transition: background-color 0.4s ease, padding 0.4s ease, border-radius 0.4s ease, border-bottom 0.4s ease, font-weight 0.4s ease;
    line-height: 1.8em !important;
}

@keyframes readingEffect {
    0% {
        box-shadow: 0 0 10px rgba(82, 175, 234, 0);
        background-color: transparent;
    }

    50% {
        box-shadow: 0 0 10px rgba(82, 175, 234, 0.7); 
        background-color: #e0f7ff; 
    }

    100% {
        box-shadow: 0 0 10px rgba(82, 175, 234, 0);
        background-color: transparent;
    }
}

.reading {
    animation-name: readingEffect;
    animation-duration: 1s; 
    animation-fill-mode: forwards;
    transition: box-shadow 1s; 
}

.ai-highlight {
    filter: drop-shadow(5px 10px 5px #00000044);
    -webkit-text-stroke: 0.5px #00000044;
}

/*TFL AI*/

.ai-modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.ai-modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

.ai-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.ai-close-button:hover,
    .ai-close-button:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

@media (max-width: 1600px) {
    #ai-dialog {
        right: 4px;
    }
}

@media (max-width: 1350px) {
    #ai-wrapper {
        right: 20px;
        transform: none;
        left: unset;
    }
}

/*Landing Ai*/

.ainevron-banner {
    background-image: url("../../Content/Images/Ai/ai-main-backround-1900x1100.png");
    height: 270px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.ainevron-banner-head {
    background-image: url("../../Content/Images/Ai/ai-header-backround-1900.png");
    height: 100px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.ainevron-banner-btn {
    background-image: url("../../Content/Images/Ai/ai-chat-backround-small.png");
    height: 100px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.aitfl-banner {
    background-image: url(../../Content/Images/Ai/ai-landing-desk-new.png);
    height: 270px;
    width: calc(100vw - 35rem);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 1rem;
}

.aitfl-banner h1{
    font-size: 65px;
    color: #fff;
    width: 100%;
    text-align: center;
}

.ai-landing-container {
    /*background: linear-gradient(to bottom, #115e8e 0%, #000000 100%);*/
    width: 100%;
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.ai-landing-container .description {
        font-size: 1.2em;
        font-weight: 300;
        margin-top: 0;
        margin-bottom: 1rem;
        color: #fff;
        max-width: 50vmax;
    }

.ai-landing-container .insight-box {
        text-align: center;
        display: grid;
        justify-items: center;
        margin-top: 1vmax;
        width: 100%;
        margin-left: 0;
        margin: 4vmax 0px 10px 0px;
        justify-content: center;
    }

.ai-landing-container .insight-box .header-title {
            font-size: 2.0rem;
            font-weight: 600;
            color: #fff;
            margin: 5px 0px 10px 0px;
        }

.ainevron-banner .ai-sodba-icon {
            width: 100px;
            height: 100px;
        }

.ai-landing-container h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0px;
}

.ai-landing-container em {
           /* font-style: normal;*/
            font-weight: bold;
            font-size: inherit;
            color: #1485cc;
        }

.ai-landing-container .feature-image {
    max-width: 55vmax;
    --ms-flex-item-align: center;
    --ms-grid-row-align: center;
    align-self: center;
    margin: 1.2vmax 0;
    display: flex;
    margin-bottom: 4vmax;
    justify-content: center;
    align-items: stretch;
    border-radius: 10px;
}

.ai-landing-container .herocontent {
        --webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 0;
        --webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
         height: 100%; 
         display: -webkit-box; 
        display: -ms-flexbox;
         display: flex; 
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

.ai-content-section {
    height: 100vh;
    min-height: calc(100vw / 1.7777777778);
    padding: 8vmax 10vmax;
    padding-bottom: 18vmax;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    padding: 40px 0; /* Adjust spacing as needed */
}

.ai-content-section:nth-child(2n) {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse;
    }

.ai-content-section .ai-media {
            margin-right: 5rem;
        }

.ai-content-section:nth-child(2n) .ai-media {
        margin-right: 0rem;
        margin-left: 5rem;
    }

.ai-content-section:nth-child(2n) .ai-content {
            text-align: right;
            
        }

.ai-landing-section-soon {
    margin: 0 12rem;
    background-color: #516D7E;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: reverse !important;
    -ms-flex-direction: row-reverse !important;
    flex-direction: row !important;
    border-radius: 1rem;
    padding-bottom: 2rem !important;
}

.ai-landing-section-soon-2 {
    margin: 2rem 10rem;
    background-image: url("../../Content/Images/Ai/ai-new-banner-long.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: reverse !important;
    -ms-flex-direction: row-reverse !important;
    flex-direction: row !important;
    border-radius: 1rem;
    padding-bottom: 2rem !important;
}

.ai-landing-section-wrapper {
    position: relative;
    width: calc(100vw - 25rem);
    margin: 1rem auto 0rem auto;
/*    background-color: #404040;
    border-radius: 1rem;*/
    padding-top: 50px; /* Adjust to the height of your header if any */
}

.ai-landing-section-wrapper::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px; /* Width of the timeline */
        background-color: #fff; /* Color of the timeline */
        z-index: 5; /* Make sure it's behind the dots and content */
    }

.ai-content-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #52AFEA; /* Dot background color */
    z-index: 10; /* Make sure it's above the timeline */
}

.ai-landing-sections {
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    margin-top: 5rem;
}

.ai-content-undersection {
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    position: relative;
    width: calc(100vw - 25rem);
    border-top: 1px solid white;
    background-color: #404040;
    border-radius: 0 0 1rem 1rem;
    padding: 50px 0;
}

.ai-panel-povprasevanje {
    padding: 0.5rem 1.5rem;
    position: absolute;
    bottom: 1rem;
}

.ai-landing-container .ai-media img,
.ai-landing-container .ai-media video,
.ai-landing-container .ai-media iframe {
    max-width: 40rem;
    width: 30vw;
    height: 100%;
    border-radius: 10px;
}

.ai-content-section .ai-content {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 35%;
        flex: 0 0 35%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;        
    }

.ai-content .heading {
    font-size: 1.6rem;
    font-weight: bolder;
    color: #fff;
    margin-top: 0px;
}

.ai-teaser-section{    
    background-color: #fff;
    display: grid;
    justify-items: center;
    align-items: center;
    color: #000;
}

.ai-teaser-section p,
    .ai-teaser-section .description,
    .ai-teaser-section h1 {
        color: #000;
    }

.ai-naslov-mid {
    color: #52AFEA;
    font-size: 2rem;
    font-weight: bolder;
    text-align: center;
}

.ai-offer-section {
    margin: 50px 0px 35px 0px;
}

.ai-panel-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    flex-wrap: wrap;
    flex-direction: row;
}

.ai-panel-container .ai-panel {
        flex: 1;
        color: white;
        /*height: 15vmax;*/
        width: 20vmax;
        padding: 0px 40px 40px;
        background: #000000c2;
        display: flex;
        flex-direction: column;
  
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        font-size: 0.65rem;
    }

.ai-panel-container .ai-panel:nth-child(1n) {
            border-left: 2px solid #fff;
            border-top: 2px solid #fff;
            border-bottom: 2px solid #fff;
            border-radius: 10px 0px 0px 10px;
        }

.ai-panel-container .ai-panel:nth-child(2n) {
            border-right: 2px solid #fff;
            border-radius: 0px 10px 10px 0px
        }

.ai-panel p {
    margin-top: 0px;
    margin-bottom: 1em;
    font-size: 1.2em;
}

/*Dashboard Ai*/

.ai-dashboard {
    max-height: 480px !important;
    margin: 0 60px 20px !important;
}

.ai-dashboard-naslov {
    color: white;
    border-bottom: 1px solid white!important;
}

.ai-nevronbg {   
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.ai-kontakt-form {
    display: grid;
    margin: 10px 100px 10px;  
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 10px 20px;
    justify-content: center;
    min-height: 120px;
    color: #fff;
}

.ai-kontakt-form div {
        display: grid;
        justify-content: center;
        text-align: center;
        align-items: stretch;
    }

.ai-kontakt-form .btn-action-blue {
        margin: 0px 0 10px 0;
    }

.ai-kontakt-form .ai-panel {
        max-height: 300px;
        padding: 0 20px;
    }

#ai-kontakt-submited {
    }

#ai-kontakt-narocnik {
    
}

#ai-kontakt-default{

}

.ialert-backdrop.ai-dark-alert .ialert-modal,
.ai-dark-alert.ialert-modal {
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
}

.ialert-backdrop.ai-dark-alert .ialert-modal-header,
.ai-dark-alert .ialert-modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ialert-backdrop.ai-dark-alert .ialert-modal-title,
.ai-dark-alert .ialert-modal-title {
    color: #ffffff;
}

.ialert-backdrop.ai-dark-alert .ialert-modal-body,
.ai-dark-alert .ialert-modal-body,
.ialert-backdrop.ai-dark-alert .ialert-modal-body p,
.ai-dark-alert .ialert-modal-body p {
    color: #a8a8a8;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-ok,
.ai-dark-alert .ialert-btn-ok {
    background-color: #3d8ac7;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-ok:hover,
.ai-dark-alert .ialert-btn-ok:hover {
    background-color: #51afea;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-cancel,
.ai-dark-alert .ialert-btn-cancel {
    background-color: #333333;
    color: #ffffff;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-cancel:hover,
.ai-dark-alert .ialert-btn-cancel:hover {
    background-color: #404040;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-delete,
.ai-dark-alert .ialert-btn-delete {
    background-color: #dc2626;
}

.ialert-backdrop.ai-dark-alert .ialert-btn-delete:hover,
.ai-dark-alert .ialert-btn-delete:hover {
    background-color: #ef4444;
}

.ai-dashboard-text {
    overflow-y: hidden;
    margin-bottom: 0.25rem;   
    border-bottom: none;
    text-align: center;
    color: #fff;
}

.ai-dashboard-text h4 {
        color: white;
        margin: 2px 0 0 0 !important;
        border: none !important;
        padding-bottom: 0 !important;
    }

.ai-dashboard-text p {
        margin-top: 2px;
        font-size: 12px;
    }

.ai-primeri-wrapper {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        border: none;
    }

.ai-primeri-wrapper li a {
            color: #fff;
            font-weight: bold;
            -webkit-text-decoration: none;
            text-decoration: none;
            padding: 0.5rem 1rem;
        }

.ai-primeri-wrapper li a:hover {
                text-decoration: none;
                box-shadow: 0px 2px 4px 0px #00000022 inset;
            }

.ai-sodba-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    -webkit-box-shadow: 0px 3px 6px 0px #00000044;
    -moz-box-shadow: 0px 3px 6px 0px #00000044;
    box-shadow: 0px 3px 6px 0px #00000044;
    transition: ease transform 0.6s;
    transform-style: preserve-3d;
}

.ai-sodba-icon:hover {
        transform: rotateY(180deg);
    }

/*Ai content*/

#ai-content-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background-color: #c7c7c7;
    border-radius: 50%;
    -ms-border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    font-size: 8px;
    font-weight: bold;
    color: #fff;
    transition: ease background-color 0.3s;
}

#ai-content-close:hover {
        -webkit-box-shadow: 0px 3px 6px 0px #00000044 inset;
        -moz-box-shadow: 0px 3px 6px 0px #00000044 inset;
        box-shadow: 0px 3px 6px 0px #00000044 inset;
        -webkit-text-decoration: inherit;
        text-decoration: inherit;
    }

#ai-content-container .node:hover:not(.version-type-2):not(.version-type-4):not(.version-type-5) {
    background-color: #f0f0f0;
}

#ai-content-container {
    background-color: #2a2a2a;
/*    border: 1px solid #d4d4d4;*/
    padding: 10px;
    z-index: 995;
    display: none;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    width: 620px;
}

#ai-content-container .node{
    border: none;
}

#ai-content-controls {
    height: 25px;
}

#ai-copy {
    position: absolute;
    top: 2px;
    right: 30px;
    cursor: pointer;
}

/*Ai chat*/

.open-aisearch {
    display: flex;
    position: fixed;
    width: 135px;
    height: 48px;
    text-align: center;
    margin-top: -2px;
    border-radius: 0 4px 4px 0px;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.open-aisearch a {
        color: white;
        font-size: 16px;
    }

.open-aisearch a:hover {
        text-decoration: none;
    }

.open-aisearch p {
        color: white;
        font-size: 16px;
        margin: 12px 25px;
        display: flex;
        gap: 5px;
        align-items: center;
        justify-content: space-evenly;
    }

.open-aisearch img{
        width: 20px;
        height: 20px;
    }

.ai-chat-message-ai-wrap .next-action {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
    padding: 0px;
    margin: 2rem 0 0 0;
}

.ai-chat-message-ai-wrap .next-action  a {
        cursor: pointer;
        width: fit-content;
        border-radius: 5px;
        -ms-border-radius: 5px;
        background-color: #52AFEA;
        color: #fff;
        padding: 2px 8px;
        font-size: 0.92rem;
        word-break: keep-all;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.3s;
    }

.ai-chat-message-ai-wrap .next-action a:hover {
                filter: drop-shadow(0px 1px 3px #00000030);
                -webkit-text-stroke: 0.5px #00000030;
                text-decoration: none;
            }

.ai-loader {
    height: 6px;
    width: 100%;
    border-radius: 5px;
    -ms-border-radius: 5px;
    margin: 10px;
    background: linear-gradient(to right, #ddd 25%, #52AFEA 50%, #ddd 75%);
    background-size: 200% 100%;
    animation: ai-loading 2s linear infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

#feedback-prompt {
        display: none;
    }

.feedback-btn {
    padding: 1rem 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.feedback-btn .icon-md {
        fill: currentColor;
    }

.thumbs-up:hover, .thumbs-down:hover {
    color: #0056b3; 
}

/*iskanje*/

#ai-application {
    min-height: 100%;
}

.ai-landing-section-flex {
    position: relative;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    padding: 3rem;
    gap: 4rem;
}

.ai-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #fff;
}

.ai-search-title {
    text-align: center;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    pointer-events: none;
}

.ai-title-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.ai-search-title h1 {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}

.ai-search-title img {
    width: 35px;
    height: 35px;
    margin: 0 10px;
}

.ai-welcome-message {
    font-size: 18px;
    color: #9c9c9c;
    height: 24px; /* Fixed height to prevent layout shift */
    margin-top: 5px;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    animation: premiumBlink 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    color: #51afea;
    font-weight: bold;
}

@keyframes premiumBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.ai-search-parent-wrapper {
    margin-top: 180px; /* Add space below the title */
}

#ai-chat-container .ai-search-title {
    top: 10px;
    transform: scale(0.7);
    transform-origin: top center;
    transition: all 0.3s ease;
}

#ai-chat-container .ai-welcome-message {
    display: none; /* Hide typing animation in chat view */
}

body.panel-active {
    overflow-x: hidden;
}

#ai-chat-container {
    display: none;
}

#ai-chat-container.visible {
        display: block;
    }

.ai-search-parent-wrapper {
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
}

.ai-search-child-wrapper {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    flex-direction: column;
}

.ai-search-parent-container {
    width: 42rem;
    max-width: 42rem;
    position: relative;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
}

.ai-search-function-wrapper {
    display: flex;
    width: 100%;
    flex-direction: row;
    -webkit-box-pack: center;
    justify-content: center;
    height: 3.5rem;
    transition: padding-right 0.6s cubic-bezier(0.7, 0.3, 0.1, 1) 0s;
    scroll-margin-bottom: 0.75rem;
}

.ai-search-function-container {
    display: flex;
    width: 100%;
    max-width: 47rem;
}

.ai-search-main-wrapper {
    position: relative;
    flex: 1 1 0%;
}

.ai-search-input-wrapper {
    position: absolute;
    bottom: 65px;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 35px 0px;
    background-color: #2a2a2a;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-search-input-wrapper:focus-within {
    border-color: rgba(81, 175, 234, 0.4);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 35px 0px,
                0 0 0 3px rgba(81, 175, 234, 0.08),
                0 0 20px rgba(81, 175, 234, 0.1);
}

.ai-search-input-container {
    display: flex;
    position: relative;
    -webkit-box-align: center;
    align-items: flex-start;
    -webkit-box-pack: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.625rem;
    padding-bottom: 0.1rem;
}

#chatMessages {
    overflow-y: auto!important; 
}

#chatMessages::-webkit-scrollbar {
    height: 1rem;
    width: 0.5rem;
}

#chatMessages::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

#chatMessages::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-search-input-textarea {
    margin: 0px;
    border: none;
    color: rgb(248, 248, 248);
    resize: none;
    flex: 1 1 0%;
    background-color: transparent;
    overflow-y: hidden; /* Changed from scroll to hidden */
    line-height: 1.5rem;
    font-family: Open Sans;
    height: 36px;
    min-height: 28px; /* Minimum height (1 line) */
    max-height: 96px; /* Maximum height (4 lines at 1.5rem line height) */
    scrollbar-width: none;
    box-shadow: none;
    outline: none;
    transition: 0.1s ease-out; /* Smooth height transition */
}

textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-track {
    background: transparent;
}

textarea::-webkit-scrollbar-thumb {
    background: #4c4c4c;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.ai-search-input-textarea:focus {
    box-shadow: none;
    outline: none;
}

.ai-search-input-textarea::placeholder {
    color: #8b8e8f
}

.ai-search-input-textarea:-ms-input-placeholder {
    color: #8b8e8f;
}

.ai-search-input-textarea::-moz-placeholder {
    color: #8b8e8f;
    opacity: 1;
}

.ai-search-input-textarea:focus {
        box-shadow: none;
        outline: none;
    }

.ai-search-input-textarea::placeholder {
        color: #8b8e8f
    }

.ai-search-input-textarea:-ms-input-placeholder {
        color: #8b8e8f;
    }

.ai-search-input-textarea::-moz-placeholder {
        color: #8b8e8f;
        opacity: 1;
    }

#ai-application textarea {
    overflow: auto;
    box-shadow: none;
    outline: none;
}

#ai-waiting-messages-container {
    display: inline-block;
/*    height: 1rem;*/
/*    padding: 0 1rem;*/
    line-height: 1rem;
    vertical-align: text-top;
}

.ai-search-options-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0.75rem 0.75rem;
}

.ai-search-options-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.75rem;
    scrollbar-width: none;
    flex-grow: 1;
}

.ai-advanced-research-container {
    display: flex;
    justify-content: flex-end; 
    margin-left: auto; 
}

.ai-search-option-selected {
    border: none;
    border-radius: 3rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    user-select: none;
    color: #fff;
    background-color: #52AFEA;
    transition: 0.3s;
}

.ai-search-option-default {
    border: none;
    border-radius: 3rem;
    padding: 0.75rem;
    cursor: default; /*change to pointer adfter*/
    font-size: 0.875rem;
    font-weight: 600;
    user-select: none;
    background-color: rgb(43, 43, 44);
    color: rgb(125, 125, 130);
    transition: 0.3s;
}

.ai-search-option-default:hover {
        background: rgb(57, 57, 60);
        color: rgb(125, 125, 130);
    }

.ai-search-input-textarea-btn {
    display: flex;
    cursor: pointer;
    width: 16rem;
    height: 2.5rem;
    padding: 0.625rem;
    -webkit-box-pack: center;
    background-color: #3d8ac7;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    user-select: none;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-search-input-textarea-btn:not(:disabled):hover {
        cursor: pointer;
        background-color: #51afea;
        transform: scale(1.02);
    }

.ai-search-input-textarea-btn-fix {
    height: 1.5rem;
    width: 1.5rem;
    max-height: 1.5rem;
    max-width: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: 0.5s;
    color: #fff;
}

.ai-search-input-textarea-btn-fix svg g{
        -webkit-box-shadow: 0px 3px 6px 0px #00000044;
        -moz-box-shadow: 0px 3px 6px 0px #00000044;
        box-shadow: 0px 3px 6px 0px #00000044;
    }

.ai-search-disclamer-wrapper {
    transition: padding-right 0.6s cubic-bezier(0.7, 0.3, 0.1, 1) 0s;
    position: fixed;
    bottom: 10px;
    text-align: center;
    left: 0;
    right: 0;
    pointer-events: none;
    margin: 0 auto;
}

.ai-search-disclamer-container {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0 0.63rem;
    font-size: 0.875rem;
    color: rgb(125, 125, 130);
    text-align: center;
    white-space: normal;
}

.ai-action-buttons-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.ai-action-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 710px;
}

.ai-action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: none;
    background-color: #546e7a; /* Siva z modrim odtenkom za akcijske gumbe */
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ai-action-button:hover {
        background-color: #455a64; /* Temnejša ob prehodu miške */
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.ai-action-button.active {
        background-color: #37474f; /* Še temnejša ko je aktiven */
        box-shadow: 0 0 1px rgba(84, 110, 122, 0.5);
    }

.ai-action-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {

    .ai-advanced-research-container {
        margin-top: 0.5rem;
        margin-left: 0;
        width: 100%;
    }

    .ai-advanced-research-btn {
        width: 100%;
        justify-content: center;
    }
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

.ai-chat-section-flex {
    display: flex;
    padding: 0px;
}

.ai-chat-history-wrapper {
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-direction: row;
    z-index: 252;
    margin-bottom: 6rem;
}

.ai-chat-history-container {
    display: flex;
    flex-direction: column;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex: 1 1 0%;
    position: sticky;
    margin: 0px;
    padding: 0px;
    align-self: flex-start;
    width: fit-content;
}

.ai-chat-history-container-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0px 0.5rem;
}

.ai-chat-history-container-ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0px;
    padding: 0px
}

.ai-chat-history-container-li {
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    gap: 0.5rem;
    overflow: visible;
    padding: 0px 0.5rem;
    height: 38px;
    cursor: pointer !important;
    border-bottom: 1px solid transparent !important;
}

.ai-sidebar-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-chat-history-closebtn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    white-space: nowrap;
    z-index: 101;
    transition: opacity 0.8s ease-in;
    opacity: 1;
    cursor: pointer;
    margin: 12px 10px;
}

.ai-chat-history-closebtn:hover,
    .ai-sidebar-btn:hover {
        background-color: rgba(255, 255, 255, 0.07);
    }

.ai-chat-side-container-label-fix {
    display: none;
    top: 14px;
    left: calc(100% + 15px);
    transform: translateY(-50%);
}

.ai-chat-history-container-label {
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    background: rgb(64, 64, 64);
    color: rgb(255, 255, 255);
    padding: 0.75rem;
    border-radius: 0.75rem;
    z-index: 2000;
}

.ai-chat-function-cicle-btn {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-session-history-list-wrapper {
    position: absolute;
    max-width: 300px;
    height: 100%;
    width: 300px;
    height: calc(100% - 70px);
    /*   left: 8px;*/
    transition: left 0.5s ease;
    z-index: 9999;
}

.ai-session-history-list-box {
    font-size: 1rem;
    font-weight: 500;
    overflow-wrap: break-word;
    position: relative;
    gap: 1rem;
    border-radius: 0 0.5625rem 0.5625rem 0;
/*    background-color: #404040;*/
    padding: 1.25rem 1rem;
    color: rgb(255, 255, 255);
    line-height: 1.5rem;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ai-session-history-list-box a,
    ai-chat-history-container-li  a{
        color: inherit;
        text-decoration: none;
        font-weight: normal;
        background-color: transparent;
        cursor: auto;
    }

.ai-session-history-list-box a:hover,
        ai-chat-history-container-li a:hover{
            text-shadow: none;
        }

.ai-session-sidelist-list-box-item {
        transition: background-color .1s ease-in-out,color .1s ease-in-out;
        padding: 1px 8px;
        margin: 4px 0px;
        display: flex;
        align-items: center;
        border-radius: 1rem;
        justify-content: space-between;
    }

.ai-session-sidelist-list-box-item .icon-wrapper {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.ai-session-sidelist-list-box-item p {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 0.75rem;
    width: 100%;
    gap: 6px;
}

.ai-session-sidelist-list-box-item .session-title-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.ai-session-sidelist-list-box-item:hover {
        transition: background-color .1s ease-in-out,color .1s ease-in-out;
        background-color: #404040 !important;
        color: #fff !important;
    }

.ai-session-sidelist-list-box-item-selected {
    transition: background-color .1s ease-in-out,color .1s ease-in-out;
    background-color: #404040 !important;
    color: #fff !important;
}

.ai-session-history-input {
    padding: 5px;
    margin: 10px;
    background: #404040;
    color: #fff;
    border-radius: 1rem;
    width: 100%;
}

.ai-session-history-input:focus-visible {
        border: 1px solid #404040 ;
    }

.ai-sideconainer-ulwrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0px;
    overflow-y: hidden;

}

.ai-sideconainer-ulwrapper h3 {
        margin: 0.5rem 0;
        text-align: left;
        color: #52AFEA;
        height: 40px;
        display: flex;
        align-items: center;
    }

.ai-side-container-ul-ullist {
    color: white;
    list-style: none;
    width: 95%;
    margin-top: -1rem;
    overflow-y: scroll;
    padding: 0.5rem 0.5rem 1.5rem 0rem;
    height: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
}

.ai-side-container-ul-ullist::-webkit-scrollbar {
        width: 0.5rem; /* Width of the scrollbar */
        height: 1rem; /* Height of the scrollbar for horizontal scroll, if applicable */
    }

.ai-side-container-ul-ullist::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-side-container-ul-ullist::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #404040 !important;
        border-color: rgba(255, 255, 255, 0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-session-history-topbtn {
    display: flex;
    align-items: center;
    width: calc(100% - 4rem);
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #52AFEA;
    border-radius: 1rem;
}

.ai-session-history-topbtn h3 {
        padding-left: 0.5rem;
        justify-content: center;
        color: #52AFEA !important;
    }

.ai-certainty-badge {
    float: right;
    background-color: #3776ab;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: 8px;
    margin-top: 2px;
}

.ai-chat-main {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

.ai-chat-parent-wrapper {
    display: flex;
    flex-direction: row;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    will-change: width;
    transition: width 0.6s cubic-bezier(0.7, 0.3, 0.1, 1) 0s;
}

.ai-chat-child-wrapper {
    flex: 1 1 0%;
    max-width: unset;
    width: 100%;
    margin-right: unset;
}

.ai-chat-parent-container {
    margin: 0px auto;
    max-width: 44vw; /*836px;*/
}

/* FIX 2026-02-02: Mobile override for chat structure */
@media only screen and (max-width: 767px) {
    .ai-chat-main {
        width: 100%;
        overflow-x: hidden;
    }
    .ai-chat-parent-wrapper {
        width: 100%;
        padding: 0;
    }
    .ai-chat-child-wrapper {
        width: 100%;
        max-width: 100vw;
    }
    .ai-chat-parent-container {
        max-width: 98vw;
        margin: 0 auto;
        padding: 0 0.5rem;
    }
    .ai-chat-messages-box {
        min-width: unset !important;
        width: 100% !important;
        padding: 0.75rem 0.5rem 100px 0.5rem !important;
    }
    /* Fix heading overflow inside AI messages */
    .ai-chat-message-ai-wrap,
    .ai-chat-message-ai-wrap * {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .ai-chat-message-ai-wrap h1,
    .ai-chat-message-ai-wrap h2,
    .ai-chat-message-ai-wrap h3,
    .ai-chat-message-ai-wrap h4,
    .ai-chat-message-ai-wrap p {
        max-width: 100% !important;
        width: auto !important;
    }
}

.ai-chat-important-wrapper {
    position: relative;
}

.ai-chat-important-box-wrapper-add {
    border-radius: 0px;
    padding: 0px;
    border: none;
    z-index: 100;
    max-height: calc(-5.75rem + 100vh);
    width: 100%;
    box-shadow: none;
    cursor: auto;
}

.ai-chat-important-box-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
    margin: 2px 0px;
}

.ai-chat-messages-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100vh;
    overflow: hidden scroll;
    overscroll-behavior: none;
    scroll-behavior: smooth;
    align-self: center;
    padding: 0.75rem 0px 0px;
    min-width: calc(100% - 1.5rem);
    margin-bottom: 14vh;
    padding-bottom: 4vh;
    outline: none;
}

.ai-chat-bottom-wrapper {
    width: 100%;
    background-color: #1a1a1a;
    z-index: 998;
    position: fixed;
    bottom: 0px;
    left: 0px;
    padding-bottom: 10px;
}

.ai-search-child-container {
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    gap: 0.35rem;
}

.ai-chat-bottom-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    -webkit-box-pack: center;
    justify-content: center;
    height: 3.5rem;
    transition: padding-right 0.6s cubic-bezier(0.7, 0.3, 0.1, 1) 0s;
    scroll-margin-bottom: 0.75rem;
   /* margin-left: 2rem;*/
}

.ai-search-function-container {
    display: flex;
    width: 100%;
    max-width: 44vw;
}

/* FIX 2026-02-02: Mobile override - must come after 44vw to win specificity */
@media only screen and (max-width: 767px) {
    .ai-search-function-container {
        max-width: 95vw;
    }
    .ai-advanced-selected-sources {
        max-width: 85vw;
        margin: 0 auto;
    }
}

.ai-search-main-wrapper {
    position: relative;
    flex: 1 1 0%;
}

.ai-chat-message-user-wrap {
    font-size: 15px;
    max-width: 95%;
    font-weight: 500;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    position: relative;
    display: flex;
    gap: 1rem;
    width: fit-content;
    margin: 0.75rem 2rem 1rem 0rem;
    border-radius: 0.5625rem;
    background-color: #52AFEA;
    padding: .625rem;
    color: rgb(255, 255, 255);
    line-height: 1.5rem;
    justify-content: end;
}

.ai-chat-message-img-wrap {
    margin-left: calc(-3.25rem);
    padding-right: 0.5rem;
    align-self: flex-start;
    margin-top: calc(-1rem);
}

.ai-chat-message-img {
    position: relative;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border-radius: 50%;
    color: rgb(60, 60, 62);
    font-size: 1rem;
    font-weight: 400;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
}

.ai-chat-message-img img {
    border-radius: 100%;
    width: 2rem;
    height: 2rem;
}

.ai-chat-message-ai-wrap {
    font-size: 15px;
    max-width: calc(100% - 6rem);
    min-width: 350px;
    font-weight: 500;
    /*    white-space: pre-wrap;*/
    overflow-wrap: break-word;
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    /*    margin: 6rem 0px 0px 2.5rem;*/
    /*    border-radius: 0.5625rem;*/
    /*    background-color: #404040;*/
    padding: .625rem;
    color: rgb(255, 255, 255);
    line-height: 1.5rem;
    /* SMOOTH STREAMING - message entrance animation */
    animation: messageSlideIn 0.25s ease-out;
}

/* SMOOTH STREAMING ANIMATION - 2026-02-05 */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* During streaming: disable transitions to prevent jank */
.ai-chat-message-ai-wrap.is-streaming > div > div {
    transition: none !important;
}

/* After streaming complete: smooth content settle */
.ai-chat-message-ai-wrap:not(.is-streaming) > div > div {
    transition: opacity 0.15s ease-out;
}

/* FIX 2026-02-02: Mobile override for ai-chat-message-ai-wrap */
@media only screen and (max-width: 767px) {
    .ai-chat-message-ai-wrap {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
        max-width: calc(100% - 2rem);
        min-width: unset;
        margin: 0px;
        margin-left: 0.5rem;
    }
    .ai-chat-message-user-wrap {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
        margin: 0.75rem 0.5rem 1rem 0.5rem;
        max-width: 72vw;
    }
    .ai-chat-message-img-wrap {
        display: none;
    }
    .ai-chat-history-container-child {
        margin: 0px;
        padding-left: 0.5rem;
    }
}

.ai-chat-message-ai-wrap h1, .ai-chat-message-ai-wrap h2, .ai-chat-message-ai-wrap h3, .ai-chat-message-ai-wrap h4, .ai-chat-message-ai-wrap h5, .ai-chat-message-ai-wrap h6 {
        color: rgb(248, 248, 248);
        font-weight: 600;
        line-height: 1.35;
        display: -webkit-box;
      
        min-height: 1.35em;
    }

ai-chat-message-ai-wrap h1,
.ai-chat-message-ai-wrap h2 {
    font-size: 1.17em;
}

.ai-chat-message-ai-wrap ul {
        list-style: none;
        padding-left: 0px;
        margin: 0.75rem;
        white-space: normal;
        margin-bottom: 0;
        text-align: left;
        max-width: calc(52rem - 6rem);
    }

.ai-chat-message-ai-wrap p {
        white-space: normal;
        margin-bottom: 0;
        text-align: left;
        max-width: calc(52rem - 8rem);
    }

.ai-chat-message-ai-wrap ol {
        margin: 0.75rem;
        white-space: normal;
        margin-bottom: 0;
        text-align: left;
        max-width: calc(52rem - 6rem);
    }

.ai-chat-message-ai-wrap hr,
    .final-answer-header {
        max-width: calc(52rem - 10rem);
    }

.ai-raziskovanje-output {
    position: relative;
}

.ai-raziskovanje-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #165A87;
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
    width: fit-content;
}

.ai-raziskovanje-badge svg {
        color: white;
    }

.ai-raziskovanje-progress {
    margin-bottom: 20px;
}

.ai-raziskovanje-progress-container {
    height: 6px;
    background-color: #2a2a2a;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.ai-raziskovanje-progress-bar {
    height: 100%;
    background-color: #165A87;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.ai-raziskovanje-status {
    font-size: 0.8rem;
    color: #aaa;
}

.ai-raziskovanje-board {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #165A87;
}

.ai-raziskovanje-board-header h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.ai-raziskovanje-plan-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-raziskovanje-main-concept h4,
.ai-raziskovanje-related-concepts h4,
.ai-raziskovanje-legal-basis h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #ddd;
}

.ai-raziskovanje-concept-tag {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ai-raziskovanje-main-concept-tag {
    background-color: #165A87;
    font-weight: bold;
}

.ai-raziskovanje-related-concepts-container,
.ai-raziskovanje-legal-basis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ai-raziskovanje-legal-basis-tag {
    display: inline-block;
    background-color: #444;
    color: #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    border-left: 3px solid #51afea;
}

.ai-raziskovanje-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #165A87;
}

.ai-raziskovanje-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #ffffff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.ai-raziskovanje-section {
    margin-bottom: 20px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
}

.ai-raziskovanje-section h3 {
        background-color: #444;
        padding: 8px 12px;
        margin: 0;
        font-size: 1rem;
        color: #fff;
    }

.ai-raziskovanje-content {
    padding: 12px 16px;
}

.ai-raziskovanje-zakon {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #444;
}

.ai-raziskovanje-zakon:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.ai-raziskovanje-zakon-title {
    font-weight: bold;
    color: #51afea;
    margin-bottom: 4px;
}

.ai-raziskovanje-zakon-cleni {
    margin-left: 16px;
    font-style: italic;
    font-size: 0.9rem;
    color: #ccc;
}

.ai-raziskovanje-zakon-opis {
    margin-top: 4px;
}

.ai-raziskovanje-sodba {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #444;
}

.ai-raziskovanje-sodba:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.ai-raziskovanje-sodba-title {
    font-weight: bold;
    color: #51afea;
    margin-bottom: 6px;
}

.ai-raziskovanje-sodba-opis {
    font-size: 0.95rem;
}

.ai-raziskovanje-izracun {
    background-color: #3a3a3a;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
}

.ai-raziskovanje-izracun-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.ai-raziskovanje-izracun-formula {
    font-family: monospace;
    background-color: #2a2a2a;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ai-raziskovanje-izracun-primer {
    border-left: 2px solid #51afea;
    padding-left: 8px;
    margin-top: 8px;
}

.ai-raziskovanje-izjema {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.ai-raziskovanje-izjema::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #51afea;
    }

@media (max-width: 768px) {
    .ai-raziskovanje-container,
    .ai-raziskovanje-board {
        padding: 12px;
    }

    .ai-raziskovanje-section h3 {
        font-size: 0.9rem;
    }

    .ai-raziskovanje-concept-tag,
    .ai-raziskovanje-legal-basis-tag {
        font-size: 0.8rem;
    }
}

.ai-chat-message-ai-wrap table {
    width: auto;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: #1e1e1e;
}

.ai-chat-message-ai-wrap table td,
.ai-chat-message-ai-wrap table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.ai-chat-message-ai-wrap thead th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    background-color: #252525;
    color: #a8a8a8;
    border-bottom: 1px solid #3a3a3a;
}

.ai-chat-message-ai-wrap thead th:first-child {
        border-top-left-radius: 8px;
    }

.ai-chat-message-ai-wrap thead th:last-child {
        border-top-right-radius: 8px;
    }

.ai-chat-message-ai-wrap tbody tr {
    background-color: #2a2a2a;
}

.ai-chat-message-ai-wrap tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

.ai-chat-message-ai-wrap tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }

.ai-chat-message-ai-wrap tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
}

.ai-chat-message-ai-wrap tbody tr:last-child td {
    border-bottom: none;
}

/* ===========================================
   TABLE INTERACTIVE FEATURES
   Universal sortable headers, expandable rows
   =========================================== */

/* Sortable headers */
.ai-chat-message-ai-wrap thead th[data-sort] {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    position: relative;
}

.ai-chat-message-ai-wrap thead th[data-sort]:hover {
    background-color: #2a2a2a;
}

/* Sort indicators */
.ai-chat-message-ai-wrap thead th[data-sort].sort-asc::after {
    content: ' \25B2';
    font-size: 10px;
    color: #51afea;
}

.ai-chat-message-ai-wrap thead th[data-sort].sort-desc::after {
    content: ' \25BC';
    font-size: 10px;
    color: #51afea;
}

/* Row hover (excludes detail rows) */
.ai-chat-message-ai-wrap tbody tr:not(.ai-detail-row):not(.detail-row):hover {
    background-color: #333333;
}

/* Expandable rows */
.ai-chat-message-ai-wrap tbody tr.ai-expandable,
.ai-chat-message-ai-wrap tbody tr.expandable {
    cursor: pointer;
}

.ai-chat-message-ai-wrap tbody tr.ai-expandable:hover,
.ai-chat-message-ai-wrap tbody tr.expandable:hover {
    background-color: rgba(81, 175, 234, 0.08);
}

.ai-chat-message-ai-wrap tbody tr.expanded {
    background-color: rgba(81, 175, 234, 0.12);
}

/* Detail rows (hidden by default) */
.ai-chat-message-ai-wrap tbody tr.ai-detail-row,
.ai-chat-message-ai-wrap tbody tr.detail-row {
    display: none;
    background-color: #1a1a1a;
}

/* Links in tables */
.ai-chat-message-ai-wrap tbody td a {
    color: #51afea;
    text-decoration: none;
}

.ai-chat-message-ai-wrap tbody td a:hover {
    text-decoration: underline;
}

/* Risk colors (shared) */
.ai-chat-message-ai-wrap .risk-low { color: #4ade80; }
.ai-chat-message-ai-wrap .risk-medium { color: #fbbf24; }
.ai-chat-message-ai-wrap .risk-high { color: #f97316; }
.ai-chat-message-ai-wrap .risk-critical { color: #ef4444; font-weight: 600; }

/* Expand all button */
.ai-expand-all,
.bulk-analysis-expand-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 10px;
    background: transparent;
    border: 1px solid #444444;
    border-radius: 6px;
    color: #a8a8a8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-expand-all:hover,
.bulk-analysis-expand-all:hover {
    border-color: #51afea;
    color: #ffffff;
}

/* ===========================================
   END TABLE INTERACTIVE FEATURES
   =========================================== */

.ai-chat-message-ai-wrap pre {
    position: relative;
    margin: 0.75rem;
    background-color: #2b2b2b;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: hidden;
    text-wrap: auto;
    max-width: calc(52rem - 6rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ai-chat-message-ai-wrap pre code {
        font-family: "Consolas", "Monaco", "Courier New", monospace;
        font-size: 0.9rem;
        color: #f8f8f8;
        line-height: 1.5;
        display: block;
        width: 100%;
    }

.ai-chat-message-ai-wrap p code,
.ai-chat-message-ai-wrap li code,
.ai-chat-message-ai-wrap td code {
    background-color: #2b2b2b;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    color: #e9e9e9;
}

.ai-chat-message-ai-wrap .code-copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(80, 80, 80, 0.6);
    border: none;
    border-radius: 4px;
    color: #f8f8f8;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.ai-chat-message-ai-wrap pre:hover .code-copy-button {
    opacity: 1;
}

.ai-chat-message-ai-wrap .code-copy-button:hover {
    background-color: rgba(100, 100, 100, 0.8);
}

.ai-chat-message-ai-wrap .code-copy-button:active {
    background-color: rgba(120, 120, 120, 0.9);
}

.ai-chat-loading-animation {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 3px solid #404040;
    border-radius: 50%;
    border-top-color: #52AFEA;
    animation: aspin 1s ease-in-out infinite;
}

.ai-side-chat-loading {
    font-size: 1.2rem;
    display: grid;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    color: #52AFEA;
    justify-items: center;
    gap: 5px;
}

.ai-minified-doc-button {
        display: inline-block;
        color: #fff;
        margin-bottom: 5px;
        border-radius: 3rem;
        padding: 0.4rem;
        background-color: transparent;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: 0.3s;
    }

.ai-minified-doc-buttonn:hover {
        background-color: #333; /* Temnejša barva na hover */
    }

.ai-chat-document-list {
    white-space: normal;
    overflow-wrap: break-word;
    max-width: calc(52rem - 3rem);
    margin-top: 1rem;
}

.ai-chat-document{

}

.ai-chat-document h3 a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

.ai-chat-document ul{
        list-style: none;
    }

.ai-chat-document ul li {
            margin: 0.5rem;
        }

.ai-chat-document ul li label {
                margin: 0 1rem;
                cursor: pointer;
            }

.ai-chat-document ul li label svg:hover path {
                    color: #fff !important;
                    fill: #fff;
                }

.ai-chat-document-list .tabs {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(35, 35, 35);
}

.ai-chat-document-list .tabs button.tab-button {
        margin-bottom: -1px;
        background-color: transparent;
        border: 1px solid transparent;
        border-color: transparent;
        border-bottom: none;
        border-top-right-radius: 1rem;
        border-top-left-radius: 1rem;
        padding: 4px 16px;
        color: #9ca3af;
        font-size: 1.15rem;
        font-weight: bold;
    }

.ai-chat-document-list .tabs button.tab-button:hover {
            color: #fff;
            cursor: pointer;
        }

.ai-chat-document-list .tabs button.tab-button.active {
            border-color: rgb(35, 35, 35);
            background: #404041;
            color: #fff;
        }

.ai-chat-document-list .tab-content {
    display: none;
    padding: 20px;
    border: 1px solid rgb(35, 35, 35);
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-top: none;
}

.ai-chat-document-list .tab-content.active {
        display: block;
    }

.ai-chat-document a {
        color: #fff;
        text-decoration: none;
        transition: color 0.1s ease-in-out, transform 0.1s ease;
    }

.ai-chat-document a:focus, .ai-chat-document a:hover {
            color: #8b8e8f;
            text-decoration: underline;
            transform: translateY(-2px);
        }

.ai-chat-document p {
        padding: 0.25rem 0.5rem;
        background-color: #4c4c4c;
        border-radius: 5px;
        margin: 0.5rem;
    }

.ai-chat-message-timestamp {
    font-size: 0.75rem;
    max-width: calc(100% - 6rem);
    align-self: flex-end;
    font-weight: 500;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    margin: 0rem 0px 0px 2rem;
    border-radius: 0.5625rem;
    padding: 0.25rem 1rem;
    color: #4c4c4c;
    line-height: 1.5rem;
    font-style: italic;
}

.ai-chat-suggestions-wrapper {
    height: unset;
    width: 100%;
    z-index: 997;
    padding-bottom: 2rem;
}

.ai-chat-suggestions-container {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    -webkit-box-pack: start;
    justify-content: flex-start;
    display: flex;
    gap: 0.625rem;
    margin: 1rem;
}

.ai-chat-suggestion {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.2rem;
    max-width: calc(100% - 12rem);
    overflow-wrap: anywhere;
    border-radius: 0.75rem;
    padding: 0.5rem;
    font-weight: 400;
    transition: background-color 0.1s ease-out 0s;
    overflow-y: hidden;
    border: 1px solid #a3a3a8;
    font-size: 0.9rem;
    line-height: 1.5rem;
    text-wrap: balance;
    width: 100%;
    -webkit-box-pack: justify;
    justify-content: space-between;
    color: #fff;
}

.ai-chat-suggestion svg {
        max-height: 2rem;
        max-width: 2rem;
        overflow: hidden;
        padding: 0.5rem;
        transition: fill 0.1s;
    }

.ai-chat-suggestion svg:hover g
        .ai-chat-suggestion svg:hover line {
            fill: #fff
        }

.ai-search-suggestions-wrapper {
    width: 100%;
    bottom: 100%;
    display: none;
    z-index: 999;
}

.ai-search-autocomplete-wrapper {
    width: 100%;
    bottom: 100%;
    z-index: 999;
    display: none;
}

.ai-search-date-wrapper {
    width: 100%;
    bottom: 100%;
    display: none;
    z-index: 999;
}

.ai-search-tagged-wrapper {
    width: 100%;
    bottom: 100%;
    display: none;
    z-index: 999;
}

.ai-search-tagged-container {
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgb(35, 35, 35);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1.5rem 1rem -1.5rem;
    display: flex;
    flex-direction: column;
    background-color: #8b8e8f;
    border-radius: 1rem 1rem 0 0;
}

.ai-search-suggestions-container {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(35, 35, 35);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1.5rem 1rem -1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.ai-search-autocomplete-container {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(35, 35, 35);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1.5rem 1rem -1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 15rem;
    overflow-y: scroll;
}

.ai-search-autocomplete-container::-webkit-scrollbar {
    height: 1rem;
    width: 0.5rem;
}

.ai-search-autocomplete-container::-webkit-scrollbar-thumb {
    --tw-border-opacity: 1;
    background-color: #4c4c4c !important;
    border-color: rgba(255,255,255,0.2);
    border-radius: 9999px;
    border-width: 0px;
}

.ai-search-autocomplete-container::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 9999px;
}

.ai-search-autocomplete-container::-webkit-scrollbar-track:hover {
        background-color: transparent !important;
    }

.ai-search-date-container {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(35, 35, 35);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1.5rem 1rem -1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 999;
    max-height: 15rem;
}

.ai-search-suggestion {
    font-size: 1rem;
    color: rgb(248, 248, 248);
    gap: 0.625rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #404040;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 999;
}

.ai-chat-suggestions-title {
    color: white;
    margin-left: 1rem;
}

.ai-tagged-item {
    display: flex;
    justify-content: space-between;
    color: white;
}

.ai-tagged-item svg:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.ai-search-suggestion-icon {
    width: 18px;
    height: 18px;
}

.ai-search-suggestion-text {
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    line-height: 1.5rem;
}

.ai-chat-message-action-section {
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
}

.ai-chat-message-action-box {
    padding-top: 0.25rem;
    margin-left: auto;
    height: 100%;
    white-space: normal;
}

.ai-chat-message-action-pair {
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    align-items: flex-start;
    margin-left: auto;
    gap: 1rem;
}

.ai-chat-message-action-pair:not(:first-child) {
        margin-left: 0.25rem;
    }

.ai-chat-message-action-btn-wrapper {
    cursor: pointer;
    width: unset;
}

.ai-chat-message-action-btn {   
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    white-space: nowrap;
    cursor: pointer;
}

.ai-chat-message-action-btn:hover {
        background-color: rgba(255, 255, 255, 0.07);
    }

.ai-chat-message-action-btn-wrapper > div:first-of-type {
    padding: 8px;
    border-radius: 0.75rem;
    font-weight: 600;
    background: #4c4c4c;
    font-size: 12px;
    color: rgb(255, 255, 255);
    right: -10px;
    z-index: 2000;
}

.ai-chat-message-action-tool-tip,
.ai-chat-message-action-tool-tip-copy {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    background: #4c4c4c;
    color: rgb(255, 255, 255);
    padding: 0.75rem;
    border-radius: 0.75rem;
    z-index: 2000;
    bottom: calc(100% + 10px);
    transition: all 0.3s ease;
}

.ai-sidecontent-wrapper {
    position: fixed;
    display: block;
    right: 5rem;
    max-height: calc(100vh - 12.75rem);
    max-width: calc(25% - 10rem);
    overflow-y: scroll;
    background-color: #404040 !important;
    color: #fff;
    border-color: rgb(35, 35, 35) !important;
    overflow-x: hidden;
    top: 90px;
}

.ai-sidecontent-wrapper::-webkit-scrollbar {
        height: 1rem;
        width: 0.5rem;
    }

.ai-sidecontent-wrapper::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-sidecontent-wrapper::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-sidecontent-wrapper::-webkit-scrollbar-track:hover {
            background-color: transparent !important;
        }

.ai-sidecontent-wrapper .node {
    border-radius: 1rem;
}

.ai-sidecontent-wrapper .node:hover:not(:first-child) {
        background-color: #4c4c4c !important;
    }

.ai-sidecontent-wrapper .node:first-child:hover {
        background-color: transparent !important;
    }

.ai-sidecontent-wrapper #ai-content-close {
        background: none !important;
    }

.ai-sidecontent-wrapper #ai-content-close:hover {
            background-color: rgba(255, 255, 255, 0.07);
        }

/*iskanje*/

.ai-landing-iskanje-section-fix {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0px !important;
    top: 100px;
}

.ai-iskanje-result-wrapper {
    position: relative;
    width: 100%;
    padding: 0 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.ai-iskanje-results-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    padding:  0 1rem; 
    display: flex;
    flex-direction: row; 
    gap: 1rem; 
}

.ai-iskanje-results-container .ai-chat-document-lists {
        display: flex;
        flex-direction: row; 
        gap: 1rem;
        align-items: flex-start;
        justify-content: space-around;
    }

.ai-iskanje-results-container .tab-content {
        width: 30%; 
        height: calc(100vh - 12rem); 
        overflow-y: auto; 
        padding: 1rem;
        background: rgba(255, 255, 255, 0.2); 
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.3); 
        backdrop-filter: blur(10px); 
        margin-bottom: 1rem; 
    }

.ai-iskanje-results-container .tab-content::-webkit-scrollbar {
            height: 1rem;
            width: 0.5rem;
        }

.ai-iskanje-results-container .tab-content::-webkit-scrollbar-thumb {
            --tw-border-opacity: 1;
            background-color: #4c4c4c !important;
            border-color: rgba(255,255,255,0.2);
            border-radius: 9999px;
            border-width: 0px;
        }

.ai-iskanje-results-container .tab-content::-webkit-scrollbar-track {
            background-color: transparent;
            border-radius: 9999px;
        }

.ai-iskanje-results-container .tab-content::-webkit-scrollbar-track:hover {
                background-color: transparent !important;
            }

.ai-animation-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
}

.ai-animation-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 20px 0;
}

.ai-animation-circle1, .ai-animation-circle2 {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ai-animation-circle1 {
    width: 100%;
    height: 100%;
    border-top: 3px solid #52AFEA;
    border-bottom: 3px solid #52AFEA;
    animation: ai-animation-spin1 1.5s linear infinite;
}

.ai-animation-circle2 {
    width: 80%;
    height: 80%;
    border-left: 3px solid #52AFEA;
    border-right: 3px solid #52AFEA;
    animation: ai-animation-spin2 1.5s linear infinite;
}

@keyframes ai-animation-spin1 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ai-animation-spin2 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#ai-sidebar-tab-container {
    position: fixed; 
    top: calc((100% - 225px) / 2);
    right: 0;
    z-index: 999999;
    transition: 0.5s; 
}

@media (min-width: 768px) and (max-width: 1520px) {
    .ai-chat-document-list {
        max-width: calc(52rem - 10.5rem);
    }

}

@media (min-width: 768px) and (max-width: 1199px) {
    .ai-chat-parent-container {
        max-width: 75vw;
    }
    .ai-chat-document-list {
        max-width: calc(52rem - 10.5rem);
    }
    .ai-search-function-container {
        max-width: 75vw;
    }
    .ai-chat-sources-mini {
        display: none;
    }

    /* ========================================
       WORKSPACES - SPLIT SCREEN MINIMAL FIXES
       ======================================== */

    /* Header wrapping - actions fall to second row */
    #workspaces-container .ai-vault-main-header {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    #workspaces-container .ai-vault-header-info {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    #workspaces-container .ai-vault-header-actions {
        flex: 0 0 auto !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Icon-only header buttons (hide text, show SVG) */
    #workspaces-container .ai-vault-header-btn {
        padding: 10px !important;
        min-width: 44px !important;
        height: 44px !important;
        justify-content: center !important;
    }

    #workspaces-container .ai-vault-header-btn span {
        display: none !important;
    }

    #workspaces-container .ai-vault-header-btn svg {
        display: block !important;
        margin: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    /* Sidebar width */
    #workspaces-container .ai-vault-workspace-sidebar {
        width: 260px !important;
    }

    /* Tabs - grid layout (1, 3, 3 pattern) */
    #workspaces-container .ai-vault-content-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 8px !important;
        overflow: visible !important;
        max-width: 85% !important;
        width: auto !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        border-bottom: none !important;
    }

    /* All tab buttons default */
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button {
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button span {
        text-align: center !important;
    }

    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button i {
        flex-shrink: 0 !important;
    }

    /* First tab button (PREGLED) - spans all 3 columns (row 1) */
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(1) {
        grid-column: 1 / 4 !important;
        grid-row: 1 !important;
    }

    /* Tab buttons 2-4 (row 2) */
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(2),
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(3),
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(4) {
        grid-row: 2 !important;
    }

    /* Tab buttons 5-7 (row 3) */
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(5),
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(6),
    #workspaces-container .ai-vault-content-tabs .ai-vault-tab-button:nth-child(7) {
        grid-row: 3 !important;
    }

    /* Tab content - scrollable container */
    #workspaces-container .ai-vault-tab-content {
        max-height: 600px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Overview grid - width constraints */
    #workspaces-container .ai-vault-overview-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Overview sections - compact */
    #workspaces-container .ai-vault-overview-section {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Compact session cards */
    #workspaces-container .ai-vault-session-card {
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #workspaces-container .ai-vault-session-header {
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    #workspaces-container .ai-vault-session-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    #workspaces-container .ai-vault-session-title {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    #workspaces-container .ai-vault-session-meta {
        font-size: 11px !important;
        gap: 8px !important;
    }

    #workspaces-container .ai-vault-recent-sessions {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Compact item cards - vertical list */
    #workspaces-container .ai-vault-items-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #workspaces-container .ai-vault-item-card {
        padding: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #workspaces-container .ai-vault-item-header {
        gap: 8px !important;
    }

    #workspaces-container .ai-vault-item-title {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }

    #workspaces-container .ai-vault-item-type {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    #workspaces-container .ai-vault-item-date {
        font-size: 10px !important;
    }
}

.ai-right-panel-container .document-preview {
    width: 100%;
    height: 100%; /* Polna višina viewport-a */
    display: flex;
    flex-direction: column;
    border-radius: 0; /* Brez border radius za polno pokritost */
    overflow: hidden;
    box-shadow: none; /* Brez sence ker je v sidebar-u */
}

.ai-right-panel-container  .preview-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: calc(100vh - 50px); /* Polna višina minus header */
}

.ai-right-panel-container  .preview-content iframe {
        border: none;
        background: white;
        width: 100%;
        height: 100%;
    }

.ai-right-panel-container  .pdf-preview iframe {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 2px;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    margin: 5px;
}

.ai-right-panel-container  .text-preview .preview-content {
    background: white;
    padding: 0;
}

.ai-right-panel-container  .text-preview .preview-header h3::before {
    content: "📝";
}

.ai-right-panel-container  .text-content-wrapper {
    font-family: 'Open Sans';
    font-size: 12px;
    line-height: 1.4;
    overflow-y: auto;
    padding: 15px;
    background: white;
    margin: 5px;
    border-radius: 2px;
    height: calc(100% - 10px);
}

.ai-right-panel-container .document-content-wrapper {
    overflow-y: auto;
    background: white;
    margin: 5px;
    border-radius: 2px;
    height: calc(100% - 10px);
}

.ai-view-container {
    transition: margin-left 0.3s ease; /* Same transition as menu */
    margin-left: var(--side-menu-width);
    width: calc(100% - var(--side-menu-width));
}

.ai-view-container.content-shifted {
        margin-left: var(--side-menu-expanded-width);
        width: calc(100% - var(--side-menu-expanded-width));
    }

.ai-side-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100% - var(--header-height));
    background-color: #1a1a1a;
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    width: var(--side-menu-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-side-menu:hover {
        width: var(--side-menu-expanded-width);
    }

.ai-side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-side-menu-item {
    position: relative;
    padding: 15px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #ffffff;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.ai-side-menu-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

.ai-side-menu-item.active {
        background: linear-gradient(90deg,
            rgba(81, 175, 234, 0.12) 0%,
            rgba(81, 175, 234, 0.04) 100%);
        border-left-color: #51afea;
        box-shadow: inset 0 0 30px rgba(81, 175, 234, 0.05);
    }

.ai-side-menu-icon {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9c9c9c; /* Icon color */
    flex-shrink: 0;
    padding-left: 5px;
}

.ai-side-menu-icon svg {
        width: 22px;
        height: 22px;
    }

.ai-side-menu-item:hover .ai-side-menu-icon,
.ai-side-menu-item.active .ai-side-menu-icon {
    color: #51afea; /* Blue on hover/active */
}

.ai-side-menu-label {
    font-size: 16px;
    font-weight: 400;
    margin-left: 15px;
    color: #9c9c9c;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease;
}

.ai-side-menu:hover .ai-side-menu-label {
    opacity: 1; /* Visible when menu is hovered */
}

.ai-side-menu-item:hover .ai-side-menu-label,
.ai-side-menu-item.active .ai-side-menu-label {
    color: #ffffff; /* Brighter text on hover/active */
}

.ai-side-menu-item[data-view="helpdesk"] {
    margin-top: auto; /* Push to bottom */
    border-top: 1px solid #3a3a3a;
}

.ai-history-modern {
    margin-left: 70px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
    color: #fff;
    height: 100%;
    overflow-y: auto;
}

.ai-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-history-header h2 {
        font-size: 24px;
        font-weight: 500;
        color: #fff;
    }

.ai-history-new-chat-btn {
    all: unset;
    background-color: #3d8ac7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-history-new-chat-btn label {
        cursor: pointer;
    }

.ai-history-new-chat-btn:hover {
        color: white;
        text-decoration: none;
        cursor: pointer;
        background-color: #51afea;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(81, 175, 234, 0.2);
    }

.ai-history-search {
    margin-bottom: 30px;
}

.ai-history-search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ai-history-search-input svg {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

.ai-history-search-input input {
        width: 100%;
        background-color: #2a2a2a;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        padding: 12px 15px 12px 45px;
        color: #fff;
        font-size: 16px;
    }

.ai-history-search-input input:focus {
            outline: none;
            border-color: rgba(81, 175, 234, 0.5);
            box-shadow: 0 0 0 3px rgba(81, 175, 234, 0.08),
                        0 0 20px rgba(81, 175, 234, 0.12);
        }

.ai-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 10px 30px 10px;
    min-height: 300px;
    overflow-y: scroll;
    height: 28vw;
}

.ai-history-list::-webkit-scrollbar {
        width: 0.5rem; /* Width of the scrollbar */
        height: 1rem; /* Height of the scrollbar for horizontal scroll, if applicable */
    }

.ai-history-list::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-history-list::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #333333 !important;
        border-color: rgba(255, 255, 255, 0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-history-item,
.ai-user-doc-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.ai-history-item:hover,
    .ai-user-doc-item:hover {
        background-color: #333333;
        border-color: rgba(81, 175, 234, 0.2);
    }

.ai-history-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ai-history-item-title {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 700px;
    color: #fff;
}

.ai-history-item-time {
    font-size: 14px;
    color: #9c9c9c;
}

.ai-session-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
}

.ai-chip-workspace {
    background: #333333;
    color: #51afea;
}

.ai-chip-court-search {
    background: #51afea;
    color: #ffffff;
}

.ai-session-chip i {
    font-size: 9px;
}

.ai-history-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.ai-history-item-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ai-history-item:hover .ai-history-item-actions,
.ai-user-doc-item:hover .ai-history-item-actions {
    opacity: 1;
}

.ai-history-action-btn {
    background: none;
    border: none;
    color: #9c9c9c;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-history-action-btn:hover {
        background-color: #333333;
        color: #51afea;
        color: #51afea;
    }

.ai-history-load-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ai-history-empty {
    color: #9c9c9c;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}

.ai-history-edit-input {
    background-color: #363636;
    border: 1px solid #51afea;
    border-radius: 4px;
    color: white;
    padding: 5px 10px;
    width: 100%;
    max-width: 500px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    z-index: 10;
    position: relative;
}

.ai-history-edit-input:focus {
    border-color: #7cc4f0;
    box-shadow: 0 0 0 2px rgba(81, 175, 234, 0.3);
}

.ai-history-edit-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.ai-history-edit-counter {
    font-size: 11px;
    color: #888;
    text-align: right;
    padding-right: 4px;
    transition: color 0.2s ease;
}

.ai-counter-warning {
    color: #f0ad4e;
}

.ai-counter-limit {
    color: #d9534f;
    font-weight: bold;
}

.ai-history-edit-input.ai-edit-warning {
    border-color: #f0ad4e;
}

.ai-history-edit-input.ai-edit-warning:focus {
    border-color: #f0ad4e;
    box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.3);
}

.ai-history-edit-input.ai-edit-limit {
    border-color: #d9534f;
}

.ai-history-edit-input.ai-edit-limit:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.3);
}

.ai-edit-inline-warning {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    background-color: rgba(217, 83, 79, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    z-index: 20;
    animation: fadeInWarning 0.3s ease;
}

.ai-minimal-doc-list {
    margin: 10px 0;
    font-family: 'Open Sans';
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    font-size: 1em;
}

.ai-minimal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    overflow-x: auto;
}

.ai-minimal-tab {
    padding: 5px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.17em;
    border-radius: 0.5625rem;
    cursor: pointer;
}

.ai-minimal-tab.active {
        background: rgba(81, 175, 234, 0.2);
        color: #51afea;
    }

.ai-minimal-panel {
    display: none;
}

.ai-minimal-panel.active {
        display: block;
    }

.ai-minimal-doc {
    margin-bottom: 10px;
}

.ai-minimal-doc-header {
    font-size: 1em;
    font-weight: 500;
    padding: 4px 8px;
    display: inline-block;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 0.5625rem;
}

.ai-minimal-refs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ai-minimal-ref-item {
    padding: 4px 8px;
    background-color: #4c4c4c;
    border-radius: 0.5625rem;
    font-size: 0.95em;
    cursor: pointer;
    margin-left: 1em;
}

.ai-minimal-doc-header:hover,
.ai-minimal-ref-item:hover {
    color: #51afea;
}

.ai-minimal-ref-item.active, .ai-minimal-doc-header.active {
        background: rgba(81, 175, 234, 0.2);
        color: #51afea;
    }

.ai-right-panel-container,
#ai-advanced-sources-panel {
    position: fixed;
    top: var(--header-height);
    right: -100vw; /* Start off-screen */
    width: var(--panel-width);
    max-width: var(--panel-width);
    min-width: 320px;
    height: calc(100% - var(--header-height));
    background: #1a1a1a;
    z-index: 999;
    overflow: hidden;
    transition: right 0.5s ease;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

.ai-right-panel-container.active,
    #ai-advanced-sources-panel.active {
        right: 0;
    }

@media screen and (min-width: 900px) {
    .panel-active .ai-chat-container,
    .panel-active .ai-chat-bottom-wrapper,
    .panel-active .ai-chat-messages-box,
    .panel-active .ai-search-container,
    .panel-active #court-chat-container {
        width: calc(100% - var(--panel-width) - 100px);
        transition: width 0.3s ease;
        margin-left: 85px;
    }
}

@media screen and (max-width: 899px) {
    .ai-right-panel-container,
    #ai-advanced-sources-panel {
        width: 90vw;
        max-width: 450px;
    }

    /* Don't adjust content width on small screens */
    .panel-active .ai-chat-container,
    .panel-active .ai-chat-bottom-wrapper,
    .panel-active .ai-chat-messages-box,
    .panel-active .ai-search-container,
    .panel-active #court-chat-container {
        width: 100% !important;
    }
}

.ai-right-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ai-right-panel-header-content {
    flex: 1;
    overflow: hidden;
    margin-left: 10px
}

.ai-right-panel-question {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-right-panel-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ai-right-panel-title a{
    all: unset;
}

.ai-right-panel-title:hover {
        color: #51afea;
        text-decoration: underline;
    }

.ai-right-panel-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-right-panel-close:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.ai-right-panel-controls {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ai-right-panel-controls-left {
    display: flex;
    align-items: center;
}

.ai-right-panel-copy {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-right-panel-copy:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.ai-right-panel-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.ai-right-panel-content {
    flex-grow: 1;
    min-height: 0; /* 🔑 Critical for flex scroll - allows overflow instead of growing */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    line-height: 1.5;
}

.ai-right-panel-content::-webkit-scrollbar {
    height: 1rem;
    width: 0.5rem;
}

.ai-right-panel-content::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

#chatMessages::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 9999px;
}

.ai-right-panel-document-content {
    padding: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.ai-right-panel-document-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-right-panel-block-title {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-right-panel-block-title a{
    all: unset;
}

.ai-right-panel-block-title:hover {
        color: #52AFEA;
        text-decoration: underline;
        cursor: pointer;
    }

.ai-right-panel-block-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-right-panel-content-match {
    background: rgba(81, 175, 234, 0.15);
    border-left: 3px solid #51afea;
    border-radius: 0 4px 4px 0;
}

.ai-right-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.ai-right-panel-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #51afea;
    border-radius: 50%;
    animation: ai-right-panel-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes ai-right-panel-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-right-panel-error {
    padding: 16px;
    margin: 16px;
    background: rgba(255, 80, 80, 0.1);
    border-left: 3px solid rgba(255, 80, 80, 0.6);
    border-radius: 0 4px 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.ai-right-panel-notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(81, 175, 234, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1010;
}

.ai-right-panel-document {
    padding: 4px;
    margin-bottom: 16px;
}

.ai-right-panel-document-header {
    margin-bottom: 16px;
}

.ai-right-panel-document-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ai-right-panel-document-institutiTags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ai-right-panel-tag {
    background: rgba(81, 175, 234, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.ai-right-panel-document-section {
    margin-bottom: 24px;
    border-radius: 6px;
    padding: 12px;
}

.ai-right-panel-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-right-panel-section-content {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.ai-copy-format-popup,
.ai-doc-copy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    border-radius: 8px;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
}

.ai-copy-popup-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: 600;
    color: #9c9c9c;
}

.ai-copy-options-container {
    padding: 8px;
}

.ai-copy-option {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ai-copy-option:hover {
        background-color: #333333;
    }

.ai-copy-icon {
    font-size: 20px;
    margin-right: 12px;
}

.ai-copy-details {
    flex: 1;
}

.ai-copy-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.ai-copy-description {
    font-size: 0.875rem;
    color: #666;
}

.ai-copy-popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

.ai-right-panel-paragraph-title {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.ai-right-panel-paragraph {
    display: flex;
    font-size: 14px;
    padding: 8px 12px;
    margin: 2px 0px;
    border-radius: 4px;
    gap: 10px;
}

.ai-right-panel-paragraph-number {
    display: none;
    flex-shrink: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
    min-width: 24px;
}

.ai-right-panel-paragraph-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 12px;
}

.ai-right-panel-paragraph-content h3{
    color: rgba(255, 255, 255, 0.8) !important;
}

.ai-right-panel-metadata-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
}

.ai-right-panel-metadata-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.ai-right-panel-metadata-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.ai-right-panel-document-metadata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 12px;
    padding: 10px;
}

.ai-right-panel-metadata-item {
    display: flex;
    align-items: center;
}

.ai-right-panel-metadata-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-right: 6px;
}

.ai-right-panel-metadata-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.ai-advanced-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 999;
    /*    border-bottom: 1px solid #3a3a3a;*/
}

.ai-advanced-panel-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        color: #fff;
        z-index: 999;
    }

.ai-advanced-panel-close {
    background: none;
    border: none;
    color: #9c9c9c;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    z-index: 999;
}

.ai-advanced-panel-close:hover {
        color: #fff;
    }

.ai-advanced-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    z-index: 999;
}

.ai-advanced-tab {
    padding: 12px;
    background: none;
    border: none;
    color: #9c9c9c;
    cursor: pointer;
    position: relative;
    z-index: 999;
}

.ai-advanced-tab:hover,
    .ai-advanced-tab.active {
        color: #51afea;
        font-weight: 500;
    }

.ai-advanced-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #51afea;
        }

.ai-advanced-content {
    flex: 1;
    overflow: hidden;
    padding: 15px;
    z-index: 999;
}

.ai-advanced-tab-content {
    display: none;
}

.ai-advanced-tab-content.active {
        display: block;
    }

.ai-advanced-search-wrapper {
    margin-bottom: 15px;
    display: flex;
}

.ai-advanced-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

.ai-advanced-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.ai-advanced-search-input:focus {
        outline: none;
        border-color: #51afea;
    }

.ai-advanced-search-input::placeholder {
        color: #9c9c9c;
    }

.ai-search-clear-btn {
    position: relative;
    margin-left: -35px; /* Porine button v input polje */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: #9c9c9c;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0; /* Ne sme se skrčiti */
}

.ai-search-clear-btn:hover {
        background-color: #555;
        color: #fff;
    }

.ai-search-clear-btn:focus {
        outline: none;
        background-color: #666;
        color: #fff;
    }

.ai-search-clear-btn:active {
        background-color: #777;
    }

.ai-search-clear-btn svg {
        display: block;
        pointer-events: none;
        width: 16px;
        height: 16px;
    }

.ai-advanced-actions {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.ai-advanced-all-btn,
.ai-advanced-specific-btn {
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background-color: #363636;
    color: #9c9c9c;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.ai-advanced-all-btn:hover,
    .ai-advanced-specific-btn:hover {
        background-color: #272727;
    }

.ai-advanced-all-btn.active,
    .ai-advanced-specific-btn.active {
        background-color: #51afea;
        color: white;
        border-color: #51afea;
    }

.ai-advanced-specific {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    background-color: #363636;
}

.ai-advanced-specific::-webkit-scrollbar {
        height: 1rem;
        width: 0.5rem;
    }

.ai-advanced-specific::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-advanced-specific::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-advanced-specific::-webkit-scrollbar-track:hover {
        background-color: transparent !important;
    }

.ai-advanced-section-title {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        margin: 15px 0 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid #444;
    }

.ai-advanced-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.ai-advanced-item {
    display: flex;
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 8px;
    cursor: pointer!important;
}

.ai-advanced-item.active,
    .ai-advanced-item:hover {
        background-color: #51afea;
        cursor: pointer;
    }

.ai-advanced-item.active .ai-source-item-name {
            color: #fff;
            font-weight: 500;
        }

.ai-source-item-label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    width: 100%;
    color: #fff;
    font-size: 14px;
}

.ai-advanced-item input[type="checkbox"] {
        display: none;
    }

.ai-source-item-checkmark {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.ai-advanced-item.active .ai-source-item-checkmark {
    opacity: 1;
    transform: scale(1);
}

.ai-source-item-checkmark.ai-checkmark-animate {
    animation: checkmarkBounce 0.6s ease-out;
}

.ai-checkmark-icon {
    color: #fff;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ai-source-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-left: 8px;
}

.ai-source-item-name {
    flex: 1;
    font-size: 13px;
    color: #fff;
}

.ai-source-item-type {
    margin-left: 6px;
    display: flex;
    align-items: center;
    color: #9c9c9c;
}

.ai-source-type-icon {
    display: inline-flex;
    stroke: #9c9c9c;
}

.ai-advanced-selected-sources {
    margin-bottom: 15px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-advanced-selected-sources:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.ai-advanced-selected-sources::-webkit-scrollbar {
        height: 1rem;
        width: 0.5rem;
    }

.ai-advanced-selected-sources::-webkit-scrollbar-thumb {
        --tw-border-opacity: 1;
        background-color: #4c4c4c !important;
        border-color: rgba(255,255,255,0.2);
        border-radius: 9999px;
        border-width: 0px;
    }

.ai-advanced-selected-sources::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 9999px;
    }

.ai-advanced-selected-sources::-webkit-scrollbar-track:hover {
            background-color: transparent !important;
        }

.ai-advanced-selected-sources h3 {
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 10px 0;
        color: #fff;
        gap: 4px;
        display: flex;
        cursor: pointer;
        transition: all 0.3s ease;
        justify-content: space-evenly;
        align-items: center;
    }

.ai-advanced-selected-sources h3:hover,
        .ai-reset-sources-btn:hover {
            color: #6b6b6b;
        }

.ai-reset-sources-btn {
    margin: 0 0 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-advanced-sources-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .ai-advanced-sources-list {
        grid-template-columns: 1fr;
    }
}

.ai-advanced-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-advanced-source-item:hover {
    transform: translateY(-2px);
    border-color: rgba(81, 175, 234, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-chat-sources-mini {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 280px;
    max-width: 500px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.ai-chat-sources-mini .ai-advanced-sources-list {
    display: flex;
    flex-direction: column;
}

.ai-chat-sources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-sources-close {
    background: none;
    border: none;
    color: #9c9c9c;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ai-chat-sources-close:hover {
        color: #f8f8f8;
        background: rgba(255, 255, 255, 0.1);
    }

.ai-chat-sources-mini .ai-advanced-source-item {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.ai-chat-sources-mini .ai-advanced-source-category {
    font-size: 0.65rem;
}

.ai-chat-sources-mini .ai-advanced-source-name {
    font-size: 0.7rem;
}

.ai-chat-sources-mini .ai-advanced-source-remove {
    font-size: 0.9rem;
    opacity: 0.7;
}

.ai-chat-sources-mini .ai-advanced-source-remove:hover {
        opacity: 1;
    }

.ai-chat-sources-mini.visible {
        transform: translateX(0);
    }

@media (max-width: 768px) {
    .ai-chat-sources-mini {
        position: fixed;
        bottom: 90px;
        left: 10px;
        right: 10px;
        top: auto;
        width: auto;
        max-width: none;
        padding: 0.5rem;
        max-height: 80px;
    }

        .ai-chat-sources-mini h3 {
            font-size: 0.7rem;
        }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .ai-chat-sources-mini {
        width: 260px;
        right: 15px;
    }
}

.ai-advanced-source-info {
    display: flex;
    align-items: center;
}

.ai-advanced-source-category {
    font-weight: 500;
    color: #fff;
}

.ai-advanced-source-name {
    color: #9c9c9c;
    margin-left: 5px;
    max-width: 169px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-advanced-source-type {
    margin-left: 6px;
    display: flex;
    align-items: center;
    color: #9c9c9c;

}

.ai-advanced-source-goto,
.ai-source-tag-goto {
    cursor: pointer;
    color: #9c9c9c;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
    margin-right: 8px;
    padding: 2px;
}

.ai-advanced-source-goto:hover,
.ai-source-tag-goto:hover {
    color: #51afea;
}

/* Workspace source row layout */
.ai-advanced-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

/* Prominent workspace navigation button */
.ai-workspace-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 2px);
    max-width: 100%;
    margin-top: 6px;
    padding: 5px 10px;
    background: rgba(81, 175, 234, 0.15);
    border: 1px solid rgba(81, 175, 234, 0.3);
    border-radius: 4px;
    color: #51afea;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.ai-workspace-nav-btn:hover {
    background: rgba(81, 175, 234, 0.25);
    border-color: rgba(81, 175, 234, 0.5);
    color: #7cc4f0;
}

.ai-workspace-nav-btn svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Workspace source item needs flex-direction column for button below */
.ai-advanced-source-item.ai-advanced-source-workspace {
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.ai-advanced-source-remove,
.ai-advanced-tag-remove {
    cursor: pointer;
    color: #9c9c9c;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
}

.ai-advanced-source-remove:hover,
    .ai-advanced-tag-remove:hover {
        color: #ff6b6b;
    }

.ai-advanced-no-sources {
    color: #9c9c9c;
    font-size: 14px;
    font-style: italic;
}

.ai-search-tagged-container .ai-source-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(81, 175, 234, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
}

.ai-search-tagged-container .ai-source-tag.ai-source-tag-all {
        background-color: rgba(76, 175, 80, 0.2);
    }

.ai-search-tagged-container .ai-source-tag-text {
    color: #51afea;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.ai-search-tagged-container .ai-source-tag-type {
    margin-left: 5px;
    display: flex;
    align-items: center;
    color: #9c9c9c;
}

.ai-search-tagged-container .ai-source-tag-remove {
    background: none;
    border: none;
    color: #51afea;
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
}

.ai-advanced-quick-actions {
    display: flex;
    gap: 10px;
/*    margin-bottom: 15px;*/
    flex-wrap: wrap;
}

.ai-advanced-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-advanced-action-btn:hover {
        background-color: #3a3a3a;
        border-color: rgba(81, 175, 234, 0.3);
        box-shadow: 0 0 20px rgba(81, 175, 234, 0.15);
    }

.ai-advanced-action-btn:hover svg {
        color: #51afea;
    }

.ai-advanced-action-btn svg {
        width: 20px;
        height: 20px;
        color: #9c9c9c;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

.ai-advanced-loading,
.ai-advanced-error,
.ai-advanced-empty,
.ai-advanced-info {
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

.ai-advanced-loading {
    background-color: #2c3e50;
    color: #51afea;
}

.ai-advanced-error {
    background-color: #422;
    color: #ff6b6b;
}

.ai-advanced-empty {
    background-color: #2a2a2a;
    color: #a8a8a8;
}

.ai-advanced-info {
    background-color: #333728;
    color: #e6c619;
}

.ai-advanced-upload-section {
    background-color: #2a2a2a;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.ai-advanced-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #51afea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto 10px;
    transition: background-color 0.2s;
}

.ai-advanced-upload-btn:hover {
        background-color: #3d9ed9;
    }

.ai-advanced-upload-info {
    font-size: 12px;
    color: #9c9c9c;
}

.ai-date-filter-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-date-filter-container {
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    background: #1E1E1E;
    z-index: 999;
    overflow: hidden;
    transition: right 0.5s ease;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

.ai-date-filter-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ai-date-filter-header h3 {
        margin: 0;
        color: #9c9c9c;
        font-size: 18px;
    }

.ai-date-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #9c9c9c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.ai-date-filter-close:hover {
        background-color: #f5f5f5;
    }

.ai-date-filter-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-date-filter-content p {
        margin: 0 0 15px 0;
        color: #9c9c9c;
    }

.ai-date-filter-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ai-date-filter-actions button {
        padding: 8px 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        background: #f8f9fa;
        transition: background-color 0.2s;
        font-family: 'Open Sans';
        font-weight: bold;
        font-size: 12px;
    }

.ai-date-filter-actions button:hover {
            background-color: #e9ecef;
        }

.ai-date-filter-clear {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.ai-date-filter-clear:hover {
        background-color: #c82333 !important;
    }

#ai-date-filter-calendar .ui-datepicker {
    position: static !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: none;
    min-width: 300px;
}

#ai-date-filter-calendar .ui-datepicker .ui-datepicker-header
{
    position: relative;
    padding: .2em 0;
    background: none;
    border: none;
}

#ai-date-filter-picker {
    border: none !important;
    background: none;
    border: none;
    background: none;
    pointer-events: none;
    height: 0px !important;
    padding: 0px !important;
}

#ai-date-filter-picker:active,
    #ai-date-filter-picker:focus{
        border: none !important;
        outline: none;
    }

.ai-date-filter-dialog .ui-widget-content {
    background: #404041;
    background-color: #404041;
    border: none;
    color: #fff;
    border-radius: 1rem;
    padding: 0.1rem 0.4rem;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    border: none;
    background: #51afea !important;
    font-weight: normal;
    color: #fff;
}

.ai-date-filter-dialog .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: none;
    background: #4c4c4c;
    font-weight: normal;
    color: #fff;
    font-family: 'Open Sans';
    padding: 10px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

.ai-date-filter-dialog .ui-state-default:hover, .ui-widget-content .ui-state-default:hover {
        background: rgb(57, 57, 60);
    }

.ai-date-filter-dialog .ui-widget-header {
    border: 1px solid #dddddd;
    background: #404041;
    color: #fff;
    font-weight: bold;
    border: none;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-datepicker-prev,
.ai-date-filter-dialog .ui-datepicker-next {
    display: none;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-datepicker-title {
    display: flex !important;
    margin: 0px;
    font-family: 'Open Sans';
}

.ai-date-filter-dialog .ui-datepicker-title select {
        margin: 1px 1rem;
        background: #4c4c4c;
        border: none;
        border-radius: 1rem;
        color: #fff;
        font-family: 'Open Sans';
    }

#ai-application .document-upload-overlay,
#ai-application .court-practice-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#ai-application .document-upload-overlay.active,
    #ai-application .court-practice-loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

#ai-application .document-upload-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(82, 175, 234, 0.3);
    border-radius: 16px;
    padding: 48px 64px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(82, 175, 234, 0.15);
}

#ai-application .document-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ai-application .document-icon {
    width: 64px;
    height: 64px;
    color: #52AFEA;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(82, 175, 234, 0.5));
}

#ai-application .document-icon.spinning {
    animation: spin 1.5s linear infinite;
}

#ai-application .upload-success {
    animation: successPop 0.5s ease-out;
}

#ai-application .success-icon {
    width: 64px;
    height: 64px;
    color: #52AFEA;
    filter: drop-shadow(0 0 8px rgba(82, 175, 234, 0.5));
}

#ai-application .upload-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
}

#ai-application .upload-subtext {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    margin-top: -12px;
}

/* court-search-history-item styles moved to ai-chat-court-research-1.0.css */

.ai-right-panel-copy {
    position: relative;
    overflow: visible;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-right-panel-copy.tfl-doc-ai-copy-success {
    box-shadow: 0 0 0 1px rgba(81, 175, 234, 0.5),
                0 0 8px rgba(81, 175, 234, 0.25);
}

.ai-right-panel-copy.tfl-doc-ai-copy-success svg {
    stroke: #51afea !important;
}

.ai-right-panel-copy.tfl-doc-ai-copy-error {
    box-shadow: 0 0 0 1px rgba(244, 67, 54, 0.5),
                0 0 8px rgba(244, 67, 54, 0.25);
}

.tfl-doc-ai-copy-notification {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(45, 45, 45, 0.98);
    color: #51afea;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(81, 175, 234, 0.3);
    letter-spacing: 0.3px;
    z-index: 10000;
}

.tfl-doc-ai-copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(12px);
}

.tfl-doc-ai-copy-notification.error {
    color: #f44336;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(244, 67, 54, 0.3);
}

.tfl-doc-ai-copy-notification::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(45, 45, 45, 0.98);
}

.ai-tts-toggle-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.ai-tts-toggle-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #52AFEA;
    border-radius: 50%;
    animation: ttsLoadingSpin 0.8s linear infinite;
}

.ai-tts-toggle-btn.loading svg {
    visibility: hidden;
}

@keyframes ttsLoadingSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
