/* ===========================
   WeekPulse Design System
   Dark theme with purple accents
   =========================== */

:root {
    /* Colors */
    --bg-primary: #0a0a10;
    --bg-secondary: #12121c;
    --bg-card: #1a1a28;
    --bg-card-hover: #20202f;
    --bg-input: #15151f;
    --border: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(108, 92, 231, 0.5);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.2);

    --success: #00b894;
    --success-bg: rgba(0, 184, 148, 0.12);
    --warning: #fdcb6e;
    --warning-bg: rgba(253, 203, 110, 0.12);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.12);

    /* Sizing */
    --sidebar-width: 260px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ===========================
   Lucide Icon Utilities
   =========================== */
/* Base sizing */
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* Icon in headings */
.icon-heading {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    margin-right: 6px;
    color: var(--accent-light);
}

/* Status icons */
.icon-status {
    width: 28px;
    height: 28px;
}

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

.icon-danger {
    color: var(--danger);
}

/* Star icons for highlight toggle */
.icon-star-filled {
    width: 20px;
    height: 20px;
    color: #f1c40f;
    fill: #f1c40f;
}

.icon-star-outline {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    fill: none;
}

.highlight-btn:hover .icon-star-outline {
    color: #f1c40f;
}

/* Stat dash for no-report state */
.stat-dash {
    font-size: 28px;
    color: var(--text-muted);
}

/* Nav icon sizing */
.nav-icon i[data-lucide] {
    width: 18px;
    height: 18px;
}

/* Logo icon styling */
.logo-icon i[data-lucide] {
    width: 24px;
    height: 24px;
    color: #f1c40f;
}

.logo-icon-lg {
    display: block;
    margin-bottom: 16px;
    text-align: center;
}

.logo-icon-lg i[data-lucide] {
    width: 48px;
    height: 48px;
    color: #f1c40f;
}

/* Empty state icon */
.empty-icon i[data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

/* Button icons alignment */
.btn i[data-lucide] {
    flex-shrink: 0;
}

/* Toast close icon */
.toast-close i[data-lucide] {
    width: 14px;
    height: 14px;
}

/* Form error icon */
.form-error i[data-lucide] {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 4px;
}

/* ===========================
   Auth Layout
   =========================== */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(162, 155, 254, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon-lg {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===========================
   App Layout
   =========================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    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: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.logout-form {
    width: 100%;
    margin: 0;
}

.nav-link-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-link {
    color: var(--text-muted) !important;
}

.logout-link:hover {
    color: var(--danger) !important;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-bar {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.content-area {
    padding: 28px 32px;
    max-width: 900px;
}

/* ===========================
   Week Navigator
   =========================== */
.week-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.week-label {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.week-label h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* ===========================
   Stats Grid
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-card-accent {
    border-color: rgba(108, 92, 231, 0.3);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), var(--bg-card));
}

.stat-card-success {
    border-color: rgba(0, 184, 148, 0.3);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-small {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===========================
   Actions Bar
   =========================== */
.actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.actions-right {
    display: flex;
    gap: 12px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7c6cf0);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

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

.btn-danger:hover {
    background: #e05555;
    color: #fff;
}

.btn-danger-ghost {
    background: transparent;
    color: var(--danger);
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger-ghost:hover {
    background: var(--danger-bg);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Task Cards
   =========================== */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    animation: fadeUp 0.3s ease;
}

.task-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.task-highlighted {
    border-color: rgba(108, 92, 231, 0.35);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), var(--bg-card));
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.08);
}

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

.task-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.highlight-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.highlight-btn:hover {
    transform: scale(1.2);
}

.highlight-btn.active {
    animation: starPop 0.3s ease;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

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

.task-time {
    font-size: 12px;
    color: var(--text-muted);
}

.task-actions {
    display: flex;
    gap: 4px;
}

/* ===========================
   Badges
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.badge-in_progress {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
}

.badge-completed {
    background: var(--success-bg);
    color: var(--success);
}

.badge-blocked {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-report-draft {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-report-sent {
    background: var(--success-bg);
    color: var(--success);
}

.badge-report-failed {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===========================
   Cards
   =========================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.card-danger {
    border-color: rgba(255, 107, 107, 0.3);
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ===========================
   Forms
   =========================== */
.form-page {
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

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

.form-input,
.form-textarea,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition);
    width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.form-error {
    background: var(--danger-bg);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: var(--danger);
    font-size: 13px;
}

.form-group-inline {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===========================
   Settings Page
   =========================== */
.email-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 24px;
}

.email-status-badge.status-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.email-status-badge.status-inactive {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.field-error {
    font-size: 12px;
    color: var(--danger);
}

.manager-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.manager-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.manager-info {
    display: flex;
    flex-direction: column;
}

.manager-name {
    font-weight: 600;
    font-size: 14px;
}

.manager-email {
    font-size: 12px;
    color: var(--text-muted);
}

.manager-add-form h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===========================
   Report Preview
   =========================== */
.preview-header {
    margin-bottom: 24px;
}

.preview-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.email-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.email-meta {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.email-meta-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.email-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
}

.email-body-preview {
    padding: 28px 24px;
}

.email-greeting {
    font-size: 15px;
    margin-bottom: 8px;
}

.email-task-card {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 16px;
    border-left: 3px solid var(--accent);
}

.email-task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.email-task-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 12px;
}

.email-task-title {
    font-weight: 600;
    font-size: 15px;
}

.email-task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.task-blocker-alert {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--danger);
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* ===========================
   Reports List
   =========================== */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    color: var(--text-primary);
}

.report-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: var(--text-primary);
}

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

.report-week {
    font-weight: 600;
    font-size: 15px;
}

.report-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.report-card-footer {
    font-size: 12px;
}

/* ===========================
   Report Detail
   =========================== */
.report-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.report-detail-header h2 {
    font-size: 20px;
}

.report-detail-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.report-detail-meta p {
    margin-bottom: 4px;
}

.report-notes-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.report-notes-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.report-tasks-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ===========================
   Toasts / Messages
   =========================== */
.messages-container {
    padding: 16px 32px 0;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.toast-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.toast-info,
.toast-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    margin-left: 12px;
}

.toast-close:hover {
    opacity: 1;
}

/* ===========================
   Text Utilities
   =========================== */
.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar-close {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .content-area {
        padding: 20px 16px;
    }

    .top-bar {
        padding: 16px;
    }

    .messages-container {
        padding: 12px 16px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .week-navigator {
        flex-direction: column;
        gap: 8px;
    }

    .auth-card {
        padding: 28px 24px;
    }
}