:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --primary-blue: #0052cc;
    --text-main: #172b4d;
    --text-sub: #626f86;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.15);
    --border-color: #dfe1e6;
    /* Sidebar Specifics */
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-text: #cbd5e1;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow: hidden; /* We handle scrolling in specific containers instead */
    overscroll-behavior-y: contain; /* Prevents "pull-to-refresh" on Chrome */
    background-color: var(--bg-color);
}


/* --- APP LAYOUT --- */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* --- SIDEBAR CONTAINER --- */
/* Sidebar Default State */
.sidebar {
    width: 280px;
    height: 100vh; /* Make sure sidebar takes full height */
    /* Increased slightly for better name clearance */
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

/* --- THE COLLAPSED STATE --- */
.sidebar.collapsed {
    width: 70px;
}

/* Hide labels and dropdowns when collapsed */
.sidebar.collapsed .sidebar-collapsible-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

/* Styling the Collapse Button */
.collapse-sidebar-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-bottom: 20px;
    width: fit-content;
}

.collapse-sidebar-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Rotate icon when collapsed */
.collapse-sidebar-btn {
    transition: transform 0.3s ease;
}

.sidebar-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 12px;
}

/* --- PROJECT ITEMS --- */
.project-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #4b5563;
    /* Medium grey text */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.project-item:hover {
    background-color: #f9fafb;
    color: #111827;
    /* Near black */
}

/* --- THE ACTIVE STATE (No Blue) --- */
.project-item.active {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
    font-weight: 600;
}

/* --- ICON STYLING (The Dot) --- */
.project-icon {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    /* Neutral dot */
    border-radius: 50%;
    margin-right: 12px;
}

.project-item.active .project-icon {
    background-color: #374151;
    /* Darker dot when active */
}

/* --- ADD PROJECT BUTTON --- */
.add-project-btn {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #1f2937;
    /* Dark grey/black */
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-project-btn:hover {
    background-color: #111827;
}

.add-project-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* --- DROPDOWN CONTAINER --- */
.project-selector-wrapper {
    position: relative;
    width: 100%;
    /* Ensures wrapper matches sidebar width */
    margin-bottom: 24px;
}

/* --- THE ACTUAL BOX --- */
.project-dropdown {
    width: 100%;
    /* Spans the full width of the sidebar padding */
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 40px 12px 14px;
    /* More room for text */
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;

    /* Ensure long names don't break the layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-dropdown:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.project-dropdown:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* --- CUSTOM ARROW ICON --- */
.project-selector-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-color: #6b7280;
    /* Create a small downward chevron */
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    pointer-events: none;
}

/* --- DROPDOWN LABEL --- */
.dropdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    padding-left: 4px;
}







/* --- MAIN CONTENT AREA --- */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Lock the screen to the device height */
    width: 100vw;
    overflow: hidden; /* Prevent the WHOLE page from scrolling */
}

.board-container {
    flex-grow: 1;
    display: flex;
    /* Changed from column to row to let columns sit side-by-side */
    flex-direction: row; 
    background-color: var(--bg-color);
    
    /* 1. Enable Horizontal Scroll */
    overflow-x: auto; 
    overflow-y: hidden;
    
    /* 2. Native Momentum Scrolling (Critical for iOS) */
    -webkit-overflow-scrolling: touch; 
    
    /* 3. Snap columns into center as you swipe */
    scroll-snap-type: x mandatory; 
    
    /* 4. Padding for the "bottom of screen" safety area */
    padding-bottom: env(safe-area-inset-bottom);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    height: 65px;
}

.board-header h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-main);
}


/* By default, hide the "Empty State" message */
.board-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: #9ca3af;
    text-align: center;
}

/* When the container has the 'no-project' class... */
.board-container.no-project .kanban-board {
    display: none;
    /* Hide the columns */
}

.board-container.no-project .board-empty-state {
    display: flex;
    /* Show the message */
}

.board-empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}



/* Kanban Board Layout */
.kanban-board {
    display: flex;
    flex-direction: row;
    
    /* This allows the board to fill the height but ignore the width of its children */
    flex: 1; 
    width: 100%; 
    
    /* 1. ENABLE THE SCROLL */
    overflow-x: auto; 
    overflow-y: hidden;
    
    /* 2. FORCE NATIVE BEHAVIOR */
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory;
    
    /* 3. PREVENT COLLAPSE */
    align-items: flex-start; 
}

/* --- THE STRETCHY COLUMNS --- */
.column {
    /* 1. Reset Flex for Mobile */
    flex: 0 0 auto; 
    
    /* 2. Responsive Widths */
    width: 85vw;           /* Mobile: Column takes up most of the screen */
    margin: 12px 10px;    /* Spacing between columns */
    
    background-color: #f9fafb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    border: 1px solid #f3f4f6;

    /* 3. The Snap Effect */
    scroll-snap-align: center; 
}

/* 4. Restore Desktop Grid */
@media (min-width: 768px) {
    .column {
        flex: 1;           /* Desktop: Share space again */
        width: auto;       /* Let flex handle width */
        min-width: 280px;  /* Stop squishing */
        margin: 0 8px;     /* Tighter margins for desktop */
    }
}

/* Update this in your style.css */
.column.drag-over {
    /* Mixes 15% of the status color with 85% white for a soft tint */
    background-color: color-mix(in srgb, var(--status-color), white 80%) !important;
    outline: 3px dashed var(--status-color);
    outline-offset: -2px;
}

/* Status Colors from your Original */
.column[data-status="icebox"] {
    --status-color: #3b3b3b;
    border-top: 5px solid var(--status-color);
    background-color: #e6e6e6;
}

.column[data-status="todo"] {
    --status-color: #0052cc;
    border-top: 5px solid var(--status-color);
    background-color: #e0ebff;
}

.column[data-status="doing"] {
    --status-color: #f97316;
    border-top: 5px solid var(--status-color);
    background-color: #fff2e6;
}

.column[data-status="done"] {
    --status-color: #22c55e;
    border-top: 5px solid var(--status-color);
    background-color: #dcfce7;
}

.column h3 {
    text-align: left;
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
}

/* --- HEADER ALIGNMENT --- */
.column-header {
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
}

.column-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.task-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 150px;
    /* Ensures there's a drop-zone even if empty */
}

/* --- TASK CARDS --- */
.task-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid transparent;
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    box-shadow: var(--shadow-hover);
}

.task-card:active {
    cursor: grabbing;
}

.task-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.task-title {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.task-description {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- TAGS & SUMMARY --- */
.card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 10px;
}

.subtask-progress {
    background: #ebecf0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* --- BOARD TAGS (On the Cards) --- */
.board-tag {
    display: inline-flex;
    align-items: center;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

/* Add the hash symbol to board tags */
.board-tag::before {
    content: '#';
    color: #94a3b8;
    font-weight: 400;
    margin-right: 1px;
}

/* Ensure the container has a gap between multiple tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* Space between different tag chips */
    margin-top: 8px;
}

/* --- GHOST CARD / QUICK ADD --- */
#ghost-card-container {
    /* This is the magic: it stays under the list naturally */
    flex-shrink: 0;
    /* Prevents the button from squishing */
}

.ghost-card-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.ghost-card-trigger:hover {
    background-color: rgba(9, 30, 66, 0.08);
    color: var(--text-main);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 30, 66, 0.54);
    /* Trello-style semi-transparent slate */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    /* Offset from top */
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.modal-container {
    background: #f4f5f7;
    width: 100%;
    max-width: 600px;
    min-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px -4px rgba(9, 30, 66, 0.25);
    position: relative;
    overflow: hidden;
}

.modal-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-main);
}


/* --- INPUTS & TITLES --- */
.modal-title-input {
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem !important;
    font-weight: 600;
    color: var(--text-main);
    padding: 4px 0 !important;
    margin-right: 30px;
    width: calc(100% - 40px);
}

.modal-title-input:focus {
    background: white !important;
    box-shadow: inset 0 0 0 2px var(--primary-blue) !important;
    padding: 4px 8px !important;
    border-radius: 3px;
}

.modal-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

textarea.modal-description {
    width: 100%;
    min-height: 100px;
    background: #eaecf0;
    border: none;
    border-radius: 3px;
    padding: 12px;
    font-size: 0.95rem;
    resize: vertical;
    color: var(--text-main);
}

textarea.modal-description {
    width: 100%;
    min-height: 120px;
    background-color: #ffffff;
    /* Light background */
    border: 1px solid #dfe1e6;
    /* Soft border */
    border-radius: 12px;
    /* Extra rounded corners */
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    resize: vertical;
    /* Allows user to stretch height only */
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* --- SECTIONS (Subtasks & Tags) --- */
.modal-section {
    margin-bottom: 10px;
}

.new-subtask-input,
.new-tag-input {
    width: 100%;
    background-color: #ffffff !important;
    border: 1px solid #dfe1e6 !important;
    border-radius: 10px !important;
    /* Matches the rounded vibe */
    padding: 10px 14px !important;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

/* --- TAGS IN MODAL --- */
.modal-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 8px;
}

/* --- TAG CHIP STYLING --- */
.tag-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    /* Soft slate grey */
    color: #475569;
    /* Darker slate text */
    padding: 2px;
    border-radius: 6px;
    /* Slightly rounded, but not a pill */
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: default;
}

/* Add the hash symbol automatically */
.tag-chip::before {
    content: '#';
    color: #94a3b8;
    /* Lighter grey for the hash */
    font-weight: 400;
}

.tag-chip:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

/* --- TAG DELETE BUTTON --- */
.remove-tag-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 4px;
    line-height: 1;
    display: flex;
    align-items: center;

    /* Hide by default */
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Show on hover */
.tag-chip:hover .remove-tag-btn {
    width: 12px;
    opacity: 1;
    margin-left: 8px;
}

.remove-tag-btn:hover {
    color: #ef4444;
    /* Turns red when you're about to delete */
}



/* --- DELETE ACTION --- */
.delete-action-row {
    display: flex;
    justify-content: flex-end;
}

.delete-task-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.delete-task-btn:hover {
    background: #dc2626;
    color: white;
}


/* --- SUBTASK LIST CONTAINER --- */
.modal-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2px;
}

/* --- INDIVIDUAL SUBTASK ROW --- */
.subtask-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* --- CUSTOM CHECKBOX --- */
.subtask-check {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #e2e8f0;
    /* The light grey outline */
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.subtask-check:checked {
    background-color: var(--bg-color);
    border-color: var(--text-sub);
}

.subtask-check:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- SUBTASK TEXT --- */
.subtask-text {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.2s;
}

.subtask-check:checked+.subtask-text {
    color: var(--text-sub);
    text-decoration: line-through;
    opacity: 0.6;
}

/* The actual checkmark (the "L" shape) */
.subtask-check:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    /* Dark grey checkmark color */
    border: solid #475569;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- DELETE SUBTASK BUTTON --- */
.delete-subtask-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    /* Hidden by default */
    transition: all 0.2s;
    line-height: 1;
}

.subtask-row:hover .delete-subtask-btn {
    opacity: 1;
}

.delete-subtask-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}



/* --- STATUS BAR --- */
#status-bar {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid #334155;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.status-online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
}

/* Container for the ghost input */
#ghost-input-group {
    padding: 0 !important;
    /* Resetting your inline padding */
    margin-top: 5px;
}

#ghost-task-title {
    width: 100%;
    padding: 50px 20px !important;
    /* Match the task-card padding */
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-hover);
    /* Give it a little lift */
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;

    transition: all 0.2s ease;
}

/* Placeholder vibe */
#ghost-task-title::placeholder {
    color: var(--text-sub);
    opacity: 0.6;
}

/* Optional: Subtle animation when it appears */
#ghost-input-group {
    animation: slideDown 0.2s ease-out;
}

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

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

/* Sidebar Default State */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    /* This is the secret sauce for movement */
    transition: transform 0.3s ease-in-out; 
}

/* This is the class the JavaScript toggles */
#sidebar.collapsed {
    transform: translateX(-100%); 
}

/* Adjust the main content when sidebar is present (Desktop Only) */
@media (min-width: 768px) {
    .main-content {
        margin-left: 260px; /* Make room for the sidebar */
        transition: margin-left 0.3s ease;
        width: calc(100vw - 260px);
    }

    .main-content.sidebar-collapsed {
        margin-left: 0;
        width: 100vw;
    }
}

/* Mobile: Sidebar is always an overlay */
@media (max-width: 767px) {
    .main-content {
        margin-left: 0 !important;
        width: 100vw;
    }
}

/* Hide the main UI until the 'authenticated' class is added to the body */
#sidebar-container, #kanban-board {
    display: none;
}

body.authenticated #sidebar-container, 
body.authenticated #kanban-board {
    display: flex; /* or your original display type */
}

/* Ensure the login overlay is always on top until removed */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.google-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 20px auto 0;
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f9f9f9;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

#project-list {
    flex-grow: 1;      /* This pushes everything else down */
    overflow-y: auto;  /* Allows scrolling if you have 100 projects */
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #333; /* Visual separator */
    background: inherit;
}

.sidebar-persistent-footer {
    padding: 15px;
    margin-top: auto; /* Pushes to bottom */
    background: transparent; /* Force away the black background */
}

.logout-btn {
    width: 100%;
    padding: 10px 15px;
    
    /* Colors: Transparent background with a thin red border */
    background: rgba(255, 77, 77, 0.05); 
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.4);
    
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #ff4d4d;
    color: white;
    border-color: #ff4d4d;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
}

.logout-btn .icon {
    font-size: 1.1rem;
}

.tldr-box {
    background-color: #fff9c4; /* Light yellow */
    border-left: 5px solid #fbc02d; /* Slightly darker yellow accent */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tldr-box strong {
    color: #000;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Very faint line */
    background: transparent;
}

.legal-links {
    font-size: 11px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.legal-links a {
    color: #999; /* Faded grey */
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #555; /* Darkens slightly on hover */
}

.separator {
    color: #ddd;
    font-size: 10px;
}

.app-info {
    font-size: 10px;
    color: #ccc;
    margin-top: 5px;
    letter-spacing: 0.5px;
}