/* ==========================================================================
   STUDY BUDDY - PREMIUM GLASSMORPHISM STYLE SHEET
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-app: radial-gradient(circle at 50% 0%, #171c35 0%, #080b16 100%);
    --bg-card: rgba(17, 25, 46, 0.55);
    --bg-card-hover: rgba(23, 33, 61, 0.7);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-focus: rgba(99, 102, 241, 0.4);
    
    /* Theme Colors (HSL for flexibility) */
    --primary-color: #6366f1;     /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary-color: #10b981;   /* Emerald */
    --secondary-glow: rgba(16, 185, 129, 0.2);
    --accent-red: #ef4444;        /* Crimson */
    --accent-amber: #f59e0b;      /* Amber */

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Spacing & Borders */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(8, 11, 22, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   SIDEBAR STYLING
   ========================================================================== */
.sidebar {
    width: 280px;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item i {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.nav-item.active i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

.sidebar-footer {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0 0.5rem;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

#welcome-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

#date-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 50px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

#header-user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tab panes management */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

/* ==========================================================================
   GLASS CARDS (COMMON)
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper i {
    width: 22px;
    height: 22px;
}

/* Specific Card Icons */
.tip-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.sleep-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary-color); }
.chart-icon { background: rgba(16, 185, 129, 0.15); color: var(--secondary-color); }
.task-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary-color); }

/* ==========================================================================
   TAB: DASHBOARD
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Tips Card */
.tip-card {
    position: relative;
    overflow: hidden;
}

.tip-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tip-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
}

.tip-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}

/* Sleep Card */
.sleep-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.sleep-time-badge {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

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

.sleep-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sleep-status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Chart Card */
.chart-container {
    height: 180px;
    display: flex;
    align-items: flex-end;
    margin: 1rem 0;
}

.svg-chart-wrapper {
    width: 100%;
    height: 100%;
}

.progress-svg {
    width: 100%;
    height: 100%;
}

.chart-bar {
    fill: var(--primary-color);
    rx: 4px;
    transition: height 0.5s ease, y 0.5s ease;
}

.chart-bar:hover {
    fill: #818cf8;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.chart-bar-label {
    font-size: 9px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

.chart-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.chart-summary strong {
    color: var(--secondary-color);
}

/* Mini Todo Card */
.mini-todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mini-todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
}

.mini-todo-title {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.mini-todo-subject {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.no-tasks {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    padding: 1.5rem 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-smooth);
}

.view-all-link:hover {
    color: #818cf8;
    transform: translateX(4px);
}

/* ==========================================================================
   TAB: JADWAL BELAJAR
   ========================================================================== */
.schedule-control-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.day-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.day-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.day-card.today {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
}

.day-card.today h4 {
    border-bottom-color: var(--primary-color);
}

.day-sessions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--text-muted);
}

.schedule-item.school {
    border-left-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.03);
}

.schedule-item.study-priority {
    border-left-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.schedule-item.study-other {
    border-left-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.03);
}

.schedule-item.activity {
    border-left-color: #ec4899; /* Pink */
    background: rgba(236, 72, 153, 0.03);
}

.schedule-item.sleep {
    border-left-color: #a855f7; /* Purple */
    background: rgba(168, 85, 247, 0.03);
}

.schedule-item.free {
    border-left-color: var(--text-secondary);
}

.sched-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sched-label {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.schedule-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.schedule-note i {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ==========================================================================
   TAB: POMODORO TIMER
   ========================================================================== */
.pomodoro-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 2rem;
    align-items: start;
}

.pomodoro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.pomodoro-modes {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 0.35rem;
    width: 100%;
}

.mode-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mode-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.timer-display-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
}

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

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8px;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 628; /* 2 * PI * r (r=100) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke var(--transition-smooth);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.timer-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-clock {
    font-size: 3.25rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
}

.timer-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.btn-circle {
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-circle.btn-primary {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-circle.btn-primary:hover {
    transform: scale(1.05);
    background: #4f46e5;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-circle.btn-secondary {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-circle.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Pomodoro Info */
.pomodoro-info-card h3 {
    margin-bottom: 1rem;
}

.pomodoro-steps {
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pomodoro-steps li strong {
    color: var(--text-primary);
}

.pomodoro-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.pomo-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.pomo-stat-count {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.pomo-stat-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   TAB: TUGAS SEKOLAH (TO-DO)
   ========================================================================== */
.tasks-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
    align-items: start;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.task-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.task-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.task-checkbox-custom {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.task-checkbox-wrapper:hover .task-checkbox-custom {
    border-color: var(--primary-color);
}

.task-checkbox-input:checked ~ .task-checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.task-checkbox-custom::after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.task-checkbox-input:checked ~ .task-checkbox-custom::after {
    display: block;
}

.task-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-item-title {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.task-item.completed .task-item-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.task-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.tag-subject {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.tag-priority-tinggi {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.tag-priority-sedang {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}

.tag-priority-rendah {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.task-deadline-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-deadline-badge i {
    width: 12px;
    height: 12px;
}

.btn-delete-task {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-delete-task:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

/* Task Header Filter */
.task-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.task-filters {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.filter-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ==========================================================================
   FORMS & INPUTS STYLING
   ========================================================================== */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: #4f46e5;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-glass);
    color: var(--text-primary);
}

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

.btn-block {
    width: 100%;
}

.loading-state {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE FRIENDLY)
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    /* Sidebar transforms into bottom navigation bar */
    .sidebar {
        width: 100%;
        height: 65px;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        border-right: none;
        border-top: 1px solid var(--border-glass);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    }

    .sidebar-logo, 
    .sidebar-footer {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
        border-radius: var(--radius-sm);
        flex: 1;
        text-align: center;
    }

    .nav-item i {
        width: 18px;
        height: 18px;
    }

    /* Adjust main content for bottom bar spacing */
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1.5rem 5rem 1.5rem;
    }

    .main-header {
        margin-bottom: 1.5rem;
    }

    #welcome-text {
        font-size: 1.5rem;
    }

    .pomodoro-layout, 
    .tasks-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}
