@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Native Light Theme Base */
    --bg-dark: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-hover: rgba(15, 23, 42, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Official YUVA Brand Accents */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --white-cream: #F5F5F4;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;
    
    --saffron: var(--saffron-primary);
    --saffron-glow: rgba(255, 153, 51, 0.08);
    --green: var(--green-primary);
    --green-glow: rgba(19, 136, 8, 0.08);
    --ashoka: var(--navy-chakra);
    --ashoka-glow: rgba(0, 0, 128, 0.08);
    
    --priority-high: var(--saffron);
    --priority-med: #2563eb;
    --priority-low: var(--green);
    
    /* Layout Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-glow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

/* Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* Background Flow */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Decorative Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
    animation: floatBg 20s infinite alternate ease-in-out;
}

body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--saffron) 0%, transparent 80%);
}

body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--green) 0%, transparent 80%);
    animation-delay: -5s;
}

@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Navbar */
header {
    width: 100%;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-section img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    padding: 2px;
}

.brand-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--text-primary) 50%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 0.25rem;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* Action Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ashoka) 0%, rgba(59, 130, 246, 0.8) 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.85) 0%, rgba(59, 130, 246, 0.9) 100%);
    box-shadow: 0 4px 12px var(--ashoka-glow);
    transform: translateY(-1px);
    color: #fff;
}

.btn-saffron {
    background: linear-gradient(135deg, var(--saffron) 0%, rgba(255, 153, 51, 0.8) 100%);
    border: none;
    color: #fff;
}

.btn-saffron:hover {
    background: linear-gradient(135deg, rgba(230, 115, 0, 0.95) 0%, rgba(255, 153, 51, 0.9) 100%);
    box-shadow: 0 4px 12px var(--saffron-glow);
    transform: translateY(-1px);
    color: #fff;
}

/* Main Container Grid */
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

/* Glass Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
}

.card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Greeting & Quick Stats */
.greeting-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.greeting-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ashoka);
    font-family: 'Outfit', sans-serif;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Circle Progress Widget */
.progress-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.circle-progress-svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.04);
    stroke-width: 8px;
}

.circle-fg {
    fill: none;
    stroke: var(--saffron);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 351.85;
    stroke-dashoffset: 351.85;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Main Dashboard Panel */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Focus Bar Mode Button */
.focus-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 128, 0.03) 0%, rgba(255, 153, 51, 0.03) 100%);
    border-color: rgba(0, 0, 128, 0.08);
}

.focus-bar-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.focus-bar-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: var(--saffron);
}

/* Daily Targets (To-Do List) CSS */
.input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Inputs & Dropdowns */
.input-row input, 
.input-row select,
.add-subject-row input,
.add-deadline-row input,
.add-topic-row input,
.topic-status-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-row select,
.topic-status-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.2rem !important;
}

.input-row input:focus, 
.input-row select:focus,
.add-subject-row input:focus,
.add-deadline-row input:focus,
.add-topic-row input:focus,
.topic-status-select:focus {
    border-color: var(--ashoka);
    box-shadow: 0 0 0 2px var(--ashoka-glow);
}

.input-row input[type="text"] {
    flex: 1;
}

.input-row input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color-hover);
}

.todo-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.todo-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.todo-checkbox:checked {
    background: var(--green);
    border-color: var(--green);
}

.todo-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: 800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.todo-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.todo-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.priority-tag {
    color: #fff;
}
.priority-high { background-color: var(--priority-high); }
.priority-med { background-color: var(--priority-med); }
.priority-medium { background-color: var(--priority-med); }
.priority-low { background-color: var(--priority-low); }

.subject-tag {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
}

.todo-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.action-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.25rem;
}

.action-icon:hover {
    color: #ef4444;
}

/* Subjects & Topics (Long-term planner) */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.subject-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: var(--transition-fast);
}

.subject-card:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.75);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.subject-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.subject-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 99px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.subject-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    width: 0%;
    transition: width 0.5s ease;
}

.subject-meta-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    padding-right: 0.25rem;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.topic-status-select {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.15rem 1.6rem 0.15rem 0.4rem !important;
    border-radius: 4px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 0.75rem;
}

.add-topic-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.add-topic-row input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
}

.add-topic-row input:focus {
    border-color: var(--ashoka);
}

/* Countdowns & Deadlines */
.deadline-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.deadline-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deadline-item.urgent {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(239, 68, 68, 0.03) 100%);
    animation: urgentPulse 2s infinite alternate;
}

@keyframes urgentPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 8px 1px rgba(239, 68, 68, 0.05); }
}

.deadline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.deadline-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.countdown-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--saffron-dark);
}

.deadline-item.urgent .countdown-timer {
    color: #ef4444;
}

.deadline-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Focus Mode Modal */
.focus-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.focus-modal.active {
    display: flex;
    opacity: 1;
}

.focus-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
    z-index: 101;
}

.focus-close:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.1);
    transform: rotate(90deg);
}

.focus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    margin: auto;
}

.focus-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: -0.5rem;
}

.focus-pomo-type {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.04);
    padding: 0.3rem;
    border-radius: 99px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.focus-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.focus-tab-btn.active {
    background: var(--ashoka);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.15);
}

.focus-timer-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0.5rem 0;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.04);
    stroke-width: 6px;
}

.timer-fg {
    fill: none;
    stroke: var(--saffron);
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-dasharray: 816.8;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-digits {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.focus-timer-controls {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.focus-pomo-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.pomo-play-btn {
    background: var(--saffron);
    color: #fff;
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px var(--saffron-glow);
}

.pomo-play-btn:hover {
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.35);
    transform: scale(1.05);
}

.pomo-control-btn {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pomo-control-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

/* Sound mixer */
.sound-mixer {
    margin-top: 0.5rem;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.sound-mixer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sound-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.sound-row:last-child {
    margin-bottom: 0;
}

.sound-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sound-slider {
    width: 100%;
    appearance: none;
    height: 4px;
    background: rgba(15, 23, 42, 0.08);
    outline: none;
    border-radius: 99px;
}

.sound-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--saffron);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease;
}

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

/* Footer styling */
footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: auto;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--saffron-dark);
}

/* Responsive queries */
@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
    header {
        padding: 1rem;
    }
    .input-row {
        flex-direction: column;
    }
    .focus-timer-container {
        width: 220px;
        height: 220px;
    }
    .timer-digits {
        font-size: 2.8rem;
    }
}

/* Section Separator Line */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 15%, var(--border-color) 85%, transparent 100%);
    margin: 0.5rem 0;
    width: 100%;
    opacity: 0.8;
}

/* Custom Dropdowns */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 140px;
    user-select: none;
}

.custom-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-dropdown-trigger:hover {
    border-color: var(--border-color-hover);
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--ashoka);
    box-shadow: 0 0 0 2px var(--ashoka-glow);
}

.custom-dropdown-trigger i {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-trigger i {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    z-index: 90;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-dropdown-item:hover {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-primary);
}

.custom-dropdown-item.selected {
    background: var(--saffron-pale);
    color: var(--saffron-dark);
    font-weight: 600;
}

/* Small dropdown layout for topic list cells */
.custom-dropdown.dropdown-sm {
    min-width: 120px;
}

.custom-dropdown.dropdown-sm .custom-dropdown-trigger {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.custom-dropdown.dropdown-sm .custom-dropdown-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

/* Background Lock Blur when Focus Mode is Active */
body.body-focus-active main,
body.body-focus-active header,
body.body-focus-active footer {
    filter: blur(16px) grayscale(40%);
    pointer-events: none !important;
    user-select: none;
    transition: filter 0.4s ease;
}

/* Focus Lost Warning Screen Overlay */
.focus-lost-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.focus-lost-overlay.active {
    display: flex;
}

.focus-lost-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.warning-icon {
    font-size: 3.5rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
    animation: pulseWarning 2s infinite;
}

.focus-lost-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.focus-lost-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

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

@keyframes popIn {
    to { transform: scale(1); }
}

@keyframes pulseWarning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Custom Alert/Confirm Dialog Modal */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.custom-dialog-overlay.active {
    display: flex;
}

.custom-dialog-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2.25rem 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transform: scale(0.95);
    animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.custom-dialog-icon {
    font-size: 2.5rem;
    color: var(--saffron);
    margin-bottom: 1rem;
}

.custom-dialog-icon.success {
    color: var(--green);
}

.custom-dialog-icon.warning {
    color: var(--saffron);
}

.custom-dialog-icon.info {
    color: var(--ashoka);
}

.custom-dialog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.custom-dialog-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.custom-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.custom-dialog-actions button {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* App Footer Styles */
.app-footer {
    width: 100%;
    margin-top: auto;
    padding: 3rem 2rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    z-index: 10;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--saffron);
    border-radius: 99px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-brand img {
    border-radius: 50%;
    padding: 1px;
    background: rgba(15, 23, 42, 0.05);
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--saffron-pale);
    color: var(--saffron-dark);
    transform: translateY(-2px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-col ul a:hover {
    color: var(--saffron);
    padding-left: 4px;
}

.footer-info-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--saffron);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .app-footer {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
}


