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

:root {
    --bg-base: #09090b; /* zinc-950 */
    --bg-surface: #18181b; /* zinc-900 */
    --bg-surface-hover: #27272a; /* zinc-800 */
    --text-primary: #fafafa; /* zinc-50 */
    --text-secondary: #a1a1aa; /* zinc-400 */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-color: #6366f1;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(24, 24, 27, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.app-container {
    height: 100vh;
    height: 100dvh;
    background: 
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.15), transparent 50%),
        radial-gradient(circle at center, rgba(139, 92, 246, 0.05), transparent 50%),
        var(--bg-base);
    background-attachment: fixed;
}

/* Glassmorphic Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
}

/* Color Grading Animations */
@keyframes colorGradeShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.new-chat-btn {
    background: transparent;
    border: none;
    color: #ececf1;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    background-size: 200% 200%;
}

.new-chat-btn:hover {
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.15), rgba(14, 165, 233, 0.15), rgba(168, 85, 247, 0.15));
    animation: colorGradeShift 3s ease infinite;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
}

.chat-history-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #ececf1;
    border: none;
    font-size: 0.875rem;
    background-size: 200% 200%;
}

.chat-history-item-container:hover {
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
    animation: colorGradeShift 3s ease infinite;
    color: #ffffff;
}

.chat-history-item-container.active {
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2));
    background-size: 200% 200%;
    animation: colorGradeShift 4s ease infinite;
    color: #ffffff;
    font-weight: 500;
}

.chat-history-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    flex-grow: 1;
    margin-right: 10px;
}

.chat-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.chat-history-item-container:hover .chat-actions {
    opacity: 1;
}

.chat-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 0.375rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-action-btn:hover {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transform: scale(1.1);
}

.chat-action-btn.text-danger:hover {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1);
}

.chat-delete-btn {
    color: var(--text-secondary);
    border: none;
    background: none;
    padding: 0;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.chat-history-item-container:hover .chat-delete-btn {
    opacity: 1;
}

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

.sidebar-action-btn {
    background: transparent;
    color: #ececf1;
    border: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
    background-size: 200% 200%;
}

.sidebar-action-btn:hover {
    background-image: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    animation: colorGradeShift 3s ease infinite;
    color: #ffffff;
}

.sidebar-action-btn i {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

.sidebar-action-btn:hover i.text-danger { color: #ef4444 !important; }
.sidebar-action-btn:hover i.text-info { color: #0ea5e9 !important; }
.sidebar-action-btn:hover i.text-primary { color: #6366f1 !important; }
.sidebar-action-btn:hover i.text-warning { color: #f59e0b !important; }

/* Chat Box */
.chat-box {
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    padding-bottom: 10rem !important;
    -webkit-overflow-scrolling: touch;
}

/* Header */
.header {
    background: transparent;
    border-bottom: none;
}

.header-btn {
    background: transparent;
    color: var(--text-primary);
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 28px !important;
    font-size: 0.75rem !important;
    font-weight: 500;
    padding: 0 10px !important;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: none !important;
}

.header-btn.rounded-circle {
    width: 28px !important;
    padding: 0 !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.header-actions::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
}

/* Bubble UI Message Styling */
.message-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 2rem;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-wrapper.user {
    align-items: flex-end;
}

.message-wrapper.bot {
    align-items: flex-start;
}

.message-content {
    max-width: 850px;
    width: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.message-wrapper.user .message-content {
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.avatar.user {
    display: none; /* Hide user avatar for cleaner bubbles */
}

.avatar.bot {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: #0ea5e9;
    margin-bottom: 0.25rem;
}

.message {
    padding: 0.5rem 1.25rem;
    word-wrap: break-word;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.message-wrapper.user .message {
    background: var(--accent-gradient);
    border-bottom-right-radius: 0.25rem;
    color: white;
}

.message-wrapper.bot .message {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0;
    padding-top: 0;
}

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

/* Markdown styles */
.message table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message table th,
.message table td {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-primary);
}

.message table th {
    background-color: var(--bg-surface-hover);
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.message table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.message table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.message pre {
    background-color: var(--bg-base);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    max-width: 100%;
    margin-top: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-block-wrapper {
    position: relative;
    max-width: 100%;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.code-block-wrapper:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* File Attachments */
.attachment-chip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.attachment-chip .btn-close {
    filter: invert(1);
    font-size: 0.6rem;
    margin-left: 0.5rem;
}

.img-preview {
    max-height: 200px;
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.message.bot code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: #a78bfa;
}

.message.bot pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.message.bot p {
    margin-bottom: 0.75rem;
}

/* Input Area (Floating Glass Pill) */
.input-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--bg-base) 60%, transparent);
    z-index: 20;
}

.input-wrapper {
    background: rgba(20, 20, 25, 0.7) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.input-wrapper:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25), 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(99, 102, 241, 0.2) !important;
}

.input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.8) !important;
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.4), 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(99, 102, 241, 0.4) !important;
    background: rgba(25, 25, 35, 0.85) !important;
}

.attach-btn {
    color: var(--text-secondary);
}
.attach-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

#messageInput {
    color: var(--text-primary);
}

#messageInput::placeholder {
    color: var(--text-secondary);
}

.premium-switch .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Premium Save Button */
.premium-save-btn {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.6rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    background-size: 200% 200%;
}
.premium-save-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    background-position: 100% 0;
    transform: translateY(-1px);
}

/* Premium Custom Dropdown */
.premium-dropdown-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
    user-select: none;
    z-index: 100;
}
.premium-dropdown-wrapper.open {
    z-index: 1000;
}
.premium-dropdown-trigger {
    background: #111111;
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.premium-dropdown-trigger:hover, .premium-dropdown-wrapper.open .premium-dropdown-trigger {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    background: #18181b;
}
.premium-dropdown-trigger .chevron {
    transition: transform 0.3s ease;
    color: #9ca3af;
}
.premium-dropdown-wrapper.open .premium-dropdown-trigger .chevron {
    transform: rotate(180deg);
    color: #6366f1;
}
.premium-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
}
.premium-dropdown-wrapper.open .premium-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Scrollbar styling for dropdown */
.premium-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.premium-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.premium-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.premium-dropdown-option {
    padding: 12px 16px;
    color: #d1d5db;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}
.premium-dropdown-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}
.premium-dropdown-option.selected {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #818cf8;
    font-weight: 600;
    border-left-color: #6366f1;
}

/* Premium File Attachment Chip */
.premium-file-chip {
    display: inline-flex;
    align-items: center;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px 8px 8px;
    transition: all 0.2s ease;
    max-width: 100%;
}
.premium-file-chip:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
}
.file-icon-box {
    background: #ef4444;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 12px;
}
.file-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.file-info-box .file-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.file-info-box .file-type {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 2px;
}

.send-btn {
    background: var(--accent-gradient);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.send-btn i {
    color: white !important;
}

.resize-none {
    resize: none;
    overflow-y: hidden;
}

.transition-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.transition-btn:hover {
    transform: scale(1.05);
}
.transition-btn:active {
    transform: scale(0.95);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 18px;
    height: 18px;
}

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

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.max-w-lg {
    max-width: 800px;
}

/* Glowing text utility */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-icon {
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}

/* Modal Dark Theme */
.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.modal-header {
    border-bottom-color: var(--border-color);
}
.modal-footer {
    border-top-color: var(--border-color);
}
.form-select {
    background-color: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.form-select:focus {
    background-color: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Mobile Sidebar Toggle & UX */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 1040;
        height: 100%;
        transform: translateX(-100%);
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0,0,0,0.5);
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    .suggestion-card {
        padding: 0.6rem;
    }
    .suggestion-card p {
        font-size: 0.75rem;
    }
    .header {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        gap: 0.25rem !important;
    }
    .header-btn {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .message-wrapper {
        padding: 0.75rem 0.5rem !important;
    }
    .message {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 1rem;
    }
    .header .dropdown .btn {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.5rem !important;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header .dropdown .btn span.bg-success {
        width: 16px !important;
        height: 16px !important;
    }
    .header .dropdown .btn i.bi-robot {
        font-size: 0.7rem !important;
    }
    .input-area {
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
    .input-wrapper {
        border-radius: 1rem;
    }
    .chat-box {
        padding-bottom: 6rem !important;
    }
}

/* Suggestion Cards */
.suggestion-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    backdrop-filter: blur(10px);
}

.suggestion-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.15);
}

.suggestion-card p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Workspace Layout Constraints */
.workspace-area { display: flex; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.chat-section { flex: 1; transition: width 0.3s ease; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.canvas-section { flex: 1; border-left: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.canvas-section.d-none { display: none !important; }
.canvas-body { flex: 1; overflow-y: auto !important; min-height: 0; padding-bottom: 2rem !important; }

/* Modern Canvas Styling */
.canvas-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.canvas-header {
    background: rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#canvasTitle {
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#canvasEditor {
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

#canvasEditor:focus {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

/* Custom Scrollbar for Canvas Body */
.canvas-body::-webkit-scrollbar {
    width: 8px;
}
.canvas-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.canvas-body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}
.canvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}

/* ==========================================
   Advanced UI/UX Enhancements Additions
   ========================================== */

/* Theme presets variables */
:root {
    --accent-color-rgb: 99, 102, 241;
}

:root[data-theme="emerald-green"] {
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --accent-color: #10b981;
    --accent-color-rgb: 16, 185, 129;
}
:root[data-theme="sunset-orange"] {
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --accent-color: #f97316;
    --accent-color-rgb: 249, 115, 22;
}
:root[data-theme="cyberpunk-pink"] {
    --accent-gradient: linear-gradient(135deg, #ff007f 0%, #7b2cbf 100%);
    --accent-color: #ff007f;
    --accent-color-rgb: 255, 0, 127;
}

/* Suggestion Card Theme Overrides */
.suggestion-card:hover {
    border-color: rgba(var(--accent-color-rgb), 0.4) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--accent-color-rgb), 0.15) !important;
}

/* Split screen canvas structure */
.canvas-body.split-active #canvasEditor {
    width: 50% !important;
}
.canvas-body.split-active #canvasPreview {
    display: block !important;
    width: 50% !important;
}

/* Markdown live preview rendering enhancements */
#canvasPreview h1, #canvasPreview h2, #canvasPreview h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
#canvasPreview pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    color: #e2e8f0;
    font-family: monospace;
    overflow-x: auto;
}
#canvasPreview code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
#canvasPreview blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 1.5rem 0;
}

/* AI Thinking Wave Animation */
.thinking-wave {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
}
.thinking-wave span {
    width: 4px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: thinking-wave-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(var(--accent-color-rgb), 0.6);
}
.thinking-wave span:nth-child(1) { animation-delay: 0s; }
.thinking-wave span:nth-child(2) { animation-delay: 0.15s; }
.thinking-wave span:nth-child(3) { animation-delay: 0.3s; }
.thinking-wave span:nth-child(4) { animation-delay: 0.45s; }
.thinking-wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes thinking-wave-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(2.2); opacity: 1; filter: brightness(1.25); }
}

/* Copy checkmark popped animations */
.copy-success-pop {
    animation: copy-success-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes copy-success-pop {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Sidebar Folders & Drag and Drop styling */
.folder-container {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}
.folder-container.drag-over {
    border-color: var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.05);
}
.folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
.folder-chats {
    margin-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    transition: all 0.3s ease;
    min-height: 20px;
}

/* Performance HUD Tag */
.hud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 0.4rem;
    width: 100%;
}
.hud-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Timeline Version Branch Switcher */
.timeline-branch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.branch-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.branch-toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.4);
}

/* Visual Diff Mode Styles */
.diff-del {
    background-color: rgba(239, 68, 68, 0.25) !important;
    text-decoration: line-through;
    color: #fca5a5 !important;
    padding: 0 0.1rem;
    border-radius: 2px;
}
.diff-ins {
    background-color: rgba(16, 185, 129, 0.25) !important;
    color: #a7f3d0 !important;
    padding: 0 0.1rem;
    border-radius: 2px;
}

/* Magic Prompt Optimizer Wand Button */
.optimize-btn {
    transition: all 0.3s ease;
}
.optimize-btn:hover {
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 6px rgba(var(--accent-color-rgb), 0.5));
    transform: scale(1.15) rotate(-8deg);
}
.optimize-btn.text-primary {
    animation: wand-glow 0.8s ease-in-out infinite alternate;
}
@keyframes wand-glow {
    0% { filter: drop-shadow(0 0 4px rgba(var(--accent-color-rgb), 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(var(--accent-color-rgb), 0.9)); }
}

/* Canvas Slash Menu Animation */
#canvasSlashMenu {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slashMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
#canvasSlashMenu.show {
    display: block !important;
}
#canvasSlashMenu .dropdown-item {
    border-radius: 8px;
    transition: all 0.15s;
    font-size: 0.88rem;
}
#canvasSlashMenu .dropdown-item:hover {
    background: rgba(var(--accent-color-rgb), 0.15);
    transform: translateX(4px);
}
@keyframes slashMenuIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mermaid Diagram View */
#canvasDiagramView {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9)) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
#canvasDiagramView .mermaid {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
#canvasDiagramView .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Dragging active state */
.chat-history-item-container[draggable="true"] {
    cursor: grab;
}
.chat-history-item-container[draggable="true"]:active {
    cursor: grabbing;
}

/* OTP Countdown Ring */
.otp-ring-svg {
    transform: rotate(-90deg);
}
.otp-ring-svg circle:first-child {
    stroke: rgba(255, 255, 255, 0.1);
}
.otp-ring-svg circle:last-child {
    transition: stroke-dashoffset 1s linear;
}

/* Shake warning for resend code */
@keyframes shake-warn {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.shake-warn {
    animation: shake-warn 0.35s ease-in-out;
}

/* ==========================================
   NeuroCLI Advanced UI/UX Components Styles
   ========================================== */

/* Command Palette Dropdown Styles */
#commandPalette {
    animation: slashMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.command-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

.command-item:hover, .command-item.active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.command-item i {
    color: #4f46e5;
    margin-right: 8px;
}

/* Cybernetic HUD Neon Pulse */
#telemetryHUD {
    box-shadow: 0 0 15px rgba(0, 255, 240, 0.15);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

#telemetryHUD.pulse {
    border-color: rgba(0, 255, 240, 0.7);
    box-shadow: 0 0 25px rgba(0, 255, 240, 0.3);
}

/* Branch tree visual nodes */
.branch-node {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
    position: relative;
}

.branch-node:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.branch-node.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: #4f46e5;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.branch-node::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Arena Split Scroll bars styling */
.arena-pane-body::-webkit-scrollbar {
    width: 4px;
}
.arena-pane-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.arena-pane-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Sandbox Iframe styling */
#canvasSandbox iframe {
    background: #ffffff !important;
}

/* =====================================================================
   ARENA MODE STYLES
   ===================================================================== */

.arena-pane-header {
    min-height: 44px;
}

.arena-pane-body .arena-msg {
    animation: fadeSlideIn 0.25s ease-out both;
}

#arenaBox {
    animation: fadeSlideIn 0.2s ease-out both;
}

/* Arena telemetry badge badges */
.arena-pane-body .badge {
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* =====================================================================
   BRANCH TREE STYLES
   ===================================================================== */

#branchSection {
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.branch-node-row {
    user-select: none;
}

.branch-node-row:active {
    transform: scale(0.98);
}

/* =====================================================================
   TELEMETRY HUD STYLES
   ===================================================================== */

#telemetryHUD {
    transition: box-shadow 0.4s ease;
    animation: hudFadeIn 0.3s ease-out both;
}

@keyframes hudFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#telemetryHUD .d-flex span {
    transition: color 0.2s;
}

/* HUD value flash when updated */
#hudLatency, #hudSpeed, #hudTTFT, #hudTokens {
    transition: transform 0.15s, color 0.15s;
}

#telemetryHUD.pulse #hudLatency,
#telemetryHUD.pulse #hudSpeed,
#telemetryHUD.pulse #hudTTFT,
#telemetryHUD.pulse #hudTokens {
    transform: scale(1.08);
}

/* =====================================================================
   FADE SLIDE IN ANIMATION (general)
   ===================================================================== */

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   CONSENSUS DUAL-RESPONSE CARD STYLES
   ===================================================================== */

/* Main wrapper for the two-card layout */
.consensus-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    animation: fadeSlideIn 0.35s ease-out both;
}

/* Individual model response card */
.consensus-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.consensus-card:hover {
    border-color: rgba(var(--accent-color-rgb), 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-color-rgb), 0.08);
}

.consensus-card.card-model-a {
    border-left: 3px solid #6366f1;
}

.consensus-card.card-model-b {
    border-left: 3px solid #0ea5e9;
}

/* Card header with model name and telemetry */
.consensus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.consensus-model-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.consensus-model-label .model-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.consensus-model-label .model-dot.dot-a {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.consensus-model-label .model-dot.dot-b {
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}

.consensus-telemetry {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.consensus-telemetry .tele-badge {
    font-size: 0.65rem;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    white-space: nowrap;
}

/* Card body */
.consensus-card-body {
    padding: 1rem 1.1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.consensus-card-body p {
    margin-bottom: 0.6rem;
}

.consensus-card-body pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    overflow-x: auto;
}

.consensus-card-body code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    color: #a78bfa;
}

.consensus-card-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Card footer with action buttons */
.consensus-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1.1rem 0.75rem;
    gap: 0.5rem;
}

.consensus-use-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.consensus-use-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.35);
    transform: translateY(-1px);
}

.consensus-use-btn.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 10px rgba(var(--accent-color-rgb), 0.3);
}

/* Recommendation banner */
.consensus-recommendation {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-top: 0.25rem;
    animation: recommendPulseIn 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

.consensus-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #facc15, #f59e0b, #eab308);
    opacity: 0.7;
}

@keyframes recommendPulseIn {
    0% { opacity: 0; transform: translateY(12px) scale(0.97); }
    60% { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.3px;
}

.recommendation-header i {
    font-size: 1.1rem;
}

.recommendation-body {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.recommendation-body .rec-winner {
    color: #fbbf24;
    font-weight: 700;
}

.recommendation-body .rec-reason {
    color: #94a3b8;
    font-style: italic;
}

/* Consensus/Conflict stats row */
.consensus-stats-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.consensus-stat-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.consensus-stat-chip.agree {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.consensus-stat-chip.conflict {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.consensus-stat-chip.speed {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.consensus-stat-chip.quality {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.2);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .consensus-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .consensus-telemetry {
        width: 100%;
    }
    .consensus-stats-row {
        flex-direction: column;
        gap: 0.4rem;
    }
    .consensus-recommendation {
        padding: 0.75rem 1rem;
    }
}

/* =====================================================================
   INTERACTIVE QUIZ STYLES
   ===================================================================== */
.quiz-container {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: fadeSlideIn 0.4s ease-out both;
}

.quiz-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid #818cf8;
}

.quiz-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    transition: all 0.25s ease;
}

.quiz-item:hover {
    border-color: rgba(129, 140, 248, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.quiz-question-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.8rem;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-option-label {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.quiz-option-label:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    color: #f8fafc;
}

.quiz-option-input {
    margin-right: 0.75rem;
    accent-color: #818cf8;
}

.quiz-option-label.selected {
    background: rgba(129, 140, 248, 0.2);
    border-color: #818cf8;
    color: #f8fafc;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.15);
}

.quiz-fib-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #f1f5f9;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.quiz-fib-input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.quiz-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.quiz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* Results styles */
.quiz-result-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.75rem;
    display: inline-block;
}

.quiz-result-badge.correct {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.quiz-result-badge.wrong {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.quiz-option-label.correct-choice {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
    color: #4ade80 !important;
}

.quiz-option-label.wrong-choice {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

.quiz-explanation-box {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #facc15;
    font-size: 0.85rem;
    color: #cbd5e1;
    animation: fadeSlideIn 0.3s ease;
}

.quiz-explanation-title {
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.quiz-score-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: recommendPulseIn 0.5s ease;
}

.quiz-score-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #818cf8;
    margin-bottom: 0.2rem;
}

.quiz-score-text {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* =====================================================================
   CLINICAL REASONING CORE STYLES
   ===================================================================== */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes pulse-glow-teal {
    0%, 100% { box-shadow: 0 0 5px rgba(45, 212, 191, 0.2); }
    50% { box-shadow: 0 0 15px rgba(45, 212, 191, 0.6); }
}

@keyframes pulse-glow-purple {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.6); }
}

.pulse-heartbeat {
    animation: heartbeat 1.2s infinite;
}

.med-chat-step-card {
    transition: all 0.4s ease;
    border-radius: 8px;
    padding: 8px 12px;
}

.chat-med-step-active {
    background: rgba(45, 212, 191, 0.05) !important;
    border-left: 2px solid #2dd4bf;
    animation: pulse-glow-teal 2s infinite;
}

.chat-med-step-completed {
    background: rgba(99, 102, 241, 0.05) !important;
    border-left: 2px solid #6366f1;
    animation: pulse-glow-purple 2s infinite;
}

.chat-med-step-completed .chat-step-title {
    color: #a5b4fc !important;
}

.chat-med-step-indicator-active {
    background: #2dd4bf !important;
    border-color: #2dd4bf !important;
    box-shadow: 0 0 8px #2dd4bf;
}

.chat-med-step-indicator-completed {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 8px #6366f1;
}

.chat-step-status-log {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modern Medical Intake Form */
.medical-form-modern { background: rgba(24, 24, 27, 0.85); backdrop-filter: blur(16px); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: 16px; animation: slideUpFade 0.4s ease-out; }
.medical-form-modern h6 { color: #818cf8; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.1rem; }
.medical-form-modern .form-floating { margin-bottom: 16px; }
.medical-form-modern .form-control { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; border-radius: 12px; transition: all 0.3s ease; }
.medical-form-modern .form-control:focus { background: rgba(0, 0, 0, 0.4); border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.medical-form-modern .form-floating label { color: #a1a1aa; padding-left: 14px; }
.medical-form-modern .btn-submit { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border: none; border-radius: 12px; padding: 12px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.medical-form-modern .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ChatGPT / Gemini Modern Features */
.aurora-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
    animation: advanced-aurora 30s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes advanced-aurora {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); }
    25% { transform: rotate(2deg) scale(1.05) translate(2%, -2%); }
    50% { transform: rotate(-2deg) scale(0.95) translate(-2%, 2%); }
    75% { transform: rotate(1deg) scale(1.02) translate(-1%, -1%); }
    100% { transform: rotate(0deg) scale(1) translate(0, 0); }
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    color: white;
}

.input-wrapper .transition-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 1.2em;
    background: linear-gradient(180deg, #a855f7, #6366f1);
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

.thinking-glow {
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); transform: scale(1.05); }
}

/* ==========================================================================
   METEOR SHOWER ANIMATION
   ========================================================================== */
.meteor-shower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.meteor {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 0.8);
    animation: meteorFall linear forwards;
    opacity: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
    50% { opacity: 0.9; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: var(--tail-length, 120px);
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(-50%);
}

@keyframes meteorFall {
    0% {
        transform: rotate(155deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(155deg) translateX(3000px);
        opacity: 0;
    }
}

/* Table Export Buttons */
.table-wrapper {
    position: relative;
}

.table-actions-group {
    z-index: 10;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-action-btn {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border: none !important;
    font-size: 0.75rem !important;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    border-left: 2px solid #2dd4bf;
    animation: pulse-glow-teal 2s infinite;
}

.chat-med-step-completed {
    background: rgba(99, 102, 241, 0.05) !important;
    border-left: 2px solid #6366f1;
    animation: pulse-glow-purple 2s infinite;
}

.chat-med-step-completed .chat-step-title {
    color: #a5b4fc !important;
}

.chat-med-step-indicator-active {
    background: #2dd4bf !important;
    border-color: #2dd4bf !important;
    box-shadow: 0 0 8px #2dd4bf;
}

.chat-med-step-indicator-completed {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 8px #6366f1;
}

.chat-step-status-log {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modern Medical Intake Form */
.medical-form-modern { background: rgba(24, 24, 27, 0.85); backdrop-filter: blur(16px); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: 16px; animation: slideUpFade 0.4s ease-out; }
.medical-form-modern h6 { color: #818cf8; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.1rem; }
.medical-form-modern .form-floating { margin-bottom: 16px; }
.medical-form-modern .form-control { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; border-radius: 12px; transition: all 0.3s ease; }
.medical-form-modern .form-control:focus { background: rgba(0, 0, 0, 0.4); border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.medical-form-modern .form-floating label { color: #a1a1aa; padding-left: 14px; }
.medical-form-modern .btn-submit { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border: none; border-radius: 12px; padding: 12px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.medical-form-modern .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ChatGPT / Gemini Modern Features */
.aurora-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    filter: blur(80px);
    animation: advanced-aurora 30s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes advanced-aurora {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); }
    25% { transform: rotate(2deg) scale(1.05) translate(2%, -2%); }
    50% { transform: rotate(-2deg) scale(0.95) translate(-2%, 2%); }
    75% { transform: rotate(1deg) scale(1.02) translate(-1%, -1%); }
    100% { transform: rotate(0deg) scale(1) translate(0, 0); }
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    color: white;
}

.input-wrapper .transition-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 1.2em;
    background: linear-gradient(180deg, #a855f7, #6366f1);
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

.thinking-glow {
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); transform: scale(1.05); }
}

/* ==========================================================================
   METEOR SHOWER ANIMATION
   ========================================================================== */
.meteor-shower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.meteor {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 0.8);
    animation: meteorFall linear forwards;
    opacity: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
    50% { opacity: 0.9; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: var(--tail-length, 120px);
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(-50%);
}

@keyframes meteorFall {
    0% {
        transform: rotate(155deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(155deg) translateX(3000px);
        opacity: 0;
    }
}

/* Table Export Buttons */
.table-wrapper {
    position: relative;
}

.table-actions-group {
    z-index: 10;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-action-btn {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border: none !important;
    font-size: 0.75rem !important;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Gamma.ai Style Presentation Viewer */
.presentation-editor {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.presentation-editor:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.presentation-body {
    background-size: cover;
    background-position: center;
}

.slide-deck-content {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-deck-content h1, .slide-deck-content h2, .slide-deck-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-deck-content ul, .slide-deck-content ol {
    text-align: left;
    margin-top: 1rem;
    padding-left: 2rem;
}

.slide-deck-content li {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.presentation-carousel-inner {
    overflow: hidden !important;
}

.carousel-control-prev, .carousel-control-next {
    transition: opacity 0.3s, transform 0.3s;
}
.carousel-control-prev:hover {
    transform: translateX(-5px);
}
.carousel-control-next:hover {
    transform: translateX(5px);
}

/* Shopping Carousel Styles */
.shopping-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
    margin-top: 15px;
    -ms-overflow-style: auto; /* Allow Edge to show it */
    scrollbar-width: thin; /* Firefox */
}
.shopping-container::-webkit-scrollbar {
    height: 10px;
}
.shopping-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 10px;
}
.shopping-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0d6efd, #a78bfa);
    border-radius: 10px;
    border: 2px solid #1a1a2e;
}
.shopping-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #a78bfa, #0d6efd);
}
.shopping-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #1a1a2e; /* matches premium dark layout */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.shopping-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}
.shopping-img-wrapper {
    width: 100%;
    height: 100px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shopping-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shopping-details {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shopping-title {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.shopping-rating {
    color: #f5c518;
    font-size: 10px;
    margin-bottom: 6px;
}
.shopping-price {
    font-size: 14px;
    font-weight: bold;
    color: #4ade80; /* light green */
    margin-bottom: auto;
}
.shopping-btn {
    margin-top: 8px;
    display: block;
    text-align: center;
    padding: 6px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s;
}
.shopping-btn:hover {
    background: #0056b3;
}
.travel-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.2); }