/* /Components/Layout/ChatbotWidget.razor.rz.scp.css */
/* Floating Launcher Button */
.timebot-launcher[b-3zqracr76o] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f9 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #0EA5E9;
}

.timebot-launcher:hover[b-3zqracr76o] {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.4);
    border-color: #0284C7;
}

.timebot-launcher img[b-3zqracr76o] {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.timebot-launcher.open[b-3zqracr76o] {
    transform: scale(0.9) rotate(90deg);
    opacity: 0.8;
}

.timebot-badge[b-3zqracr76o] {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Chat Window */
.timebot-chat-window[b-3zqracr76o] {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    height: 520px;
    max-height: 80vh;
    border-radius: 20px;
    background: rgba(32, 33, 36, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    animation: slideUp-b-3zqracr76o 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #f1f3f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes slideUp-b-3zqracr76o {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.timebot-header[b-3zqracr76o] {
    background: #0F172A;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timebot-header-info[b-3zqracr76o] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timebot-header-avatar[b-3zqracr76o] {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 2px;
    object-fit: contain;
}

.timebot-header-text[b-3zqracr76o] {
    display: flex;
    flex-direction: column;
}

.timebot-header-title[b-3zqracr76o] {
    font-weight: 700;
    font-size: 15px;
    color: white;
    letter-spacing: 0.3px;
}

.timebot-header-status[b-3zqracr76o] {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot[b-3zqracr76o] {
    width: 6px;
    height: 6px;
    background-color: #4cd964;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4cd964;
    animation: pulse-b-3zqracr76o 2s infinite;
}

@keyframes pulse-b-3zqracr76o {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 217, 100, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); }
}

.timebot-close-btn[b-3zqracr76o] {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timebot-close-btn:hover[b-3zqracr76o] {
    opacity: 1;
}

/* Chat Body */
.timebot-body[b-3zqracr76o] {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(24, 25, 28, 0.4);
}

.timebot-msg-row[b-3zqracr76o] {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.timebot-msg-row.bot-row[b-3zqracr76o] {
    align-self: flex-start;
}

.timebot-msg-row.user-row[b-3zqracr76o] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.timebot-msg-avatar[b-3zqracr76o] {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 2px;
    align-self: flex-end;
    object-fit: contain;
}

.timebot-msg-bubble[b-3zqracr76o] {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.bot-bubble[b-3zqracr76o] {
    background: rgba(255, 255, 255, 0.08);
    color: #e3e3e7;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.user-bubble[b-3zqracr76o] {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Typing Indicator */
.typing-indicator[b-3zqracr76o] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span[b-3zqracr76o] {
    width: 6px;
    height: 6px;
    background-color: #a8b2c1;
    border-radius: 50%;
    display: inline-block;
    animation: bounce-b-3zqracr76o 1.4s infinite both;
}

.typing-indicator span:nth-child(1)[b-3zqracr76o] { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2)[b-3zqracr76o] { animation-delay: -0.16s; }

@keyframes bounce-b-3zqracr76o {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Suggestions */
.timebot-suggestions[b-3zqracr76o] {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(18, 18, 20, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none; /* Scrollbar hidden for visual aesthetics */
}

.timebot-suggestions[b-3zqracr76o]::-webkit-scrollbar {
    display: none;
}

.timebot-suggestions button[b-3zqracr76o] {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.timebot-suggestions button:hover[b-3zqracr76o] {
    background: rgba(14, 165, 233, 0.15);
    border-color: #0EA5E9;
    color: white;
    transform: translateY(-1px);
}

/* Footer */
.timebot-footer[b-3zqracr76o] {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(32, 33, 36, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timebot-input[b-3zqracr76o] {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.timebot-input:focus[b-3zqracr76o] {
    border-color: #0EA5E9;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.timebot-send-btn[b-3zqracr76o] {
    background: white;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.timebot-send-btn:hover[b-3zqracr76o] {
    background: #e0f2fe;
    transform: scale(1.05);
}

.timebot-send-btn:disabled[b-3zqracr76o] {
    background: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    transform: none;
}

.timebot-send-btn:disabled[b-3zqracr76o]  .mud-icon-root {
    color: rgba(255, 255, 255, 0.2) !important;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Custom scrollbar for the modern drawer */
[b-j3vpeqlvps] .modern-drawer .mud-drawer-content::-webkit-scrollbar {
    width: 6px;
}
[b-j3vpeqlvps] .modern-drawer .mud-drawer-content::-webkit-scrollbar-track {
    background: transparent;
}
[b-j3vpeqlvps] .modern-drawer .mud-drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
[b-j3vpeqlvps] .modern-drawer .mud-drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

[b-j3vpeqlvps] .modern-drawer {
    background-color: var(--mud-palette-drawer-background) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1) !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Glassmorphism for the appbar */
[b-j3vpeqlvps] .mud-appbar {
    background: color-mix(in srgb, var(--mud-palette-appbar-background) 85%, transparent) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Smooth transition in main layout content */
[b-j3vpeqlvps] .mud-main-content {
    transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #F8FAFC;
}

/* Blazor Error UI */
#blazor-error-ui[b-j3vpeqlvps] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-j3vpeqlvps] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Base container covering full height */
.nav-container[b-w9snzczkhy] {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #94A3B8; /* Slate 400 */
}

/* Ensure tooltips wrapper spans full width of menu */
[b-w9snzczkhy] .mud-tooltip-root {
    display: block !important;
    width: 100% !important;
}

/* Header with logo and title */
.nav-header[b-w9snzczkhy] {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    box-sizing: border-box;
}

.logo-wrapper[b-w9snzczkhy] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: all 0.25s ease;
}

[b-w9snzczkhy] .drawer-toggle-btn {
    color: #94A3B8 !important;
    padding: 8px !important;
    margin-left: -8px !important;
    transition: all 0.2s ease !important;
}

[b-w9snzczkhy] .drawer-toggle-btn:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[b-w9snzczkhy] .logo-icon {
    color: var(--mud-palette-secondary) !important;
    font-size: 1.6rem !important;
    transition: opacity 0.2s ease;
}

.brand-text[b-w9snzczkhy] {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mud-palette-appbar-text);
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Navigation scrollable content */
.nav-content[b-w9snzczkhy] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Divider inside navigation list */
.admin-divider-container[b-w9snzczkhy] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 8px 20px;
    box-sizing: border-box;
    transition: padding 0.25s ease;
}

.admin-divider-text[b-w9snzczkhy] {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569; /* Slate 600 */
    white-space: nowrap;
}

.admin-divider-line[b-w9snzczkhy] {
    flex: 1;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
}

/* Standard NavLink customization */
[b-w9snzczkhy] .custom-nav-link {
    margin: 4px 12px !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

/* Normal (inactive) text and icon colors */
[b-w9snzczkhy] .custom-nav-link,
[b-w9snzczkhy] .custom-nav-link .mud-nav-link-text,
[b-w9snzczkhy] .custom-nav-link .mud-nav-link-icon-default {
    color: var(--mud-palette-drawer-text) !important;
}

/* NavLink hover */
[b-w9snzczkhy] .custom-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[b-w9snzczkhy] .custom-nav-link:hover,
[b-w9snzczkhy] .custom-nav-link:hover .mud-nav-link-text,
[b-w9snzczkhy] .custom-nav-link:hover .mud-nav-link-icon-default {
    color: var(--mud-palette-appbar-text) !important;
}

/* NavLink active state (Circle around icon) */
[b-w9snzczkhy] .custom-nav-link.active,
[b-w9snzczkhy] .custom-nav-link .active {
    background: transparent !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

[b-w9snzczkhy] .custom-nav-link.active .mud-nav-link-text,
[b-w9snzczkhy] .custom-nav-link .active .mud-nav-link-text {
    color: var(--mud-palette-secondary) !important;
}

[b-w9snzczkhy] .custom-nav-link.active .mud-nav-link-icon-default,
[b-w9snzczkhy] .custom-nav-link .active .mud-nav-link-icon-default {
    color: var(--mud-palette-secondary) !important;
    background-color: color-mix(in srgb, var(--mud-palette-secondary) 15%, transparent) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    margin: -6px 8px -6px -6px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Admin link active state (Circle around icon) */
[b-w9snzczkhy] .admin-link .mud-nav-link-icon-default {
    color: rgba(239, 68, 68, 0.7) !important; /* Red 500 */
}

[b-w9snzczkhy] .admin-link.active,
[b-w9snzczkhy] .admin-link .active {
    background: transparent !important;
    box-shadow: none !important;
}

[b-w9snzczkhy] .admin-link.active .mud-nav-link-text,
[b-w9snzczkhy] .admin-link .active .mud-nav-link-text {
    color: #EF4444 !important;
}

[b-w9snzczkhy] .admin-link.active .mud-nav-link-icon-default,
[b-w9snzczkhy] .admin-link .active .mud-nav-link-icon-default {
    color: #EF4444 !important;
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    margin: -6px 8px -6px -6px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Version link active state */
[b-w9snzczkhy] .version-link.active,
[b-w9snzczkhy] .version-link .active {
    opacity: 1 !important;
}

[b-w9snzczkhy] .version-link.active .version-text,
[b-w9snzczkhy] .version-link .active .version-text {
    color: #0EA5E9 !important;
}


/* Footer Section */
.nav-footer[b-w9snzczkhy] {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.2);
}

/* User profile link */
.user-profile-link[b-w9snzczkhy] {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    cursor: pointer;
}

.user-profile-link:hover .user-profile-card[b-w9snzczkhy] {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.user-profile-card[b-w9snzczkhy] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.avatar-container[b-w9snzczkhy] {
    position: relative;
    display: inline-flex;
}

[b-w9snzczkhy] .user-avatar {
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, var(--mud-palette-secondary) 0%, var(--mud-palette-secondary-darken) 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.status-dot[b-w9snzczkhy] {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background-color: #10B981; /* Emerald 500 */
    border: 2px solid var(--mud-palette-drawer-background);
    border-radius: 50%;
}

.user-info[b-w9snzczkhy] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.user-name[b-w9snzczkhy] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mud-palette-appbar-text);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-status[b-w9snzczkhy] {
    font-size: 0.7rem;
    color: #10B981;
}

/* Special links in footer */
[b-w9snzczkhy] .logout-link .mud-nav-link-icon-default {
    color: rgba(148, 163, 184, 0.6) !important;
}
[b-w9snzczkhy] .logout-link:hover .mud-nav-link-icon-default {
    color: #EF4444 !important;
}

[b-w9snzczkhy] .version-link {
    opacity: 0.7;
}
[b-w9snzczkhy] .version-link .mud-nav-link-text {
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

[b-w9snzczkhy] .version-badge {
    background-color: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
    animation: pulse-badge-b-w9snzczkhy 2s infinite;
}

@keyframes pulse-badge-b-w9snzczkhy {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* --- COLLAPSED DRAWER (MINI STATE) STYLES --- */

/* Smooth transitions for all elements that change */
[b-w9snzczkhy] .logo-icon, .brand-text[b-w9snzczkhy], .admin-divider-container[b-w9snzczkhy], .admin-divider-text[b-w9snzczkhy], .admin-divider-line[b-w9snzczkhy], .user-profile-card[b-w9snzczkhy], .user-info[b-w9snzczkhy], .version-text[b-w9snzczkhy], [b-w9snzczkhy] .custom-nav-link .mud-nav-link-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsed[b-w9snzczkhy]  .logo-icon,
.collapsed .brand-text[b-w9snzczkhy] {
    opacity: 0;
    width: 0;
    max-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transform: scale(0);
}

.collapsed .logo-wrapper[b-w9snzczkhy] {
    justify-content: center;
    gap: 0;
}

.collapsed[b-w9snzczkhy]  .drawer-toggle-btn {
    margin-left: 0 !important;
}

.collapsed .admin-divider-container[b-w9snzczkhy] {
    padding: 16px 0 8px 0;
    justify-content: center;
}

.collapsed .admin-divider-text[b-w9snzczkhy] {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.collapsed .admin-divider-line[b-w9snzczkhy] {
    width: 24px;
    flex: none;
}

.collapsed .user-profile-card[b-w9snzczkhy] {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

.collapsed .user-info[b-w9snzczkhy] {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.collapsed .version-text[b-w9snzczkhy] {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

/* Hide link text but keep smooth transition by manipulating width/opacity if possible, but MudBlazor's DOM might require display none after transition. We'll use opacity/width/overflow. */
.collapsed[b-w9snzczkhy]  .custom-nav-link .mud-nav-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0 !important;
    white-space: nowrap;
}

/* Center link icons when mini and adjust spacing */
.collapsed[b-w9snzczkhy]  .custom-nav-link {
    margin: 4px auto !important;
    padding: 8px 0 !important;
    justify-content: center !important;
    width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
}

.collapsed[b-w9snzczkhy]  .custom-nav-link .mud-nav-link-icon-default {
    margin-right: 0 !important;
}
