/* ===== CSS Variables & Theme ===== */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --border: #334155;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --sidebar-bg: #0f172a;
    --sidebar-width: 260px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
}

.light {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --sidebar-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== App Container ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

/* ===== Navigation ===== */
.nav-menu {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #f1f5f9;
}

.nav-item.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-icon { font-size: 1.15rem; }

/* ===== Sidebar Footer ===== */
.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #f1f5f9;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: var(--error); box-shadow: 0 0 6px var(--error); }

.page-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.925rem;
}

/* ===== Card ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-2px); }

.stat-icon { font-size: 2rem; }

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accent-blue .stat-value { color: var(--info); }
.accent-green .stat-value { color: var(--success); }
.accent-orange .stat-value { color: var(--warning); }
.accent-purple .stat-value { color: var(--accent); }

/* ===== Dashboard Grid ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.full-width { grid-column: 1 / -1; }

/* ===== Chart Bars ===== */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 200px;
    padding-top: 1rem;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 6px 6px 0 0;
    min-height: 8px;
    transition: height 0.5s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    padding-top: 0.25rem;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Activity List ===== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.done { background: var(--success); }
.activity-dot.pending { background: var(--warning); }

.activity-info { flex: 1; min-width: 0; }
.activity-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-time { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.feature {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: transform var(--transition);
}

.feature:hover { transform: translateY(-2px); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.feature h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.feature p { font-size: 0.75rem; color: var(--text-secondary); }

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state span { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.925rem; }

/* ===== Todo Page ===== */
.todo-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.todo-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.925rem;
    outline: none;
    transition: border-color var(--transition);
}

.todo-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.category-select {
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

.category-select:focus {
    border-color: var(--accent);
}

.btn-primary {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Todo Filters ===== */
.todo-filters {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== Todo List ===== */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    border-left: 3px solid var(--accent);
}

.todo-item:hover { box-shadow: var(--shadow); }
.todo-item.completed { opacity: 0.6; }
.todo-item.completed .todo-title { text-decoration: line-through; }
.todo-item.cat-urgent { border-left-color: var(--error); }
.todo-item.cat-work { border-left-color: var(--info); }
.todo-item.cat-personal { border-left-color: var(--success); }

.todo-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    transition: all var(--transition);
    flex-shrink: 0;
}

.todo-check.checked {
    background: var(--success);
    border-color: var(--success);
}

.todo-content { flex: 1; min-width: 0; }
.todo-title { font-size: 0.925rem; font-weight: 500; }
.todo-meta { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.todo-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 10px;
    font-weight: 500;
}
.todo-date { font-size: 0.75rem; color: var(--text-muted); }

.todo-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
    padding: 0.25rem;
}

.todo-item:hover .todo-delete { opacity: 1; }

/* ===== Weather Page ===== */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.weather-card {
    transition: transform var(--transition);
}

.weather-card:hover { transform: translateY(-3px); }

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.weather-icon { font-size: 2rem; }
.weather-date { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.weather-temp {
    margin-bottom: 1rem;
}

.temp-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.temp-unit { font-size: 0.875rem; color: var(--text-muted); margin-left: 0.25rem; }

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
}

.detail-label { color: var(--text-muted); }
.detail-value { font-weight: 500; }

.weather-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.weather-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--info), var(--error));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== Notes Page ===== */
.notes-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.note-title-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.925rem;
    outline: none;
}

.note-title-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.notes-editor { margin-bottom: 1.5rem; }

.note-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.925rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    min-height: 200px;
}

.note-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.note-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.saved-notes h3 { margin-bottom: 1rem; }

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.note-card {
    cursor: pointer;
    transition: all var(--transition);
}

.note-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.note-card-header h4 { font-size: 0.925rem; }

.note-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.note-card:hover .note-delete { opacity: 1; }

.note-preview {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.note-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== About Page ===== */
.about-hero {
    text-align: center;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.hero-icon { font-size: 3rem; margin-bottom: 1rem; }
.about-hero h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-hero p { color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

.tech-stack { margin-bottom: 1.5rem; }
.tech-stack h3 { margin-bottom: 1rem; }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tech-card {
    text-align: center;
    padding: 1.25rem;
    transition: transform var(--transition);
}

.tech-card:hover { transform: translateY(-2px); }
.tech-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.tech-card h4 { font-size: 0.925rem; margin-bottom: 0.25rem; }
.tech-card p { font-size: 0.8rem; color: var(--text-secondary); }

.pwa-info { margin-bottom: 1.5rem; }

.install-steps {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step p { font-size: 0.875rem; color: var(--text-secondary); }

.runtime-info { margin-bottom: 1.5rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-value { font-size: 0.875rem; font-weight: 500; word-break: break-all; }

/* ===== Notifications ===== */
.notifications-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.875rem;
}

.notification.info { background: var(--info); }
.notification.success { background: var(--success); }
.notification.warning { background: var(--warning); color: #1a1a1a; }
.notification.error { background: var(--error); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Push Notifications Page ===== */
.backend-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.warning-icon { font-size: 1.5rem; flex-shrink: 0; }

.warning-content { flex: 1; }
.warning-content h4 { font-size: 0.925rem; margin-bottom: 0.25rem; color: var(--warning); }
.warning-content p { font-size: 0.825rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.warning-content code {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.btn-outline {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }

.push-status-card { margin-bottom: 1rem; }

.push-status-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.push-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.push-status-row:last-child { border-bottom: none; }

.push-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.push-server-url {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--accent);
    background: rgba(99,102,241,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.push-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--error); }

.push-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-danger {
    padding: 0.75rem 1.25rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.push-test-card { margin-bottom: 1rem; }

.push-test-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.push-test-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.push-how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.push-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.push-step h4 {
    font-size: 0.925rem;
    margin-bottom: 0.25rem;
}

.push-step p {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

/* ===== Loading ===== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f172a;
    color: #f1f5f9;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Sidebar Overlay ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

/* ===== Error UI ===== */
#blazor-error-ui {
    background: var(--error);
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

#blazor-error-ui .reload { color: white; text-decoration: underline; }

.blazor-error-boundary {
    background: var(--error);
    padding: 1rem;
    color: white;
    border-radius: var(--radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open ~ .sidebar-overlay,
    .sidebar-overlay {
        display: block;
    }

    .sidebar-close { display: block; }
    .menu-btn { display: block; }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-bars {
        height: 150px;
    }

    .todo-form {
        flex-direction: column;
    }

    .todo-form .todo-input,
    .todo-form .category-select,
    .todo-form .btn-primary {
        width: 100%;
    }

    .notifications-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .notes-toolbar {
        flex-direction: column;
    }

    .note-title-input, .btn-primary {
        width: 100%;
    }

    .install-steps {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }
}
