/* ==========================================================================
   Base Design Tokens & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette - HSL values for seamless blending */
    --color-bg-deep: hsl(255, 28%, 10%);      /* Deep warm midnight/eggplant */
    --color-bg-base: hsl(255, 24%, 13%);      /* Base dark workspace */
    --color-bg-panel: rgba(43, 36, 68, 0.4);   /* Glassmorphic panel background */
    --color-border: rgba(255, 255, 255, 0.07);  /* Soft borders */
    
    /* Semantic accents */
    --color-peach: hsl(15, 95%, 70%);          /* Emotional indicators / warmth */
    --color-lavender: hsl(265, 90%, 78%);       /* Parent-child bond / branding */
    --color-teal: hsl(165, 75%, 42%);          /* Needs fulfilled / success / positive */
    --color-yellow: hsl(42, 90%, 65%);          /* Insight / attention */
    --color-danger: hsl(355, 85%, 63%);        /* Delete / alerts */
    
    /* Text colors */
    --color-text-primary: hsl(220, 20%, 96%);
    --color-text-secondary: hsl(220, 10%, 72%);
    --color-text-muted: hsl(220, 8%, 55%);
    
    /* Font details */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Effects */
    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.15);
    --glass-blur: blur(20px);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Global Reset & Structure
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-deep);
    background-image: 
        radial-gradient(at 10% 10%, hsla(265, 75%, 25%, 0.35) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(15, 75%, 25%, 0.25) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    overflow: hidden;
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevent body/page-level scrolling */
}


/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-lavender);
}

/* ==========================================================================
   Sidebar Styling (Left Side)
   ========================================================================== */
.sidebar {
    background: rgba(20, 17, 30, 0.8);
    border-right: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: var(--glass-blur);
    z-index: 10;
}

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

.logo-icon {
    font-size: 2rem;
    animation: pulse-slow 3s infinite ease-in-out;
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-lavender), var(--color-peach));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Age Selector Style */
.age-selector {
    position: relative;
    width: 100%;
}

.styled-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.styled-select:focus {
    border-color: var(--color-lavender);
    box-shadow: 0 0 12px rgba(188, 143, 250, 0.2);
}

.styled-select option {
    background-color: hsl(255, 24%, 13%); /* Match the base dark theme */
    color: var(--color-text-primary);
}

.age-selector::after {
    content: "▼";
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Action Buttons list */
.context-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 550;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.outline-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-lavender);
}

.upload-label {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    text-align: center;
}

.upload-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-lavender);
}

.danger-btn {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--color-danger);
}

.danger-btn:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: var(--color-danger);
}

.file-status-info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.2rem;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Main Content Layout (Split Screen)
   ========================================================================== */
.main-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100vh;
    overflow: hidden;
}

/* Common Header */
.content-header {
    height: 70px;
    border-bottom: 1px solid var(--color-border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    background: rgba(20, 17, 30, 0.3);
}

.content-header h1, .content-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: linear-gradient(135deg, rgba(188, 143, 250, 0.25), rgba(255, 154, 118, 0.25));
    border: 1px solid rgba(188, 143, 250, 0.4);
    color: var(--color-lavender);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

/* ==========================================================================
   Chat Room Component
   ========================================================================== */
.chat-section {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    background: var(--color-bg-base);
    height: 100%;
    min-height: 0; /* Forces container to respect height constraints */
    overflow: hidden;
}


.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Chat Bubbles */
.message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    align-self: flex-start;
}

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

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.user-message .avatar {
    background: linear-gradient(135deg, var(--color-peach), rgba(255, 154, 118, 0.4));
}

.message-content {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    border-radius: 0 16px 16px 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-soft);
}

.message.user-message .message-content {
    background: rgba(188, 143, 250, 0.12);
    border-color: rgba(188, 143, 250, 0.25);
    border-radius: 16px 0 16px 16px;
}

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

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

.message-content strong {
    color: var(--color-lavender);
}

/* System loading state */
.message.loading-message {
    opacity: 0.7;
}

.dots {
    display: inline-flex;
    gap: 4px;
}

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

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

/* Chat Input Bar */
.chat-input-area {
    padding: 1.5rem 2rem;
    background: rgba(20, 17, 30, 0.4);
    border-top: 1px solid var(--color-border);
}

#chat-form {
    display: flex;
    gap: 1rem;
}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

#user-input:focus {
    border-color: var(--color-peach);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 16px rgba(255, 120, 90, 0.15);
}

.send-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-lavender), var(--color-peach));
    color: hsl(265, 40%, 10%);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 143, 250, 0.35);
}

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

/* ==========================================================================
   Dashboard Components (Right Side)
   ========================================================================== */
.dashboard-section {
    display: flex;
    flex-direction: column;
    background: hsl(255, 24%, 11%);
    overflow-y: auto;
}

.dashboard-grid {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(30, 26, 48, 0.45);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.card-icon {
    font-size: 1.4rem;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Visual Emotion Map Visualizer */
.emotion-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    padding: 0.5rem 0;
}

.map-node {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.node-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.node-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.1rem 0;
}

.node-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Misconception Node - What it looks like */
.node-misconception {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
}

.node-misconception .node-value {
    color: var(--color-danger);
}

/* Feeling Node - What they actually feel */
.node-feeling {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.node-feeling .node-value {
    color: var(--color-yellow);
}

/* Need Node - What they actually need */
.node-need {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.node-need .node-value {
    color: var(--color-teal);
}

.map-arrow {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-slow 2s infinite ease-in-out;
}

/* Placeholder elements */
.placeholder-text {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 0;
    line-height: 1.5;
}

/* Action Plan Checklist */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.checklist li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(188, 143, 250, 0.15);
}

.checklist li.checked {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.15);
    opacity: 0.75;
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    margin-top: 1px;
}

.checklist li.checked .checklist-checkbox {
    background: var(--color-teal);
    border-color: var(--color-teal);
}

.checklist-checkbox::after {
    content: "✓";
    font-size: 0.75rem;
    color: hsl(255, 28%, 10%);
    font-weight: bold;
    display: none;
}

.checklist li.checked .checklist-checkbox::after {
    display: block;
}

.checklist-text {
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.checklist li.checked .checklist-text {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Mobile UI Defaults (Hidden on Desktop) */
.mobile-top-header,
.mobile-bottom-nav,
.mobile-close-btn {
    display: none;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 22, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow: hidden; /* Strict viewport boundary */
    }

    /* Mobile Header */
    .mobile-top-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        background: rgba(20, 17, 30, 0.95);
        border-bottom: 1px solid var(--color-border);
        padding: 0 1.25rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 90;
        backdrop-filter: var(--glass-blur);
    }
    
    .mobile-icon-btn {
        background: transparent;
        border: none;
        color: var(--color-text-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: var(--transition-smooth);
    }
    .mobile-icon-btn:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .mobile-brand h1 {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: 700;
        background: linear-gradient(135deg, var(--color-lavender), var(--color-peach));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* App Container restructuring */
    .app-container {
        position: fixed;
        top: 60px;
        bottom: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        height: auto;
        margin: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        overflow: hidden;
    }

    /* Sidebar as a slide-out drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px; /* offscreen */
        width: 320px;
        height: 100vh;
        z-index: 100;
        border-right: 1px solid var(--color-border);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        background: rgb(20, 17, 30);
    }
    
    .sidebar.active {
        left: 0;
    }

    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--color-text-secondary);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        margin-left: auto;
        transition: var(--transition-smooth);
    }
    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--color-text-primary);
    }

    /* Hide desktop header inside main content */
    .main-content .content-header {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    /* Tabbing Panels visibility controls */
    .app-container.active-tab-chat .chat-section {
        display: flex;
    }
    .app-container.active-tab-chat .dashboard-section {
        display: none;
    }

    .app-container.active-tab-dashboard .chat-section {
        display: none;
    }
    .app-container.active-tab-dashboard .dashboard-section {
        display: flex;
    }
    /* Hide checklist card in general dashboard tab */
    .app-container.active-tab-dashboard .action-card {
        display: none !important;
    }
    .app-container.active-tab-dashboard .emotion-card,
    .app-container.active-tab-dashboard .analysis-card {
        display: block !important;
    }

    .app-container.active-tab-checklist .chat-section {
        display: none;
    }
    .app-container.active-tab-checklist .dashboard-section {
        display: flex;
    }
    /* Hide emotion map and analysis cards in checklist tab */
    .app-container.active-tab-checklist .emotion-card,
    .app-container.active-tab-checklist .analysis-card {
        display: none !important;
    }
    .app-container.active-tab-checklist .action-card {
        display: block !important;
    }

    /* Layout tweaks inside sections */
    .chat-section {
        border-right: none;
        height: 100%;
    }

    .messages-container {
        padding: 1.2rem;
        gap: 1rem;
    }
    .message {
        max-width: 90%;
    }

    .chat-input-area {
        padding: 1rem 1.2rem;
    }

    .dashboard-section {
        height: 100%;
        overflow-y: auto;
    }
    .dashboard-grid {
        padding: 1.2rem;
        gap: 1rem;
    }

    /* Bottom Navigation Styling */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(20, 17, 30, 0.95);
        border-top: 1px solid var(--color-border);
        z-index: 90;
        backdrop-filter: var(--glass-blur);
        justify-content: space-around;
        align-items: center;
        padding: 0 0.5rem;
    }

    .nav-item {
        background: transparent;
        border: none;
        color: var(--color-text-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        flex: 1;
        height: 100%;
        cursor: pointer;
        font-family: var(--font-body);
        font-size: 0.72rem;
        transition: var(--transition-smooth);
    }
    
    .nav-item i {
        width: 20px;
        height: 20px;
        transition: var(--transition-smooth);
    }

    .nav-item:hover {
        color: var(--color-text-primary);
    }

    .nav-item.active {
        color: var(--color-lavender);
    }
    .nav-item.active i {
        transform: translateY(-2px);
        color: var(--color-lavender);
    }
}
/* ==========================================================================
   Modal Popup Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 22, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    background: rgba(30, 26, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 2.2rem;
    box-shadow: var(--shadow-premium), 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
}

/* Header maximize icon button styling */
.icon-btn-small {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.icon-btn-small:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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