/* Digital Logic Tool Specific Styles */

/* Digital Logic Tool Specific Styles */

.logic-builder-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0;
    /* Seamless join for glassmorphism */
    height: 85vh;
    /* Taller workspace */
    min-height: 600px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    /* Heavy roundness */
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Deep shadow */
}

/* Floating Dashboard Header - Now Flex Item */
.floating-header {
    position: relative;
    /* Changed from absolute */
    top: auto;
    left: auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(203, 213, 225, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-size: 0.9rem;
    pointer-events: auto;
    /* Enable interaction if needed */
    user-select: none;
    margin-right: auto;
    /* Push others to right if flex-start */
}

/* Ensure header content is always on top but non-blocking */
.floating-header * {
    pointer-events: none;
}

.floating-header .app-brand {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.floating-header .header-sep {
    color: #94a3b8;
    font-weight: 300;
}

.floating-header .circuit-name {
    color: #64748b;
    font-weight: 400;
}

.main-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Toolbar - Glassmorphic */
/* Toolbar - Glassmorphic */
.logic-builder-container .toolbar {
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.6);
    display: flex !important;
    /* Force flex */
    align-items: center;
    justify-content: space-between !important;
    /* Space items apart */
    /* Force Right Align */
    gap: 1rem;
    padding: 0 1.5rem;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    /* Above canvas */
    pointer-events: auto;
    /* Ensure clickable */
    box-sizing: border-box;
}

/* Ensure groups don't stick to left */
.toolbar-right {
    display: flex;
    gap: 1.5rem;
    /* Separation between groups */
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Hide text labels for compact toolbar */
.tool-btn span {
    display: none;
}

.tool-btn svg {
    width: 20px;
    height: 20px;
}

/* Canvas */
/* Canvas & Dot Grid Engine */
.canvas-wrapper {
    flex: 1;
    position: relative;
    /* Dynamic Dot Grid */
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    cursor: crosshair;
    overflow: hidden;
    z-index: 1;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Boolean Panel */
.boolean-panel {
    height: auto;
    min-height: 80px;
    height: auto;
    min-height: 100px;
    /* Taller for heavy feel */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(203, 213, 225, 0.6);
    padding: 1.5rem;
    display: grid;
    z-index: 20;
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bool-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bool-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.input-row {
    display: flex;
    gap: 0.5rem;
}

.output-row {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
}

#bool-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

#btn-generate-circuit {
    padding: 0 1rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#bool-output {
    font-family: 'Consolas', monospace;
    color: #0f172a;
    font-weight: 600;
}

/* Sidebar */
.parts-bin {
    background: #f1f5f9;
    border-left: 1px solid #cbd5e1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parts-bin h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.part-category h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 0.2rem;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.part-item {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition: all 0.2s;
}



/* Shadow-Lift Interaction */
.part-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -6px rgba(0, 0, 0, 0.05);
    /* Heavy lift */
    border-color: #3b82f6;
    z-index: 10;
}

.part-item span {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

.part-icon {
    width: 40px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: #334155;
}

/* Custom Scrollbar for bin */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Fullscreen Modifiers */
.logic-builder-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

/* Interactive Tutorial */
.tutorial-overlay {
    position: fixed;
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Switch to vertically stacked earlier */
    .logic-builder-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .parts-bin {
        height: 180px;
        /* Reduced height */
        order: 2;
    }

    .main-workspace {
        height: 60vh;
        order: 1;
    }

    .toolbar-group span {
        display: none;
    }

    /* Hide labels on mobile */
}

/* Icon Placeholders (Corrected ViewBox to fit shapes) */
.part-and {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M10 5h20a20 20 0 0 1 0 40H10V5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-or {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M10 5q20 20 0 40q25 0 40-20Q35 5 10 5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-not {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M10 5l30 20-30 20V5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='45' cy='25' r='4' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-nand {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M10 5h20a20 20 0 0 1 0 40H10V5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='44' cy='25' r='4' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-nor {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M10 5q20 20 0 40q25 0 40-20Q35 5 10 5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='54' cy='25' r='4' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-xor {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M5 5q20 20 0 40' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Cpath d='M12 5q20 20 0 40q25 0 40-20Q37 5 12 5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-xnor {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M5 5q20 20 0 40' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Cpath d='M12 5q20 20 0 40q25 0 40-20Q37 5 12 5z' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='56' cy='25' r='4' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
}

.part-switch {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Crect x='15' y='18' width='30' height='14' rx='7' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='22' cy='25' r='4' fill='%2364748b' stroke='none'/%3E%3C/svg%3E");
}

.part-led {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='%23334155' stroke-width='2'/%3E%3Ccircle cx='20' cy='20' r='10' fill='%23ef4444' stroke='none' opacity='0.5'/%3E%3C/svg%3E");
}

/* Phase 6 Dark Mode Overrides */
html[data-theme="dark"] .logic-builder-container {
    background: #0f172a;
    /* Slate 900 */
    border-color: #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Heavier shadow */
}

/* Floating Header Dark */
html[data-theme="dark"] .floating-header {
    background: rgba(15, 23, 42, 0.7);
    /* Dark Glass */
    border-color: rgba(51, 65, 85, 0.5);
    color: #f8fafc;
}

html[data-theme="dark"] .floating-header .header-sep {
    color: #475569;
}

html[data-theme="dark"] .floating-header .circuit-name {
    color: #94a3b8;
}

/* Canvas Dark Dot Grid */
html[data-theme="dark"] .canvas-wrapper {
    background-color: #0f172a;
    background-image: radial-gradient(#334155 1.5px, transparent 1.5px);
}

html[data-theme="dark"] .logic-builder-container .toolbar {
    background: rgba(30, 41, 59, 0.8);
    /* Slate 800 Glass */
    border-bottom-color: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
}

html[data-theme="dark"] .sidebar-left,
html[data-theme="dark"] .parts-bin {
    background: rgba(30, 41, 59, 0.9);
    /* Slate 800 Glass */
    border-left: 1px solid rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .boolean-panel {
    background: rgba(30, 41, 59, 0.9);
    border-top-color: rgba(51, 65, 85, 0.5);
}

/* Icons & Buttons */
html[data-theme="dark"] .tool-btn {
    background: rgba(51, 65, 85, 0.5);
    border-color: transparent;
    color: #f1f5f9;
}

html[data-theme="dark"] .tool-btn:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: #94a3b8;
}

html[data-theme="dark"] .tool-btn svg {
    stroke: #f1f5f9;
}

html[data-theme="dark"] .part-group-title,
html[data-theme="dark"] .outputs-title {
    color: #94a3b8;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .part-item {
    background: rgba(51, 65, 85, 0.4);
    border-color: rgba(71, 85, 105, 0.5);
    color: #f1f5f9;
}

html[data-theme="dark"] .part-item:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: #60a5fa;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    /* Glow lift */
}

html[data-theme="dark"] .part-item span {
    color: #e2e8f0;
}

html[data-theme="dark"] .part-icon {
    /* Invert black strokes to white-ish */
    filter: invert(1) brightness(2);
}

html[data-theme="dark"] .boolean-panel label {
    color: #94a3b8;
}

html[data-theme="dark"] #bool-input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .analysis-panel {
    background: #1e293b;
    /* No border override needed if it inherits well, but let's be safe */
}

html[data-theme="dark"] .analysis-panel h4 {
    color: #94a3b8;
    border-bottom-color: #334155;
}

html[data-theme="dark"] #bool-output {
    background: transparent;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .output-row {
    background: #0f172a;
    border-color: #334155;
}

/* --- Content Injection Styles --- */
.tool-description-section,
.tool-faq-section,
.tool-advanced-section {
    margin-top: 3rem;
    padding: 2rem 0;
    font-family: 'Inter', sans-serif;
    color: #334155;
}

.desc-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tool-description-section h2,
.tool-faq-section h2,
.tool-advanced-section h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #475569;
}

.desc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Fix for mobile grid */
@media (max-width: 768px) {
    .desc-grid {
        grid-template-columns: 1fr;
    }
}

.desc-card h3,
.desc-shortcuts h3 {
    font-size: 1.3rem;
    color: #2563eb;
    /* Primary Blue */
    margin-bottom: 1rem;
}

.desc-card ul {
    list-style: none;
    padding: 0;
}

.desc-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.desc-card li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.desc-card strong {
    color: #0f172a;
}

/* Shortcuts Table */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbd5e1;
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #cbd5e1;
}

.shortcuts-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.shortcuts-table td {
    color: #334155;
}

.key {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- FAQ & Advanced Section Styles --- */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.tool-advanced-section {
    background: rgba(255, 255, 255, 0.5);
    /* Semi-transparent for overlay readability */
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
    border-radius: 8px;
}

.math-block {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-family: 'Consolas', monospace;
    font-size: 1.1rem;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 1rem 0;
}

/* Dark Mode Overrides for Content */
html[data-theme="dark"] .tool-description-section h2,
html[data-theme="dark"] .tool-faq-section h2,
html[data-theme="dark"] .tool-advanced-section h2 {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .tool-description-section,
html[data-theme="dark"] .tool-faq-section,
html[data-theme="dark"] .tool-advanced-section {
    color: #cbd5e1;
}

html[data-theme="dark"] .lead {
    color: #94a3b8;
}

html[data-theme="dark"] .desc-card strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .desc-card h3,
html[data-theme="dark"] .desc-shortcuts h3 {
    color: #60a5fa;
}

html[data-theme="dark"] .shortcuts-table {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .shortcuts-table th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .shortcuts-table td {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .key {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .faq-item h4 {
    color: #e2e8f0;
}

html[data-theme="dark"] .faq-item p {
    color: #94a3b8;
}

html[data-theme="dark"] .tool-advanced-section {
    background: rgba(15, 23, 42, 0.6);
    border-top-color: #334155;
}

/* Shortcuts Sidebar Panel */
.shortcuts-panel {
    margin-top: auto;
    /* Push to bottom if flex container allows */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.8rem;
}

.shortcuts-panel h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.8rem 0;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: #475569;
}

.shortcut-row:last-child {
    margin-bottom: 0;
}

.key-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    color: #334155;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    min-width: 20px;
    text-align: center;
}

/* Dark Mode for Shortcuts Sidebar */
html[data-theme="dark"] .shortcuts-panel {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .shortcuts-panel h4 {
    color: #94a3b8;
}

html[data-theme="dark"] .shortcut-row {
    color: #cbd5e1;
}

/* --- Phase 9: New Layout & Sidebar --- */
.layout-container {
    max-width: 1400px;
    /* Wider for Logic Builder */
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Main Content + Sidebar */
    gap: 2rem;
    align-items: start;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    /* Prevent grid blowout */
}

.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    position: sticky;
    top: 2rem;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #0f172a;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 0.25rem 0;
}

.sidebar a:hover {
    color: #2563eb;
    transform: translateX(4px);
}

/* Dark Mode for Sidebar */
html[data-theme="dark"] .sidebar {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .sidebar h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] .sidebar a {
    color: #94a3b8;
}

html[data-theme="dark"] .sidebar a:hover {
    color: #38bdf8;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }
}

/* Full Screen Rainbow Button */
#btn-fullscreen {
    background: linear-gradient(45deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #6366f1, #a855f7);
    background-size: 200% 200%;
    color: white;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    animation: rainbowShift 4s ease infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#btn-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

#btn-fullscreen svg {
    stroke: white;
    /* Force icon white */
}