/* AeroFocus Pro CSS Design System */

:root {
    /* Color Palette */
    --accent-color: #a855f7; /* Default purple */
    --accent-color-rgb: 168, 85, 247;
    --accent-focus: #a855f7;
    --accent-short: #06b6d4;
    --accent-long: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Glassmorphism Presets */
    --glass-bg: rgba(15, 23, 42, 0.35);
    --glass-bg-hover: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(255, 255, 255, 0.16);
    --glass-blur: blur(20px) saturate(140%);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --dock-height: 70px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #030712;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Animated Background System */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transition: background 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-1 {
    background: linear-gradient(135deg, #2e0854, #12002b, #05051a);
}

.gradient-2 {
    background: linear-gradient(135deg, #022c22, #04100c, #010403);
}

.gradient-3 {
    background: linear-gradient(135deg, #090514, #140b24, #000000);
}

.gradient-4 {
    background: linear-gradient(135deg, #431407, #1c0502, #000000);
}

.bg-visual-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(236, 72, 153, 0.05) 0px, transparent 40%);
    opacity: 0.85;
    pointer-events: none;
    animation: pulse-ambient 20s infinite alternate ease-in-out;
}

@keyframes pulse-ambient {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

/* Glassmorphism Class Helper */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-focus);
}

.glass-subtle {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}

/* App Container Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0 24px;
}

/* HEADER STYLING */
.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.5);
    animation: float-icon 4s infinite ease-in-out;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--accent-color);
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.back-link {
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-main);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.clock-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
}

.clock-widget .time {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clock-widget .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.session-tracker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.fire-icon {
    color: #f97316;
    filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.4));
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

/* MAIN DASHBOARD GRID */
.dashboard-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 20px;
    height: calc(100vh - var(--header-height) - var(--dock-height) - 10px);
    overflow: hidden;
    padding-bottom: 10px;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for columns */
.grid-column::-webkit-scrollbar {
    width: 6px;
}
.grid-column::-webkit-scrollbar-track {
    background: transparent;
}
.grid-column::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.grid-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* PANEL GENERAL STYLING */
.dashboard-panel {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.panel-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-icon {
    color: var(--accent-color);
}

.panel-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* COMPANION WIDGET (AEROCAT) */
.companion-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 20px;
    min-height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.companion-widget:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.companion-avatar {
    width: 60px;
    height: 55px;
    position: relative;
    flex-shrink: 0;
}

/* Cute CSS Pixel/Vector Cat */
.cat {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #cbd5e1; /* slate color */
    top: 0;
    transition: transform 0.3s ease;
}

.ear-l { left: 4px; transform: rotate(-15deg); }
.ear-r { right: 4px; transform: rotate(15deg); }

.cat-head {
    position: absolute;
    width: 44px;
    height: 34px;
    background: #cbd5e1;
    border-radius: 50% 50% 45% 45%;
    top: 8px;
    left: 8px;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.1);
}

.eye {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #0f172a;
    border-radius: 50%;
    top: 14px;
    transition: all 0.3s ease;
}

.eye-l { left: 10px; }
.eye-r { right: 10px; }

.cat-nose {
    position: absolute;
    width: 4px;
    height: 3px;
    background: #f43f5e;
    border-radius: 50%;
    top: 18px;
    left: 20px;
}

.cat-mouth {
    position: absolute;
    width: 6px;
    height: 4px;
    border: 1px solid #0f172a;
    border-top: none;
    border-radius: 0 0 3px 3px;
    top: 21px;
    left: 19px;
}

.cat-whiskers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.whisker {
    position: absolute;
    height: 1px;
    background: #94a3b8;
    width: 10px;
}

.wl1 { left: -4px; top: 18px; transform: rotate(-5deg); }
.wl2 { left: -4px; top: 21px; transform: rotate(5deg); }
.wr1 { right: -4px; top: 18px; transform: rotate(5deg); }
.wr2 { right: -4px; top: 21px; transform: rotate(-5deg); }

.cat-body {
    position: absolute;
    width: 40px;
    height: 25px;
    background: #94a3b8;
    border-radius: 20px 20px 0 0;
    bottom: 0;
    left: 10px;
    z-index: -1;
}

.paw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    bottom: -2px;
}

.paw-l { left: 12px; }
.paw-r { right: 12px; }

.cat-tail {
    position: absolute;
    width: 25px;
    height: 6px;
    background: #94a3b8;
    border-radius: 3px;
    bottom: 4px;
    right: -10px;
    transform-origin: left center;
    animation: tail-wag 3s infinite ease-in-out;
}

/* Typing Laptop */
.cat-laptop {
    position: absolute;
    width: 24px;
    height: 16px;
    background: #475569;
    border-radius: 3px;
    bottom: 0;
    left: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.laptop-screen {
    flex: 1;
    background: #fef08a; /* glowing screen */
    border: 1px solid #475569;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    animation: screen-glow 1s infinite alternate;
}

.laptop-keyboard {
    height: 4px;
    background: #1e293b;
    border-radius: 0 0 2px 2px;
}

/* Animations for Cat States */
/* Typing Mode */
.cat.typing .paw-l {
    animation: paw-type 0.2s infinite alternate ease-in-out;
}

.cat.typing .paw-r {
    animation: paw-type 0.2s infinite alternate-reverse 0.05s ease-in-out;
}

/* Sleeping Mode */
.cat.sleeping {
    animation: breath-sleep 3s infinite alternate ease-in-out;
}

.cat.sleeping .ear-l { transform: rotate(-35deg) translateY(2px); }
.cat.sleeping .ear-r { transform: rotate(35deg) translateY(2px); }

.cat.sleeping .eye {
    width: 6px;
    height: 1px;
    border-radius: 0;
    top: 16px;
    background: #475569;
}

.cat.sleeping .cat-paws {
    display: none;
}

.cat.sleeping .cat-laptop {
    display: none;
}

.cat.sleeping .cat-tail {
    animation: tail-sleep 6s infinite ease-in-out;
}

@keyframes tail-wag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

@keyframes tail-sleep {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes paw-type {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes breath-sleep {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0.92); }
}

@keyframes screen-glow {
    0% { box-shadow: 0 0 2px #fef08a; }
    100% { box-shadow: 0 0 8px #fef08a; }
}

.companion-speech {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    animation: float-speech 4s infinite ease-in-out;
}

.companion-speech::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #fff;
}

@keyframes float-speech {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* AUDIO EQUALIZER VISUALIZER */
.audio-visualizer-container {
    height: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 0 10px;
    background: rgba(0,0,0,0.15);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.03);
}

.vis-bar {
    flex: 1;
    width: 5px;
    height: 4px;
    background: linear-gradient(to top, var(--accent-color), #38bdf8);
    border-radius: 2px 2px 0 0;
    opacity: 0.4;
    transition: height 0.25s ease, opacity 0.2s ease;
}

.audio-visualizer-container.playing .vis-bar {
    opacity: 1;
    animation: dance-equalizer 0.8s infinite alternate ease-in-out;
}

/* Individual Bar Speeds */
.audio-visualizer-container.playing .vis-bar:nth-child(1) { animation-duration: 0.55s; animation-delay: 0.1s; }
.audio-visualizer-container.playing .vis-bar:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.3s; }
.audio-visualizer-container.playing .vis-bar:nth-child(3) { animation-duration: 0.4s; animation-delay: 0.05s; }
.audio-visualizer-container.playing .vis-bar:nth-child(4) { animation-duration: 0.65s; animation-delay: 0.2s; }
.audio-visualizer-container.playing .vis-bar:nth-child(5) { animation-duration: 0.9s; animation-delay: 0.4s; }
.audio-visualizer-container.playing .vis-bar:nth-child(6) { animation-duration: 0.5s; animation-delay: 0.15s; }
.audio-visualizer-container.playing .vis-bar:nth-child(7) { animation-duration: 0.72s; animation-delay: 0.35s; }
.audio-visualizer-container.playing .vis-bar:nth-child(8) { animation-duration: 0.48s; animation-delay: 0.08s; }
.audio-visualizer-container.playing .vis-bar:nth-child(9) { animation-duration: 0.83s; animation-delay: 0.25s; }
.audio-visualizer-container.playing .vis-bar:nth-child(10) { animation-duration: 0.61s; animation-delay: 0.12s; }
.audio-visualizer-container.playing .vis-bar:nth-child(11) { animation-duration: 0.75s; animation-delay: 0.45s; }
.audio-visualizer-container.playing .vis-bar:nth-child(12) { animation-duration: 0.53s; animation-delay: 0.03s; }
.audio-visualizer-container.playing .vis-bar:nth-child(13) { animation-duration: 0.69s; animation-delay: 0.33s; }
.audio-visualizer-container.playing .vis-bar:nth-child(14) { animation-duration: 0.42s; animation-delay: 0.18s; }
.audio-visualizer-container.playing .vis-bar:nth-child(15) { animation-duration: 0.87s; animation-delay: 0.5s; }

@keyframes dance-equalizer {
    0% { height: 4px; }
    100% { height: 28px; }
}

/* MIND-MAP GENERATOR WIDGET */
.mindmap-body-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.mindmap-input-box textarea {
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
}

.mindmap-input-box textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.2);
}

.mindmap-workspace {
    flex: 1;
    background: rgba(0,0,0,0.18);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.04);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

/* SVG Mind Map nodes */
.mm-link {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2px;
    transition: stroke 0.3s ease;
}

.mm-node {
    cursor: grab;
}

.mm-node:active {
    cursor: grabbing;
}

.mm-node-bg {
    fill: rgba(15, 23, 42, 0.7);
    stroke: var(--accent-color);
    stroke-width: 1.5px;
    rx: 8px;
    ry: 8px;
    transition: fill 0.3s ease, stroke-width 0.15s ease;
}

.mm-node:hover .mm-node-bg {
    fill: rgba(var(--accent-color-rgb), 0.25);
    stroke-width: 2px;
}

.mm-node-text {
    fill: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

/* Root Node Specific Styling */
.mm-node-root .mm-node-bg {
    stroke: #ec4899;
    fill: rgba(236, 72, 153, 0.2);
}

.mm-node-root:hover .mm-node-bg {
    fill: rgba(236, 72, 153, 0.35);
}

/* TODO LIST WIDGET */
.todo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.todo-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.todo-input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 250px;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    animation: slide-in-item 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slide-in-item {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.todo-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Custom Checkbox */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.checkbox-custom i {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.todo-item.completed .checkbox-custom {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.todo-item.completed .checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.todo-text {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    word-break: break-word;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.todo-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 4px;
}

.todo-item:hover .todo-delete-btn {
    opacity: 1;
}

.todo-delete-btn:hover {
    color: var(--danger);
}

.progress-badge {
    background: rgba(var(--accent-color-rgb), 0.15);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.25);
}

/* FLASHCARDS WIDGET */
.fc-deck-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.flashcard-wrapper {
    perspective: 1000px;
    width: 100%;
    height: 160px;
    margin-bottom: 16px;
    cursor: pointer;
}

.flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.card-front {
    background: rgba(255, 255, 255, 0.03);
}

.card-back {
    background: rgba(var(--accent-color-rgb), 0.05);
    border-color: rgba(var(--accent-color-rgb), 0.2);
    transform: rotateY(180deg);
}

.card-label {
    position: absolute;
    top: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.8;
}

.card-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.card-tip {
    position: absolute;
    bottom: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.6;
}

.fc-controls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.fc-feedback-btns {
    display: flex;
    gap: 8px;
}

.fc-list-section {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.fc-list-section h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.fc-list {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.8rem;
}

.fc-list-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.fc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: none;
}

.fc-form textarea:focus {
    border-color: var(--accent-color);
}

/* CENTER COLUMN: FOCUS WIDGET */
/* Safe centering: auto-margins center when space allows, but never overflow
   past the top into the header (justify-content:center would). */
.column-center {
    justify-content: flex-start;
}
.column-center > :first-child {
    margin-top: auto;
}
.column-center > :last-child {
    margin-bottom: auto;
}

.focus-central-widget {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 32px;
}

.focus-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.focus-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pomodoro-modes {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mode-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mode-btn.active {
    background: rgba(var(--accent-color-rgb), 0.15);
    border-color: rgba(var(--accent-color-rgb), 0.3);
    color: var(--text-main);
}

/* TIMER CIRCLE */
.timer-display-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.timer-time {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.circle-btn-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.3);
}

.circle-btn-medium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-icon {
    margin-left: 3px;
}

/* BREATHING CORE ANIMATION */
.breathing-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.breath-mode-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.breath-mode-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #fff;
}

.breathing-canvas-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.breathing-circle-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.4) 0%, rgba(139,92,246,0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Breathing States */
.breathing-circle.inhale {
    transform: scale(1.6);
    background: radial-gradient(circle, rgba(168,85,247,0.6) 0%, rgba(139,92,246,0.3) 100%);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5);
}

.breathing-circle.hold {
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.5);
    background: radial-gradient(circle, rgba(6,182,212,0.5) 0%, rgba(6,182,212,0.2) 100%);
    border-color: rgba(6, 182, 212, 0.4);
}

.breathing-circle.exhale {
    transform: scale(1);
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.breathing-outer-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.breathing-instruction {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.breath-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 12px;
}

/* QUOTE PANEL */
.quote-panel {
    padding: 16px 20px;
    text-align: center;
    max-width: 480px;
    margin: 10px auto 0;
}

.quote-panel p {
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.quote-panel span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

/* AMBIENT SOUNDBOARD */
.ambient-mixer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mixer-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sound-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sound-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mixer-row.active .sound-toggle-btn {
    background: rgba(var(--accent-color-rgb), 0.15);
    border-color: rgba(var(--accent-color-rgb), 0.30);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

.slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sound-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sound-slider, .radio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    transition: background 0.3s ease;
}

.sound-slider::-webkit-slider-thumb, .radio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.sound-slider::-webkit-slider-thumb:hover, .radio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.mixer-row.active .sound-slider {
    background: rgba(var(--accent-color-rgb), 0.4);
}

.mixer-row.active .sound-slider::-webkit-slider-thumb {
    background: var(--accent-color);
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 16px 0;
}

/* LOFI RADIO */
.lofi-station {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 12px 14px;
}

.lofi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.radio-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-badge i {
    color: var(--accent-color);
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.radio-play-btn:hover {
    transform: scale(1.1);
}

.radio-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.radio-nav-btn:hover {
    color: #fff;
}

.radio-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#radio-track-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* STICKY NOTES PINBOARD */
.sticky-board-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 180px;
}

.sticky-board {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
}

.sticky-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.6;
    padding: 20px;
}

.sticky-empty-state i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.sticky-empty-state p {
    font-size: 0.75rem;
    line-height: 1.4;
}

.sticky-note {
    position: absolute;
    width: 120px;
    min-height: 120px;
    padding: 10px;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    cursor: grab;
    transform: rotate(0deg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: scale-up 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-note:active {
    cursor: grabbing;
    transform: scale(1.05) rotate(2deg) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 999 !important;
}

.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.6;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    padding-bottom: 3px;
}

.sticky-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.sticky-delete {
    cursor: pointer;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.15s ease;
}

.sticky-delete:hover {
    color: var(--danger);
}

.sticky-content {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Sticky Colors */
.note-yellow { background: #fef08a; }
.note-pink { background: #fbcfe8; }
.note-blue { background: #bfdbfe; }
.note-green { background: #bbf7d0; }

@keyframes scale-up {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* APP DOCK (FOOTER CONTROLS) */
.app-dock {
    height: var(--dock-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 0 10px;
}

.dock-left, .dock-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dock-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.dock-btn.active {
    background: rgba(var(--accent-color-rgb), 0.15);
    border-color: rgba(var(--accent-color-rgb), 0.25);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

/* BG Dot selector */
.bg-selector {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.bg-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-dot.active {
    border-color: #fff;
    transform: scale(1.2);
}

/* MODAL SYSTEM (Settings) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in-modal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in-modal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 90%;
    max-width: 480px;
    border-radius: 28px;
    overflow: hidden;
    animation: scale-up-modal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up-modal {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

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

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.settings-inputs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-item input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.input-item input:focus {
    border-color: var(--accent-color);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: var(--accent-color);
}

kbd {
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8em;
    border: 1px solid rgba(255,255,255,0.1);
}

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

/* BUTTONS UTILITY SYSTEM */
.primary-btn, .secondary-btn, .danger-btn, .success-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: #fff;
    color: var(--text-dark);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

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

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

.danger-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.danger-btn:hover {
    background: var(--danger);
    color: #fff;
}

.success-btn {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.success-btn:hover {
    background: var(--success);
    color: #fff;
}

.icon-btn, .icon-btn-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn {
    font-size: 1.15rem;
    width: 36px;
    height: 36px;
}

.icon-btn-small {
    font-size: 0.95rem;
    width: 28px;
    height: 28px;
}

.icon-btn:hover, .icon-btn-small:hover {
    color: #fff;
}

.text-link-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-link-btn:hover {
    text-decoration: underline;
}

.w-100 { width: 100%; }

/* RESPONSIVE DESIGN - MEDIA QUERIES */

@media (max-width: 1024px) {
    body {
        overflow-y: auto;
    }
    
    .app-container {
        height: auto;
        padding: 0 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        gap: 20px;
    }
    
    .grid-column {
        overflow-y: visible;
        height: auto;
    }
    
    .app-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.85);
        backdrop-filter: blur(15px);
        padding: 10px 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 640px) {
    .app-header {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }
    
    .header-center {
        margin: 8px 0;
    }
    
    .timer-display-container {
        width: 240px;
        height: 240px;
    }
    
    .progress-ring {
        width: 240px;
        height: 240px;
    }
    
    .progress-ring circle {
        r: 100;
        cx: 120;
        cy: 120;
    }
    
    .timer-time {
        font-size: 3.2rem;
    }
}
