/* Custom CSS for Task Architect — Sleek Dark Theme & Glassmorphism */

:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(20, 29, 47, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Neon Glow Accents */
    --accent-cyan: #00f2fe;
    --accent-indigo: #4facfe;
    --accent-purple: #b163ff;
    --accent-emerald: #05f8a0;
    --accent-rose: #ff4785;
    --accent-amber: #f8af23;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 20%, rgba(17, 24, 39, 1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(20, 24, 48, 1) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.api-key-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-container input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 250px;
    outline: none;
    transition: all 0.3s;
}

.api-key-container input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

.key-status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.key-status-badge.info {
    background: rgba(177, 99, 255, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(177, 99, 255, 0.3);
}

.key-status-badge.active {
    background: rgba(5, 248, 160, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(5, 248, 160, 0.3);
}

/* MAIN LAYOUT */
.main-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    flex-grow: 1;
    height: calc(100vh - 100px);
}

/* LEFT INPUT PANEL */
.input-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 5px;
}

.panel-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.text-input-card {
    flex-grow: 1.2;
}

.sketch-panel-card {
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-clear:hover {
    color: var(--accent-rose);
}

textarea {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: var(--accent-cyan);
}

/* SKETCHPAD */
.canvas-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.canvas-controls input[type="color"] {
    border: none;
    background: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.canvas-controls input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.canvas-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 200px;
}

#sketchpad {
    display: block;
    width: 100%;
    height: 100%;
    background: #111827;
    cursor: crosshair;
}

/* DE-CLUTTER BUTTON */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* RIGHT BOARD PANEL */
.board-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.board-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.board-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tracks-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    flex-grow: 1;
    padding-bottom: 10px;
    align-items: flex-start;
}

/* EMPTY STATE */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: 15px;
}

.empty-icon {
    font-size: 3rem;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* KANBAN BOARD TRACKS */
.track-column {
    width: 320px;
    min-width: 320px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow-y: auto;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
}

.track-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-icon {
    font-size: 1.2rem;
}

.track-title-wrapper h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.task-count {
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.track-tasks-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* TASK CARDS */
.task-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.task-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Progress Bar */
.task-progress-container {
    margin-top: 10px;
}

.task-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
    transition: width 0.4s ease;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-stuck {
    background: none;
    border: none;
    color: var(--accent-amber);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: underline;
}

/* Column Color Coding */
.track-column.asl-faculty { border-top: 4px solid var(--accent-indigo); }
.track-column.asl-faculty .track-title-wrapper h3 { color: var(--accent-indigo); }

.track-column.ecommerce-store { border-top: 4px solid var(--accent-amber); }
.track-column.ecommerce-store .track-title-wrapper h3 { color: var(--accent-amber); }

.track-column.household { border-top: 4px solid var(--accent-emerald); }
.track-column.household .track-title-wrapper h3 { color: var(--accent-emerald); }

.track-column.general { border-top: 4px solid var(--accent-purple); }
.track-column.general .track-title-wrapper h3 { color: var(--accent-purple); }

/* FOCUS OVERLAY */
.focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.focus-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 550px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.btn-close-focus {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.focus-track-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.focus-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.focus-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Circular Timer */
.timer-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
}

.timer-ring-progress {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

.focus-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-timer {
    background: var(--accent-cyan);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-timer.btn-reset {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Focus checklist */
.focus-checklist-container {
    width: 100%;
    text-align: left;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.focus-checklist-container h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.focus-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.focus-steps-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.focus-steps-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ACCESSIBILITY & DEAF-FIRST MULTI-SENSORY STYLES */

/* Screen reader & Braille live announcer */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header action buttons & shortcuts */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action-sm {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-sm:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-add-track {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.btn-add-track:hover {
    background: rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.shortcut-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 400;
}

.shortcut-badge-light {
    background: rgba(15, 23, 42, 0.3);
    color: #0f172a;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

/* Visual Flash Overlay for Deaf Notifications */
.visual-flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.visual-flash-overlay.flash-cyan {
    box-shadow: inset 0 0 100px 30px rgba(0, 242, 254, 0.6);
    opacity: 1;
}

.visual-flash-overlay.flash-emerald {
    box-shadow: inset 0 0 100px 30px rgba(5, 248, 160, 0.7);
    opacity: 1;
}

.visual-flash-overlay.flash-amber {
    box-shadow: inset 0 0 100px 30px rgba(248, 175, 35, 0.7);
    opacity: 1;
}

/* Ambient Visual Breathing Pulse for Focus Timer */
@keyframes ambientPulse {
    0% {
        box-shadow: 0 0 20px 2px rgba(0, 242, 254, 0.2), inset 0 0 15px rgba(0, 242, 254, 0.1);
    }
    50% {
        box-shadow: 0 0 45px 12px rgba(0, 242, 254, 0.5), inset 0 0 30px rgba(0, 242, 254, 0.25);
    }
    100% {
        box-shadow: 0 0 20px 2px rgba(0, 242, 254, 0.2), inset 0 0 15px rgba(0, 242, 254, 0.1);
    }
}

.focus-card.active-timer-pulse {
    animation: ambientPulse 3s infinite ease-in-out;
    border-color: rgba(0, 242, 254, 0.6);
}

/* Stuck Help Box */
.stuck-help-box {
    background: rgba(248, 175, 35, 0.1);
    border: 1px solid rgba(248, 175, 35, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    width: 100%;
}

/* Modal Overlay & Custom Track Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #141d2f;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 420px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: var(--accent-rose);
}

.modal-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-cyan);
}

