/*
 * MNHS-ALION - Emerald Blue Glassmorphism Stylesheet
 * Theme: Vibrant Emerald & Blue mesh gradients with frosted glass UI
 * Design: Modern, Translucent, Glowing
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Core Colors */
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --cyan-500: #06b6d4;

    --navy-900: #0f172a;
    --navy-800: #1e293b;

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    /* Semantic Mapping */
    --bg-base: var(--navy-900);
    --bg-sidebar: rgba(15, 23, 42, 0.65);
    --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.1);
    --bg-bubble-user: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
    --bg-bubble-bot: rgba(255, 255, 255, 0.08);

    --text-primary: var(--white);
    --text-secondary: var(--white);
    --text-muted: var(--gray-200);
    --text-sidebar: var(--white);
    --text-sidebar-active: var(--white);

    --accent: var(--blue-500);
    --accent-hover: var(--blue-600);

    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.25);
    --border-sidebar: rgba(255, 255, 255, 0.1);

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.4);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-accent {
    color: var(--accent) !important;
}

/* ================================================
   RESET & BASE
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ================================================
   BACKGROUND MESH (EMERALD BLUE GLASSMORPHISM)
   ================================================ */
.glass-bg-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--emerald-500), transparent 70%);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--blue-600), transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--cyan-500), transparent 70%);
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10vw, 5vh) scale(1.1);
    }

    100% {
        transform: translate(-5vw, 15vh) scale(0.9);
    }
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ================================================
   LAYOUT
   ================================================ */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: transparent;
}

/* ================================================
   SIDEBAR (FROSTED GLASS)
   ================================================ */
.chat-sidebar {
    width: 240px;
    min-width: 240px;
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid var(--border-sidebar);
    z-index: 100;
    transition: var(--transition);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
}

.chat-sidebar > .p-3 {
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-header {
    display: none !important;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    letter-spacing: 0.01em;
}

/* New Chat Button */
.btn-new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-new-chat:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-new-chat:active {
    transform: translateY(0);
}

/* Workplace Section */
.workplace-section {
    border-top: 1px solid var(--border-sidebar);
    padding-top: 1rem;
}

.workplace-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    padding: 0.25rem 0.5rem;
}

/* Stunning Glassmorphism Emerald Workplace Buttons */
.btn-workplace {
    display: flex;
    align-items: center;
    text-align: left;
    background: rgba(16, 185, 129, 0.06);
    border: 1.5px solid rgba(52, 211, 153, 0.35); /* Soft emerald green border overlay */
    color: #34d399 !important; /* Stunning visible bold emerald green font */
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-workplace:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #e6fcf5 !important;
    border-color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-workplace:active {
    transform: translateY(0);
}

/* Icons inside glass workplace buttons should match the green font */
.btn-workplace i {
    color: #34d399 !important;
    transition: var(--transition);
}

.btn-workplace:hover i {
    color: #e6fcf5 !important;
}

/* Wipe All Data - Styled as translucent glass red warning */
.btn-workplace.text-danger {
    background: rgba(239, 68, 68, 0.05) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-workplace.text-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #fef2f2 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-workplace.text-danger i {
    color: #f87171 !important;
}

.btn-workplace.text-danger:hover i {
    color: #fef2f2 !important;
}

/* Threads List */
.threads-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.threads-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
    font-weight: 600;
}

.thread-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.thread-item:hover {
    background-color: var(--bg-sidebar-hover);
    border-color: var(--border-light);
}

.thread-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--border-medium);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
}

.thread-details {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.thread-icon {
    color: var(--emerald-500);
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.thread-item.active .thread-icon {
    opacity: 1;
    text-shadow: 0 0 5px var(--emerald-500);
}

.thread-title {
    font-size: 0.875rem;
    color: var(--text-sidebar);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.thread-item.active .thread-title {
    color: var(--white);
    font-weight: 500;
}

.thread-actions {
    display: none;
    gap: 0.2rem;
}

.thread-item:hover .thread-actions {
    display: flex;
}

.thread-action-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    padding: 0.2rem 0.3rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.thread-action-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.thread-action-btn.delete:hover {
    color: #ef4444;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-sidebar);
    flex-shrink: 0;
}

.model-selector-wrapper {
    display: none !important;
}

.model-select {
    max-width: 100%;
    width: 100%;
}

.sidebar-profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sidebar-id-pic {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    flex-shrink: 0;
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.profile-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    text-align: center;
}

.profile-role {
    font-size: 0.52rem;
    font-weight: 600;
    color: var(--emerald-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.05rem;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.settings-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--white);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-glow);
}

/* ================================================
   MAIN VIEWPORT (FROSTED GLASS OVERLAY)
   ================================================ */
.main-chat-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

/* Header */
.viewport-header {
    height: 64px;
    border-bottom: 1px solid var(--border-sidebar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-shrink: 0;
    gap: 0.75rem;
}

.menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Selectors */
.model-selector-wrapper {
    display: none !important;
}

.model-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    white-space: nowrap;
}

.model-select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--white);
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-sans);
    max-width: 200px;
    backdrop-filter: blur(4px);
}

.model-select option {
    background-color: var(--navy-900);
    color: var(--white);
}

.model-select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.model-select:hover {
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.12);
}

/* Header Action Buttons */
.btn-header-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--border-medium);
}

/* ================================================
   MESSAGES AREA
   ================================================ */
.messages-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.75rem;
    scroll-behavior: smooth;
}

.messages-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Message Bubbles */
.message-wrapper {
    display: flex;
    gap: 0.85rem;
    max-width: 88%;
    animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-wrapper.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-wrapper.assistant {
    align-self: flex-start;
}

/* Avatars */
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    box-shadow: var(--shadow-glass);
}

.message-wrapper.user .message-avatar {
    background: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-wrapper.assistant .message-avatar {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--emerald-500);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
}

/* Bubble Body */
.message-bubble {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-xl);
    line-height: 1.65;
    font-size: 0.9375rem;
    word-break: break-word;
    position: relative;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.message-wrapper.user .message-bubble {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(59, 130, 246, 0.85));
    color: var(--white);
    border-top-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-wrapper.assistant .message-bubble {
    background-color: var(--bg-bubble-bot);
    color: var(--white);
    border-top-left-radius: 4px;
    border: 1px solid var(--border-medium);
    padding-bottom: 1.75rem;
}

/* Markdown inside bubbles */
.message-bubble p {
    margin-bottom: 0.6rem;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble h1,
.message-bubble h2,
.message-bubble h3 {
    font-size: 1.05rem;
    margin: 0.85rem 0 0.4rem;
    font-weight: 700;
    color: var(--white);
}

.message-bubble ul,
.message-bubble ol {
    padding-left: 1.35rem;
    margin-bottom: 0.5rem;
}

.message-bubble li {
    margin-bottom: 0.25rem;
}

.message-bubble strong {
    font-weight: 700;
    color: var(--emerald-500);
}

.message-wrapper.user .message-bubble strong {
    color: var(--white);
}

.message-bubble code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--emerald-500);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-wrapper.user .message-bubble code {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.message-bubble pre {
    margin: 0.85rem 0 0;
    border-radius: var(--radius-md);
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.message-bubble pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
    border: none;
    font-size: 0.85em;
}

/* Code Block Header */
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Typing Caret */
.typing-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--emerald-500);
    margin-left: 3px;
    vertical-align: middle;
    border-radius: 1px;
    animation: blink 0.85s step-start infinite;
    box-shadow: 0 0 5px var(--emerald-500);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Tables in bubbles */
.message-bubble table {
    width: 100%;
    margin: 0.85rem 0;
    border-collapse: collapse;
    font-size: 0.9em;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.message-bubble th,
.message-bubble td {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-light);
    text-align: left;
}

.message-bubble th {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--white);
}

.message-bubble tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ================================================
   EMPTY / WELCOME STATE
   ================================================ */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4vh;
}

.empty-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(59, 130, 246, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: translateY(-8px);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    }
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.empty-subtitle {
    max-width: 440px;
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Suggestion Cards */
.empty-suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 580px;
    width: 100%;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suggestion-card:hover {
    border-color: var(--emerald-500);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.suggestion-icon {
    font-size: 1.15rem;
    color: var(--emerald-500);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.suggestion-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.suggestion-desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.4;
}

/* ================================================
   CHAT FOOTER (FROSTED GLASS)
   ================================================ */
.chat-footer {
    padding: 1rem 1.75rem 1.5rem;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-sidebar);
    flex-shrink: 0;
    z-index: 10;
}

.input-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 0.5rem 0.65rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glass);
}

.input-container:focus-within {
    border-color: var(--emerald-500);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), var(--shadow-glow);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.9375rem;
    padding: 0.45rem 0.35rem;
    resize: none;
    max-height: 180px;
    min-height: 24px;
    font-family: var(--font-sans);
    line-height: 1.6;
}

.chat-input::placeholder {
    color: var(--gray-400);
}

.btn-prompt-template {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #d1fae5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    height: 36px;
    padding: 0 0.8rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-bottom: 1px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-prompt-template:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
    transform: translateY(-1px);
}

/* Voice Input Mic Button */
.btn-voice-input {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-bottom: 1px;
}

/* Image Upload / Gallery Button - Glassmorphism */
.btn-upload-input {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.05rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-bottom: 1px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
}

.btn-upload-input i {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5));
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-voice-input:hover {
    color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.1);
}

.btn-upload-input:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35), 0 0 12px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255,255,255,0.12);
    transform: scale(1.08);
}

.btn-upload-input:hover i {
    background: linear-gradient(135deg, #c4b5fd 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 7px rgba(167, 139, 250, 0.75));
}

.btn-voice-input.recording {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: pulseRecording 1.4s ease-in-out infinite;
}

@keyframes pulseRecording {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    }
}

/* Send Button */
.btn-send {
    background: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    margin-bottom: 1px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-send:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.input-info-text {
    text-align: center;
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

/* ================================================
   VOICE OUTPUT BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-speak-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 12px;
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-speak-text {
    opacity: 1;
}

.btn-speak-text:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-500);
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-speak-text.playing {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.2) !important;
    opacity: 1 !important;
    animation: pulseRecording 1.2s ease-in-out infinite;
}

/* ================================================
   PDF DOWNLOAD BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-download-pdf {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 140px; /* PDF beside PPT */
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-download-pdf {
    opacity: 1;
}

.btn-download-pdf:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* ================================================
   EXCEL DOWNLOAD BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-download-excel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 44px; /* Excel is rightmost after Speak */
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-download-excel {
    opacity: 1;
}

.btn-download-excel:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

/* ================================================
   WORD DOWNLOAD BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-download-word {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 76px; /* Word between Excel and PPT */
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-download-word {
    opacity: 1;
}

.btn-download-word:hover {
    background: rgba(59, 130, 246, 0.15); /* Blue for word */
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* ================================================
   PPT DOWNLOAD BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-download-ppt {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 108px; /* PPT directly beside PDF */
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-download-ppt {
    opacity: 1;
}

.btn-download-ppt:hover {
    background: rgba(234, 88, 12, 0.15);
    color: #fdba74;
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.25);
}

/* ================================================
   MARKDOWN DOWNLOAD BUTTON (INSIDE BOT BUBBLES)
   ================================================ */
.btn-download-md {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--gray-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    bottom: 8px;
    right: 172px; /* MD furthest left */
    opacity: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.message-wrapper.assistant:hover .btn-download-md {
    opacity: 1;
}

.btn-download-md:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* ================================================
   MARKDOWN RESPONSE HEADER (COPY BUTTON)
   ================================================ */
.md-response-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -0.85rem -1.15rem 0.75rem;
    backdrop-filter: blur(4px);
}

.md-response-header .btn-download-pdf,
.md-response-header .btn-download-word {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-300);
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.md-response-header .btn-download-pdf:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.md-response-header .btn-download-word:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.btn-copy-markdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-300);
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.btn-copy-markdown:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--emerald-500);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.btn-copy-markdown.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--emerald-500);
}

.ws-btn-icon.text-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.workspace-btn:hover .ws-btn-icon.text-danger { background: rgba(239, 68, 68, 0.3); color: #fff; }


/* ================================================
   MODALS (GLASSMORPHISM)
   ================================================ */
.modal-content {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass), 0 0 40px rgba(16, 185, 129, 0.15);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ================================================
   FORMS (inside modals)
   ================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-300);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--emerald-500);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-text {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.form-range::-webkit-slider-thumb {
    background: var(--emerald-500);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
}

.form-check-input:checked {
    background-color: var(--emerald-500);
    border-color: var(--emerald-500);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* ================================================
   BUTTONS (bootstrap override)
   ================================================ */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-medium);
    color: var(--white);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--border-strong);
    color: var(--white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-outline-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-outline-danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: #f87171;
}

/* ================================================
   HEADER UTILITY BUTTONS (clear / export)
   ================================================ */
.btn-outline-secondary.border-0.text-secondary {
    color: var(--gray-400) !important;
    border-radius: var(--radius-md) !important;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-outline-secondary.border-0.text-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

@media (min-width: 992px) {
    .chat-sidebar.collapsed {
        margin-left: -240px;
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .chat-sidebar {
        position: absolute;
        left: -240px;
        top: 0;
        bottom: 0;
        box-shadow: var(--shadow-glass);
    }

    .chat-sidebar.open {
        left: 0;
    }

    .model-label {
        display: none !important;
    }

    .model-select {
        max-width: 140px;
        font-size: 0.8rem;
    }

    .messages-scroller {
        padding: 1.25rem 1rem;
    }

    .empty-suggestions {
        grid-template-columns: 1fr;
    }

    .chat-footer {
        padding: 0.75rem 1rem 1rem;
    }

    .viewport-header {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .empty-title {
        font-size: 1.35rem;
    }

    .message-wrapper {
        max-width: 96%;
    }
}

/* Glassmorphic Dropdown Menu */
.glass-dropdown {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-glass) !important;
    padding: 0.5rem !important;
}

.glass-dropdown .dropdown-item {
    color: var(--gray-300) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.875rem !important;
    transition: var(--transition) !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}

.glass-dropdown .dropdown-item:hover {
    background-color: var(--bg-sidebar-hover) !important;
    color: var(--white) !important;
}

.glass-dropdown .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

/* Pulse Animation for Conversations List */
@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse-highlight {
    animation: highlight-pulse 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Reference Context Panel Styles */
.reference-panel {
    border-top: 1px solid var(--border-sidebar);
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.reference-panel .panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.status-badge.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    border: 1px solid var(--border-light);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-500);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

/* Translucent Drag & Drop Zone */
.reference-dropzone {
    position: relative;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-top: 0.5rem;

    /* 1x1 aspect ratio square styling */
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-dropzone:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--emerald-500);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.reference-dropzone.dragover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--emerald-500);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    width: 100%;
    height: 100%;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reference-dropzone:hover .icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.upload-glow-icon {
    font-size: 1.8rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.reference-dropzone:hover .upload-glow-icon {
    color: var(--emerald-500);
    transform: translateY(-1px);
}

.dropzone-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
}

.dropzone-sub {
    font-size: 0.68rem;
    color: var(--gray-400);
}

/* Premium File Card */
.file-details-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glass);
}

.file-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* File Formats Colors */
.file-icon-box.pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.file-icon-box.word {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.file-icon-box.csv {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.file-icon-box.text {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

.file-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
}

.file-meta {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-top: 0.05rem;
}

.btn-clear-ref {
    background: transparent;
    border: none;
    color: var(--gray-400);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-ref:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ef4444;
}

/* Chat Attachment Preview Chip (Input Box shortcut area) */
.chat-attachment-outer-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.chat-attachment-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glass);
    max-width: fit-content;
}

.chat-attachment-preview .attachment-icon {
    font-size: 0.9rem;
}

.chat-attachment-preview .attachment-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-attachment-preview .btn-remove-attachment {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-attachment-preview .btn-remove-attachment:hover {
    color: #ef4444;
}

/* ================================================
   SEARCHABLE MODEL DROPDOWN
   ================================================ */
.model-search-dropdown {
    position: relative;
    width: 100%;
}

.model-search-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    outline: none;
    gap: 0.5rem;
}

.model-search-selected:hover,
.model-search-selected:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.model-search-selected span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-search-arrow {
    font-size: 0.7rem;
    color: var(--gray-400);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.model-search-dropdown.open .model-search-arrow {
    transform: rotate(180deg);
}

.model-search-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
    z-index: 9999;
    overflow: hidden;
    animation: dropdownFadeIn 0.18s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.model-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.model-search-input-wrap i {
    color: var(--gray-400);
    font-size: 0.78rem;
    flex-shrink: 0;
}

#model-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    width: 100%;
    font-family: var(--font-sans);
}

#model-search-input::placeholder {
    color: var(--gray-500);
}

.model-search-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 220px;
    overflow-y: auto;
}

.model-search-list::-webkit-scrollbar { width: 4px; }
.model-search-list::-webkit-scrollbar-track { background: transparent; }
.model-search-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.model-search-list li {
    padding: 0.42rem 0.85rem;
    font-size: 0.81rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.model-search-list li:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--white);
}

.model-search-list li.active-model {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-500);
    font-weight: 600;
}

.model-search-list li.no-results {
    color: var(--gray-500);
    cursor: default;
    font-style: italic;
}

.model-search-list li.no-results:hover {
    background: transparent;
    color: var(--gray-500);
}

.model-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.4rem;
}

/* ================================================
   WORKSPACE PANEL
   ================================================ */

.workspace-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Collapsible header row */
.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.workspace-header:hover {
    background: rgba(59, 130, 246, 0.14);
}

.workspace-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.85);
    user-select: none;
}

.workspace-chevron {
    font-size: 0.65rem;
    color: rgba(147, 197, 253, 0.6);
    transition: transform 0.25s ease;
}

.workspace-chevron.collapsed {
    transform: rotate(-180deg);
}

/* Collapsible body */
.workspace-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0.75rem;
    transition: var(--transition);
}

.workspace-body.collapsed {
    display: none;
}

/* Divider */
.workspace-divider {
    height: 1px;
    background: rgba(59, 130, 246, 0.15);
    margin: 0.1rem 0;
}

/* ── Individual workspace glass button ── */
.workspace-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 1rem;
    gap: 0.8rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.855rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.workspace-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.workspace-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Icon column */
.ws-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    transition: background 0.2s ease, color 0.2s ease;
}

.workspace-btn:hover .ws-btn-icon {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

/* Label */
.ws-btn-label {
    flex: 1;
    line-height: 1.2;
    white-space: nowrap;
}

/* ── Active Chats — primary accent row ── */
.workspace-btn.active-chats {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
}

.workspace-btn.active-chats .ws-btn-icon {
    background: rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.workspace-btn.active-chats:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

/* ── Icon accent overrides ── */
.ws-btn-icon.text-emerald { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.workspace-btn:hover .ws-btn-icon.text-emerald { background: rgba(16, 185, 129, 0.3); color: #fff; }

.ws-btn-icon.text-cyan { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.workspace-btn:hover .ws-btn-icon.text-cyan { background: rgba(6, 182, 212, 0.3); color: #fff; }

.ws-btn-icon.text-amber { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.workspace-btn:hover .ws-btn-icon.text-amber { background: rgba(245, 158, 11, 0.3); color: #fff; }

/* ── Danger / Wipe button ── */
.workspace-btn.danger {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.workspace-btn.danger .ws-btn-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.workspace-btn.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.workspace-btn.danger:hover .ws-btn-icon {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
}






/* Pulse animation for Active Chats click feedback */
@keyframes pulseHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.threads-container.pulse-highlight {
    animation: pulseHighlight 1s ease 2;
    border-radius: var(--radius-md);
}

/* ================================================
   STATUS BADGE (PILL/TAG)
   ================================================ */

.status-badge-container {
    background: rgba(75, 116, 189, 0.08); /* Soft blue rectangular background */
    border: 1px solid rgba(75, 116, 189, 0.15);
    border-radius: var(--radius-md); /* Soft blue rectangular background behind the badge */
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px; /* Spacing: Generous padding around text and indicator */
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(75, 116, 189, 0.22), rgba(74, 115, 188, 0.32)); /* Semi-transparent medium blue (#4B74BD to #4A73BC) */
    border: 1px solid rgba(75, 116, 189, 0.35);
    border-radius: var(--radius-full); /* Shape: Rounded pill (capsule) with fully rounded corners */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.15); /* Soft inner shadow & slight glow/soft shadow */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #18C37E; /* Circular green dot */
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px #18C37E; /* Status Indicator glow */
    display: inline-block;
    flex-shrink: 0;
}

.status-text {
    color: #FFFFFF; /* White (#FFFFFF) */
    font-family: var(--font-sans); /* Inter or system fonts */
    font-size: 0.82rem;
    font-weight: 600; /* Weight: SemiBold/Bold (600-700) */
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased; /* Smooth anti-aliased edges */
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

/* Start New Chat Header Button */
.btn-start-new-chat-header {
    background: rgba(6, 196, 202, 0.08);
    border: 1.5px solid rgba(6, 196, 202, 0.35);
    color: #06C4CA;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.825rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(6, 196, 202, 0.1);
}

.btn-start-new-chat-header:hover {
    background: rgba(6, 196, 202, 0.22);
    border-color: rgba(6, 196, 202, 0.6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(6, 196, 202, 0.35);
    transform: translateY(-1px);
}

.btn-start-new-chat-header i {
    font-size: 0.85rem;
    color: #06C4CA;
    transition: var(--transition);
}

.btn-start-new-chat-header:hover i {
    color: #ffffff;
}


/* General slides prompt dropdown */
.header-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    z-index: 1100;
}

.btn-start-new-chat-header {
    text-decoration: none;
}

.header-dropdown-wrapper .btn-start-new-chat-header {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.header-dropdown-wrapper .dropdown-caret {
    font-size: 0.7rem;
    margin-left: 0.1rem;
    transition: transform 0.2s ease;
}

.header-dropdown-wrapper.open .dropdown-caret {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 340px;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.6rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.dropdown-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-left: 0.15rem;
}

.dropdown-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.header-dropdown-wrapper.open .header-dropdown-menu,
.header-dropdown-menu.open {
    display: flex;
}

.dropdown-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.55);
    color: #f8fafc;
    text-align: left;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    width: 100%;
    min-width: 1.5in;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.dropdown-item:hover,
.dropdown-item:focus {
    transform: translateY(-1px);
    outline: none;
}

.dropdown-item.copied {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.16)) !important;
    border-color: rgba(16, 185, 129, 0.9) !important;
    color: #ecfdf5 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.28) !important;
}

.dropdown-item.copied .text-success,
.dropdown-item.copied i {
    color: #bbf7d0 !important;
}

.dropdown-item[data-style="Educational Infographic"] { background: rgba(72, 179, 255, 0.18); border-color: rgba(72, 179, 255, 0.35); }
.dropdown-item[data-style="Character Infographic"] { background: rgba(190, 59, 161, 0.18); border-color: rgba(190, 59, 161, 0.35); }
.dropdown-item[data-style="Scrapbook Infographic"] { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.35); }
.dropdown-item[data-style="Educational Comic Style"] { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.35); }
.dropdown-item[data-style="Anime Comic Style"] { background: rgba(125, 211, 252, 0.18); border-color: rgba(125, 211, 252, 0.35); }
.dropdown-item[data-style="Chibi Science Comic"] { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.35); }
.dropdown-item[data-style="Sticker Scrapbook Infographic"] { background: rgba(249, 115, 22, 0.18); border-color: rgba(249, 115, 22, 0.35); }
.dropdown-item[data-style="Digital Notebook Infographic"] { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.35); }
.dropdown-item[data-style="Bullet Journal Infographic"] { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); }
.dropdown-item[data-style="Chalkboard Classroom Infographic"] { background: rgba(244, 63, 94, 0.18); border-color: rgba(244, 63, 94, 0.35); }
.dropdown-item[data-style="Vintage & Heritage Infographic"] { background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.35); }
.dropdown-item[data-style="Art & Design Movement Infographic"] { background: rgba(168, 85, 247, 0.25); border-color: rgba(168, 85, 247, 0.45); }
.dropdown-item[data-style="Notebook Infographic"] { background: rgba(244, 114, 182, 0.18); border-color: rgba(244, 114, 182, 0.35); }
.dropdown-item[data-style="Bubblegum"] { background: rgba(236, 72, 153, 0.18); border-color: rgba(236, 72, 153, 0.35); }
.dropdown-item[data-style="Sorbet"] { background: rgba(251, 146, 60, 0.18); border-color: rgba(251, 146, 60, 0.35); }
.dropdown-item[data-style="Lookbook"] { background: linear-gradient(135deg, rgba(244, 114, 182, 0.22), rgba(168, 85, 247, 0.2)); border-color: rgba(244, 114, 182, 0.7); color: #fff1f7; }
.dropdown-item[data-style="Dark Academia"] { background: linear-gradient(135deg, rgba(120, 113, 108, 0.38), rgba(71, 85, 105, 0.24)); border-color: rgba(148, 163, 184, 0.7); color: #f8fafc; }
.dropdown-item[data-style="Spark"] { background: rgba(250, 204, 21, 0.18); border-color: rgba(250, 204, 21, 0.35); }
.dropdown-item[data-style="Anime Manga"] { background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), rgba(251, 146, 60, 0.22)); border-color: rgba(244, 114, 182, 0.7); color: #fff5f8; }
.dropdown-item[data-style="Studio Ghibli Inspired"] { background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(45, 212, 191, 0.22)); border-color: rgba(34, 197, 94, 0.7); color: #ecfdf5; }
.dropdown-item[data-style="Comic Book"] { background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(59, 130, 246, 0.2)); border-color: rgba(239, 68, 68, 0.72); color: #fff1f2; }
.dropdown-item[data-style="Comic Strip"] { background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(59, 130, 246, 0.2)); border-color: rgba(250, 204, 21, 0.72); color: #fffbeb; }
.dropdown-item[data-style="Pop Art"] { background: linear-gradient(135deg, rgba(236, 72, 153, 0.26), rgba(34, 211, 238, 0.2)); border-color: rgba(236, 72, 153, 0.75); color: #fff1f7; }
.dropdown-item[data-style="Storybook"] { background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(250, 204, 21, 0.18)); border-color: rgba(168, 85, 247, 0.74); color: #f8f5ff; }
.dropdown-item[data-style="Halloween"] { background: rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.35); }
.dropdown-item[data-style="Scrapbook"] { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.35); }
.dropdown-item[data-style="Art Deco"] { background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(244, 114, 182, 0.2)); border-color: rgba(250, 204, 21, 0.7); color: #fff8d6; }
.dropdown-item[data-style="Field Notes"] { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.35); }
.dropdown-item[data-style="Expedition"] { background: rgba(163, 59, 46, 0.18); border-color: rgba(163, 59, 46, 0.35); }
.dropdown-item[data-style="EY Style"] { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.18)); border-color: rgba(99, 102, 241, 0.7); color: #eef2ff; }
.dropdown-item[data-style="Ledger"] { background: rgba(199, 81, 70, 0.18); border-color: rgba(199, 81, 70, 0.35); }
.dropdown-item[data-style="Chalkboard"] { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.35); }
.dropdown-item[data-style="Collage"] { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.35); }
.dropdown-item[data-style="Quiz Night"] { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); }
.dropdown-item[data-style="Arcade"] { background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(168, 85, 247, 0.18)); border-color: rgba(34, 211, 238, 0.65); color: #ecfeff; }
.dropdown-item[data-style="Outrun"] { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.18)); border-color: rgba(129, 140, 248, 0.7); color: #eef2ff; }
.dropdown-item[data-style="Circuit"] { background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.18)); border-color: rgba(52, 211, 153, 0.7); color: #ecfdf5; }
.dropdown-item[data-style="LOOKBOOK"], .dropdown-item[data-style="EY STYLE"], .dropdown-item[data-style="DARK ACADEMIA"], .dropdown-item[data-style="ART DECO"], .dropdown-item[data-style="CIRCUIT"], .dropdown-item[data-style="OUTRUN"], .dropdown-item[data-style="ARCADE"], .dropdown-item[data-style="QUIZ NIGHT"], .dropdown-item[data-style="CHALKBOARD"], .dropdown-item[data-style="LEDGER"], .dropdown-item[data-style="EXPEDITION"], .dropdown-item[data-style="FIELD NOTES"], .dropdown-item[data-style="SCRAPBOOK"], .dropdown-item[data-style="SPARK"], .dropdown-item[data-style="SORBET"], .dropdown-item[data-style="COLLAGE"], .dropdown-item[data-style="Anime Manga"], .dropdown-item[data-style="Anime Comic"], .dropdown-item[data-style="Chibi Science Comic"], .dropdown-item[data-style="McKinsey Consulting Style"], .dropdown-item[data-style="Studio Ghibli Inspired"], .dropdown-item[data-style="Comic Book"], .dropdown-item[data-style="Comic Strip"], .dropdown-item[data-style="Pop Art"], .dropdown-item[data-style="Storybook"] {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(167, 139, 250, 0.55);
    color: #f8fafc;
}
.dropdown-item[data-style="LOOKBOOK"] { background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(34, 197, 94, 0.18)); border-color: rgba(16, 185, 129, 0.75); color: #ecfdf5; }
.dropdown-item[data-style="EY STYLE"] { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.18)); border-color: rgba(99, 102, 241, 0.7); color: #eef2ff; }
.dropdown-item[data-style="DARK ACADEMIA"] { background: linear-gradient(135deg, rgba(120, 113, 108, 0.38), rgba(71, 85, 105, 0.24)); border-color: rgba(148, 163, 184, 0.7); color: #f8fafc; }
.dropdown-item[data-style="ART DECO"] { background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(244, 114, 182, 0.2)); border-color: rgba(250, 204, 21, 0.7); color: #fff8d6; }
.dropdown-item[data-style="CIRCUIT"] { background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.18)); border-color: rgba(52, 211, 153, 0.7); color: #ecfdf5; }
.dropdown-item[data-style="OUTRUN"] { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.18)); border-color: rgba(129, 140, 248, 0.7); color: #eef2ff; }
.dropdown-item[data-style="ARCADE"] { background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(168, 85, 247, 0.18)); border-color: rgba(34, 211, 238, 0.65); color: #ecfeff; }
.dropdown-item[data-style="QUIZ NIGHT"] { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.55); color: #eff6ff; }
.dropdown-item[data-style="CHALKBOARD"] { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.5); color: #ecfdf5; }
.dropdown-item[data-style="LEDGER"] { background: rgba(199, 81, 70, 0.18); border-color: rgba(199, 81, 70, 0.5); color: #fff1f2; }
.dropdown-item[data-style="EXPEDITION"] { background: rgba(163, 59, 46, 0.18); border-color: rgba(163, 59, 46, 0.5); color: #fff7ed; }
.dropdown-item[data-style="FIELD NOTES"] { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #ecfdf5; }
.dropdown-item[data-style="SCRAPBOOK"] { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.5); color: #fff7ed; }
.dropdown-item[data-style="SPARK"] { background: rgba(250, 204, 21, 0.16); border-color: rgba(250, 204, 21, 0.6); color: #fefce8; }
.dropdown-item[data-style="SORBET"] { background: rgba(251, 146, 60, 0.18); border-color: rgba(251, 146, 60, 0.5); color: #fff7ed; }
.dropdown-item[data-style="COLLAGE"] { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.6); color: #f5f3ff; }
.dropdown-item[data-style="Anime Manga"] { background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), rgba(251, 146, 60, 0.22)); border-color: rgba(244, 114, 182, 0.7); color: #fff5f8; }
.dropdown-item[data-style="Anime Comic"] { background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(168, 85, 247, 0.22)); border-color: rgba(96, 165, 250, 0.75); color: #eff6ff; }
.dropdown-item[data-style="Chibi Science Comic"] { background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(34, 211, 238, 0.18)); border-color: rgba(168, 85, 247, 0.75); color: #f5f3ff; }
.dropdown-item[data-style="McKinsey Consulting Style"] { background: linear-gradient(135deg, rgba(71, 85, 105, 0.28), rgba(148, 163, 184, 0.2)); border-color: rgba(148, 163, 184, 0.75); color: #f8fafc; }
.dropdown-item[data-style="Studio Ghibli Inspired"] { background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(45, 212, 191, 0.22)); border-color: rgba(34, 197, 94, 0.7); color: #ecfdf5; }
.dropdown-item[data-style="Comic Book"] { background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(59, 130, 246, 0.2)); border-color: rgba(239, 68, 68, 0.72); color: #fff1f2; }
.dropdown-item[data-style="Comic Strip"] { background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(59, 130, 246, 0.2)); border-color: rgba(250, 204, 21, 0.72); color: #fffbeb; }
.dropdown-item[data-style="Pop Art"] { background: linear-gradient(135deg, rgba(236, 72, 153, 0.26), rgba(34, 211, 238, 0.2)); border-color: rgba(236, 72, 153, 0.75); color: #fff1f7; }
.dropdown-item[data-style="Storybook"] { background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(250, 204, 21, 0.18)); border-color: rgba(168, 85, 247, 0.74); color: #f8f5ff; }
.dropdown-item[data-style="LOOKBOOK"]:hover, .dropdown-item[data-style="EY STYLE"]:hover, .dropdown-item[data-style="DARK ACADEMIA"]:hover, .dropdown-item[data-style="ART DECO"]:hover, .dropdown-item[data-style="CIRCUIT"]:hover, .dropdown-item[data-style="OUTRUN"]:hover, .dropdown-item[data-style="ARCADE"]:hover, .dropdown-item[data-style="QUIZ NIGHT"]:hover, .dropdown-item[data-style="CHALKBOARD"]:hover, .dropdown-item[data-style="LEDGER"]:hover, .dropdown-item[data-style="EXPEDITION"]:hover, .dropdown-item[data-style="FIELD NOTES"]:hover, .dropdown-item[data-style="SCRAPBOOK"]:hover, .dropdown-item[data-style="SPARK"]:hover, .dropdown-item[data-style="SORBET"]:hover, .dropdown-item[data-style="COLLAGE"]:hover {
    filter: brightness(1.06);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

/* PPT PROMPT Header Button */
.btn-ppt-prompt-header {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.btn-ppt-prompt-header:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.btn-ppt-prompt-header i {
    color: #c084fc;
}

.btn-ppt-prompt-header:hover i {
    color: #ffffff;
}

.btn-ppt-prompt-header.copied {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
    color: #34d399 !important;
}

.btn-ppt-claude-header {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.btn-ppt-claude-header:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

.btn-ppt-claude-header i {
    color: #f472b6;
}

.btn-ppt-claude-header:hover i {
    color: #ffffff;
}

#btn-copy-ppt-claude-prompt-2 {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

#btn-copy-ppt-claude-prompt-2:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

#btn-copy-ppt-claude-prompt-2 i {
    color: #34d399;
}

#btn-copy-ppt-claude-prompt-2:hover i {
    color: #ffffff;
}

#btn-copy-ppt-claude-prompt-2.copied {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
    color: #34d399 !important;
}

/* PPT GEMINI PROMPT Header Button */
.btn-ppt-gemini-header {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.btn-ppt-gemini-header:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

.btn-ppt-gemini-header i {
    color: #f472b6;
}

.btn-ppt-gemini-header:hover i {
    color: #ffffff;
}

.btn-ppt-gemini-header.copied {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
    color: #34d399 !important;
}

/* DLP TOOL Button (Orange Theme) */
#btn-dlp-tool,
.btn-dlp-tool-header {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
    color: #f97316;
}

#btn-dlp-tool:hover,
.btn-dlp-tool-header:hover {
    background: rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.75);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
}

#btn-dlp-tool .ws-btn-icon,
.btn-dlp-tool-header i {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

#btn-dlp-tool:hover .ws-btn-icon,
.btn-dlp-tool-header:hover i {
    background: rgba(249, 115, 22, 0.45);
    color: #ffffff;
}

/* CANVA PROMPT Header Button */
.btn-canva-prompt-header {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.btn-canva-prompt-header:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
}

.btn-canva-prompt-header i {
    color: #38bdf8;
}

.btn-canva-prompt-header:hover i {
    color: #ffffff;
}

.btn-canva-prompt-header.copied {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
    color: #34d399 !important;
}

.toast-notification {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1300;
    min-width: 200px;
    max-width: 320px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(12px);
}

/* Start New Chat Footer Button (Beside 6-inch Input Bar) */
.btn-start-new-chat-footer {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
    height: 48px;
}

.btn-start-new-chat-footer:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(16, 185, 129, 0.7);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-start-new-chat-footer i {
    color: #34d399;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-start-new-chat-footer:hover i {
    color: #ffffff;
}



    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a78bfa;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
}

.nlm-panel-header i { font-size: 0.8rem; }

/* Prompt List */
.nlm-prompt-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

.nlm-prompt-list::-webkit-scrollbar { width: 4px; }
.nlm-prompt-list::-webkit-scrollbar-track { background: transparent; }
.nlm-prompt-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 4px;
}

.nlm-prompt-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    border-left: 3px solid transparent;
}

.nlm-prompt-list li:hover {
    background: rgba(139, 92, 246, 0.18);
    border-left-color: #8b5cf6;
}

.nlm-style-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.04em;
}

.nlm-prompt-list li:hover .nlm-style-name { color: #ffffff; }

.nlm-style-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    opacity: 0.75;
    transition: opacity 0.18s;
}

.nlm-prompt-list li:hover .nlm-style-icon { opacity: 1; }

.nlm-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.15);
    margin: 4px 12px;
    pointer-events: none;
}

.nlm-group-label {
    padding: 8px 16px 4px !important;
    cursor: default !important;
    border-left: none !important;
    pointer-events: none;
}

.nlm-group-label:hover { background: transparent !important; }

.nlm-group-label span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7c3aed;
}

/* ================================================
   SLIDES PROMPT - NOTEBOOKLM STYLE PRESETS
   ================================================ */
.slides-prompt-dropdown {
    position: relative;
    width: 100%;
}

.slides-prompt-trigger .dropdown-caret {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    color: rgba(147, 197, 253, 0.7);
}

.slides-prompt-dropdown.open .slides-prompt-trigger .dropdown-caret {
    transform: rotate(180deg);
    color: #38bdf8;
}

.slides-prompt-dropdown.open .slides-prompt-trigger {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.slides-prompt-dropdown-menu {
    display: none;
    background: #080f1e;
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    border-radius: 16px;
    padding: 14px 10px 12px;
    margin-top: 6px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.slides-prompt-dropdown.open .slides-prompt-dropdown-menu {
    display: block !important;
    animation: nlmDropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nlmDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presets-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px 2px;
}

.presets-search-box {
    position: relative;
    margin-bottom: 9px;
    padding: 0 2px;
}

.presets-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #64748b;
    pointer-events: none;
}

.presets-search-box input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    padding: 6px 10px 6px 28px;
    font-size: 11px;
    color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.presets-search-box input:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.presets-search-box input::placeholder {
    color: #475569;
}

.presets-card-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    font-family: var(--font-sans);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.presets-pill-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 3px;
    scroll-behavior: smooth;
}

.presets-pill-list::-webkit-scrollbar {
    width: 4px;
}
.presets-pill-list::-webkit-scrollbar-track {
    background: transparent;
}
.presets-pill-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.presets-pill-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Individual Stadium / Pill Buttons (Exact Match to Screenshot) */
.preset-pill-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 9.5px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    text-align: left;
    outline: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preset-pill-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
    filter: brightness(1.18);
}

.preset-pill-btn:active {
    transform: scale(0.97);
}

.preset-pill-btn.copied {
    background: #064e3b !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.9), inset 0 0 10px rgba(16, 185, 129, 0.4) !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

/* ================================================
   GLOWING WORKSPACE & AI BUTTONS
   ================================================ */
#btn-slides-prompt {
    background: rgba(168, 85, 247, 0.16) !important;
    border: 1.5px solid #a855f7 !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.45), inset 0 0 8px rgba(168, 85, 247, 0.18) !important;
    color: #ffffff !important;
}
#btn-slides-prompt:hover {
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.75), inset 0 0 12px rgba(168, 85, 247, 0.3) !important;
    border-color: #c084fc !important;
    transform: translateY(-2px);
}

#btn-notebooklm {
    border: 1.5px solid #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.45), inset 0 0 8px rgba(59, 130, 246, 0.15) !important;
}
#btn-notebooklm:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.75), inset 0 0 12px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-2px);
}

#btn-canva {
    border: 1.5px solid #00c4cc !important;
    background: rgba(0, 196, 204, 0.12) !important;
    box-shadow: 0 0 14px rgba(0, 196, 204, 0.45), inset 0 0 8px rgba(0, 196, 204, 0.15) !important;
}
#btn-canva:hover {
    border-color: #22d3ee !important;
    box-shadow: 0 0 24px rgba(0, 196, 204, 0.75), inset 0 0 12px rgba(0, 196, 204, 0.25) !important;
    transform: translateY(-2px);
}

#btn-claude {
    border: 1.5px solid #d97706 !important;
    background: rgba(217, 119, 6, 0.12) !important;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.45), inset 0 0 8px rgba(217, 119, 6, 0.15) !important;
}
#btn-claude:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 0 24px rgba(217, 119, 6, 0.75), inset 0 0 12px rgba(217, 119, 6, 0.25) !important;
    transform: translateY(-2px);
}

#btn-gemini {
    border: 1.5px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.12) !important;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45), inset 0 0 8px rgba(37, 99, 235, 0.15) !important;
}
#btn-gemini:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.75), inset 0 0 12px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-2px);
}

#btn-gamma {
    border: 1.5px solid #ec4899 !important;
    background: rgba(236, 72, 153, 0.12) !important;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.45), inset 0 0 8px rgba(236, 72, 153, 0.15) !important;
}
#btn-gamma:hover {
    border-color: #f472b6 !important;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.75), inset 0 0 12px rgba(236, 72, 153, 0.25) !important;
    transform: translateY(-2px);
}

/* ================================================
   GLOWING PRESET PILL BUTTONS (RESTING & HOVER)
   ================================================ */
.pill-anime-manga {
    background: #331d27;
    border: 1.5px solid #b8326a;
    box-shadow: 0 0 12px rgba(184, 50, 106, 0.4), inset 0 0 6px rgba(184, 50, 106, 0.2);
}
.pill-anime-manga:hover {
    box-shadow: 0 0 22px rgba(217, 70, 239, 0.75), inset 0 0 10px rgba(217, 70, 239, 0.35);
    border-color: #f0abfc;
}

.pill-anime-comic {
    background: #17203b;
    border: 1.5px solid #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), inset 0 0 6px rgba(59, 130, 246, 0.2);
}
.pill-anime-comic:hover {
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.8), inset 0 0 10px rgba(59, 130, 246, 0.35);
    border-color: #93c5fd;
}

.pill-chibi-science {
    background: #24183a;
    border: 1.5px solid #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4), inset 0 0 6px rgba(139, 92, 246, 0.2);
}
.pill-chibi-science:hover {
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.8), inset 0 0 10px rgba(168, 85, 247, 0.35);
    border-color: #c084fc;
}

.pill-mckinsey {
    background: #1b2636;
    border: 1.5px solid #64748b;
    box-shadow: 0 0 12px rgba(100, 116, 139, 0.4), inset 0 0 6px rgba(100, 116, 139, 0.2);
}
.pill-mckinsey:hover {
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.75), inset 0 0 10px rgba(148, 163, 184, 0.3);
    border-color: #cbd5e1;
}

.pill-ghibli {
    background: #0d2b24;
    border: 1.5px solid #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4), inset 0 0 6px rgba(16, 185, 129, 0.2);
}
.pill-ghibli:hover {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.8), inset 0 0 10px rgba(16, 185, 129, 0.35);
    border-color: #6ee7b7;
}

.pill-comic-book {
    background: #36171d;
    border: 1.5px solid #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), inset 0 0 6px rgba(239, 68, 68, 0.2);
}
.pill-comic-book:hover {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.8), inset 0 0 10px rgba(239, 68, 68, 0.35);
    border-color: #fca5a5;
}

.pill-comic-strip {
    background: #302616;
    border: 1.5px solid #eab308;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4), inset 0 0 6px rgba(234, 179, 8, 0.2);
}
.pill-comic-strip:hover {
    box-shadow: 0 0 22px rgba(234, 179, 8, 0.8), inset 0 0 10px rgba(234, 179, 8, 0.35);
    border-color: #fde047;
}

.pill-pop-art {
    background: #33152b;
    border: 1.5px solid #d946ef;
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.4), inset 0 0 6px rgba(217, 70, 239, 0.2);
}
.pill-pop-art:hover {
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.8), inset 0 0 10px rgba(236, 72, 153, 0.35);
    border-color: #f472b6;
}

.pill-canva {
    background: #092c33;
    border: 1.5px solid #00c4cc;
    box-shadow: 0 0 12px rgba(0, 196, 204, 0.4), inset 0 0 6px rgba(0, 196, 204, 0.2);
}
.pill-canva:hover {
    box-shadow: 0 0 22px rgba(0, 196, 204, 0.8), inset 0 0 10px rgba(0, 196, 204, 0.35);
    border-color: #2dd4bf;
}

.pill-claude {
    background: #2b1812;
    border: 1.5px solid #d97706;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4), inset 0 0 6px rgba(217, 119, 6, 0.2);
}
.pill-claude:hover {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.8), inset 0 0 10px rgba(245, 158, 11, 0.35);
    border-color: #fbbf24;
}

.pill-gemini {
    background: #111f38;
    border: 1.5px solid #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), inset 0 0 6px rgba(59, 130, 246, 0.2);
}
.pill-gemini:hover {
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.8), inset 0 0 10px rgba(59, 130, 246, 0.35);
    border-color: #60a5fa;
}

.pill-gamma {
    background: #2b1430;
    border: 1.5px solid #ec4899;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4), inset 0 0 6px rgba(236, 72, 153, 0.2);
}
.pill-gamma:hover {
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.8), inset 0 0 10px rgba(236, 72, 153, 0.35);
    border-color: #f472b6;
}

.pill-storybook {
    background: #301b13;
    border: 1.5px solid #ea580c;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.4), inset 0 0 6px rgba(234, 88, 12, 0.2);
}
.pill-storybook:hover {
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.8);
    border-color: #fb923c;
}

.pill-sorbet {
    background: #321f18;
    border: 1.5px solid #f97316;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4), inset 0 0 6px rgba(249, 115, 22, 0.2);
}
.pill-sorbet:hover {
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.8);
    border-color: #fdba74;
}

.pill-lookbook {
    background: #2d1630;
    border: 1.5px solid #c026d3;
    box-shadow: 0 0 12px rgba(192, 38, 211, 0.4), inset 0 0 6px rgba(192, 38, 211, 0.2);
}
.pill-lookbook:hover {
    box-shadow: 0 0 22px rgba(217, 70, 239, 0.8);
    border-color: #f0abfc;
}

.pill-dark-academia {
    background: #291a11;
    border: 1.5px solid #b45309;
    box-shadow: 0 0 12px rgba(180, 83, 9, 0.4), inset 0 0 6px rgba(180, 83, 9, 0.2);
}
.pill-dark-academia:hover {
    box-shadow: 0 0 22px rgba(217, 119, 6, 0.8);
    border-color: #f59e0b;
}

.pill-spark {
    background: #33151f;
    border: 1.5px solid #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4), inset 0 0 6px rgba(244, 63, 94, 0.2);
}
.pill-spark:hover {
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.8);
    border-color: #fda4af;
}

.pill-halloween {
    background: #30170d;
    border: 1.5px solid #ea580c;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.4), inset 0 0 6px rgba(234, 88, 12, 0.2);
}
.pill-halloween:hover {
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.8);
    border-color: #fb923c;
}

.pill-scrapbook {
    background: #202b13;
    border: 1.5px solid #65a30d;
    box-shadow: 0 0 12px rgba(101, 163, 13, 0.4), inset 0 0 6px rgba(101, 163, 13, 0.2);
}
.pill-scrapbook:hover {
    box-shadow: 0 0 22px rgba(132, 204, 22, 0.8);
    border-color: #bef264;
}

.pill-art-deco {
    background: #2b2314;
    border: 1.5px solid #ca8a04;
    box-shadow: 0 0 12px rgba(202, 138, 4, 0.4), inset 0 0 6px rgba(202, 138, 4, 0.2);
}
.pill-art-deco:hover {
    box-shadow: 0 0 22px rgba(234, 179, 8, 0.8);
    border-color: #fde047;
}

.pill-field-notes {
    background: #11281c;
    border: 1.5px solid #16a34a;
    box-shadow: 0 0 12px rgba(22, 163, 74, 0.4), inset 0 0 6px rgba(22, 163, 74, 0.2);
}
.pill-field-notes:hover {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.8);
    border-color: #86efac;
}

.pill-expedition {
    background: #0f2436;
    border: 1.5px solid #0284c7;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4), inset 0 0 6px rgba(2, 132, 199, 0.2);
}
.pill-expedition:hover {
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.8);
    border-color: #7dd3fc;
}

.pill-ey {
    background: #302a13;
    border: 1.5px solid #ca8a04;
    box-shadow: 0 0 12px rgba(202, 138, 4, 0.4), inset 0 0 6px rgba(202, 138, 4, 0.2);
}
.pill-ey:hover {
    box-shadow: 0 0 22px rgba(234, 179, 8, 0.8);
    border-color: #fde047;
}

.pill-ledger {
    background: #1c2635;
    border: 1.5px solid #475569;
    box-shadow: 0 0 12px rgba(71, 85, 105, 0.4), inset 0 0 6px rgba(71, 85, 105, 0.2);
}
.pill-ledger:hover {
    box-shadow: 0 0 22px rgba(100, 116, 139, 0.8);
    border-color: #94a3b8;
}

.pill-chalkboard {
    background: #1c2530;
    border: 1.5px solid #94a3b8;
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.4), inset 0 0 6px rgba(148, 163, 184, 0.2);
}
.pill-chalkboard:hover {
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.8);
    border-color: #e2e8f0;
}

.pill-collage {
    background: #261737;
    border: 1.5px solid #9333ea;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.4), inset 0 0 6px rgba(147, 51, 234, 0.2);
}
.pill-collage:hover {
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.8);
    border-color: #d8b4fe;
}

.pill-quiz-night {
    background: #1b1b3b;
    border: 1.5px solid #4f46e5;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4), inset 0 0 6px rgba(79, 70, 229, 0.2);
}
.pill-quiz-night:hover {
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.8);
    border-color: #a5b4fc;
}

.pill-arcade {
    background: #281438;
    border: 1.5px solid #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), inset 0 0 6px rgba(168, 85, 247, 0.2);
}
.pill-arcade:hover {
    box-shadow: 0 0 22px rgba(192, 38, 211, 0.8);
    border-color: #e879f9;
}

.pill-outrun {
    background: #361427;
    border: 1.5px solid #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4), inset 0 0 6px rgba(244, 63, 94, 0.2);
}
.pill-outrun:hover {
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.8);
    border-color: #fda4af;
}

.pill-circuit {
    background: #0c2533;
    border: 1.5px solid #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4), inset 0 0 6px rgba(6, 182, 212, 0.2);
}
.pill-circuit:hover {
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.8);
    border-color: #67e8f9;
}
