/* ============================================
   COLLEGE CONNECT — DESIGN SYSTEM
   ============================================ */

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

/* --- CSS Custom Properties (HSL-based) --- */
:root {
    --primary-h: 220;
    --primary-s: 100%;
    --primary-l: 68%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), 70%, 45%);
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.35);

    --secondary: hsl(220, 80%, 42%);
    --accent: hsl(217, 91%, 60%);
    --light: #f0f4f8;
    --dark: #1e293b;
    --success: hsl(160, 84%, 39%);
    --warning: hsl(38, 92%, 50%);
    --danger: hsl(0, 84%, 60%);
    --gray: hsl(215, 16%, 47%);

    --surface: rgba(94, 94, 94, 0.25);
    --surface-hover: rgba(94, 94, 94, 0.75);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);

    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-pill: 500px;

    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px var(--primary-glow);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* --- Full-Screen Background --- */
.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('login-background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   AUTH SECTION
   ============================================ */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.auth-container.fade-out {
    opacity: 0;
}

.auth-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-strong);
    animation: cardSlideUp 0.6s var(--transition-smooth) both;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

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

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

.auth-header h1 {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: rgba(240, 244, 248, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: rgba(240, 244, 248, 0.85);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    color: var(--light);
    caret-color: var(--primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-control option {
    color: white;
    background: #1e293b;
}

/* Password field wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color var(--transition-fast);
    line-height: 1;
}

.password-toggle:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(135deg, hsla(0, 84%, 55%, 0.6), hsla(0, 80%, 45%, 0.5));
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, hsla(0, 84%, 55%, 0.8), hsla(0, 80%, 45%, 0.7));
}

/* Loading spinner inside buttons */
.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Auth Miscellaneous --- */
.switch-form {
    text-align: center;
    margin-top: 24px;
    color: rgba(240, 244, 248, 0.6);
    font-size: 0.9rem;
}

.switch-form a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.switch-form a:hover {
    color: hsl(var(--primary-h), 100%, 78%);
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.forgot-password a {
    color: rgba(240, 244, 248, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-password a:hover {
    color: var(--primary);
}

/* ============================================
   FORGOT PASSWORD MODAL
   ============================================ */
#forgotPasswordModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
    color: var(--light);
    border: 1px solid var(--border-strong);
}

#forgotPasswordModal h3 {
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1.3rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    min-height: 100vh;
    width: 100vw;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('login-background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow-y: auto;
}

.dashboard.visible {
    opacity: 1;
    z-index: 3;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), hsl(200, 100%, 70%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hamburger Menu Button (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--light);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Bubble Navbar --- */
.nav-wrap {
    border: 1px solid var(--border);
    width: fit-content;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 5px;
}

.nav-wrap:after {
    content: "";
    display: block;
    position: absolute;
    inset: -1px;
    background: linear-gradient(180deg, rgba(92, 143, 255, 0.1), transparent);
    border-radius: var(--radius-pill);
    z-index: -1;
    pointer-events: none;
}

.bubble-nav {
    width: fit-content;
    display: flex;
    gap: 4px;
    position: relative;
    anchor-name: --nav;
}

.bubble-nav a {
    z-index: 10;
    position: relative;
    display: inline-block;
    padding: 10px 22px;
    color: rgba(240, 244, 248, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    border-radius: var(--radius-pill);
}

.bubble-nav a:hover {
    color: var(--light);
}

.bubble-nav a:hover:before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    anchor-name: --nav-hover;
}

.bubble-nav a.active {
    color: white;
    font-weight: 600;
    anchor-name: --active-link;
}

/* The Moving Bubbles */
.bubble {
    position: absolute;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bubble.active-bubble {
    position-anchor: --active-link;
    inset: anchor(top) anchor(right) anchor(bottom) anchor(left);
    z-index: 2;
    background: linear-gradient(180deg, hsla(var(--primary-h), 100%, 68%, 0.6), hsla(var(--primary-h), 70%, 42%, 0.4));
    box-shadow: 0 4px 15px var(--primary-glow);
}

.bubble.hover-bubble {
    position-anchor: --nav-hover;
    inset: anchor(top) anchor(right) anchor(bottom) anchor(left);
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 32px 0 60px;
}

.dashboard-header {
    color: white;
    margin-bottom: 32px;
    text-align: center;
}

.dashboard-header h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s var(--transition-smooth) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 1.25rem;
    color: var(--light);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ============================================
   NOTIFICATION LIST
   ============================================ */
.notification-list {
    list-style: none;
}

.notification-item {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition-smooth);
    animation: itemSlideIn 0.4s var(--transition-smooth) both;
}

.notification-item:nth-child(1) {
    animation-delay: 0s;
}

.notification-item:nth-child(2) {
    animation-delay: 0.05s;
}

.notification-item:nth-child(3) {
    animation-delay: 0.1s;
}

.notification-item:nth-child(4) {
    animation-delay: 0.15s;
}

.notification-item:nth-child(5) {
    animation-delay: 0.2s;
}

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

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

.notification-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: hsl(var(--primary-h), 100%, 78%);
    transform: translateX(4px);
}

.notification-item .btn-danger {
    margin-left: 10px;
    margin-top: 10px;
}

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

.notification-title {
    font-weight: 600;
    color: var(--light);
    font-size: 1.05rem;
}

.notification-meta {
    color: rgba(240, 244, 248, 0.5);
    font-size: 0.82rem;
    white-space: nowrap;
}

.notification-content {
    color: rgba(240, 244, 248, 0.7);
    line-height: 1.6;
    width: 75%;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
}

.notification-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   FILTERS & SORTING
   ============================================ */
.filter-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    width: fit-content;
    padding: 5px;
    border-radius: var(--radius-pill);
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(180deg, hsla(var(--primary-h), 100%, 68%, 0.6), hsla(var(--primary-h), 70%, 42%, 0.4));
    color: white;
    border-color: rgba(92, 143, 255, 0.3);
    box-shadow: 0 2px 10px var(--primary-glow);
    font-weight: 600;
}

/* --- Search Bar --- */
.search-container {
    margin-bottom: 16px;
}

.search-container .form-control {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    padding: 10px 16px 10px 40px;
    font-size: 0.9rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    pointer-events: none;
}

/* --- Sort Dropdown --- */
.sort-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(240, 244, 248, 0.7);
    user-select: none;
    font-size: 0.85rem;
}

.sort-container label {
    font-weight: 600;
}

.sort-select {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--light);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.sort-select option {
    background: #1e293b;
}

/* ============================================
   FORM ROW
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ============================================
   ANALYTICS STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: rgba(240, 244, 248, 0.5);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   NOTIFICATION MODAL
   ============================================ */
#notificationModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), 0 0 60px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--light);
    border: 1px solid var(--border-strong);
    animation: modalIn 0.3s var(--transition-bounce) both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#notificationModal h2 {
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
}

#notificationModal img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: block;
}

#notificationModal p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(240, 244, 248, 0.8);
}

#notificationModal small {
    color: rgba(240, 244, 248, 0.45);
    font-size: 0.82rem;
}

#notificationModal .close-btn,
#forgotPasswordModal .close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.4rem;
    font-weight: bold;
    color: rgba(240, 244, 248, 0.5);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
    line-height: 1;
}

#notificationModal .close-btn:hover,
#forgotPasswordModal .close-btn:hover {
    color: var(--danger);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* ============================================
   LOGO
   ============================================ */
.logo-container img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0px 2px 10px rgba(255, 255, 255, 0.5));
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: rgba(240, 244, 248, 0.4);
    font-size: 0.95rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

/* ============================================
   CALENDAR (Existing)
   ============================================ */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
}

.calendar-day {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    text-align: center;
    min-height: 80px;
}

.calendar-day.has-event {
    background: var(--accent);
    color: white;
    cursor: pointer;
}

.event-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    color: var(--light);
    border: 1px solid var(--border-strong);
}

/* ============================================
   CONSISTENCY SECTION
   ============================================ */

/* Task List */
.add-task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.task-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--border-strong);
}

.task-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--success);
    transform: scale(1.15);
}

.task-title {
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
}

.task-title.completed {
    text-decoration: line-through;
    color: var(--gray);
    opacity: 0.6;
}

/* --- Heatmap --- */
.heatmap-container {
    padding: 10px;
    overflow-x: auto;
}

/* Custom scrollbar for heatmap */
.heatmap-container::-webkit-scrollbar {
    height: 6px;
}

.heatmap-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.heatmap-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    gap: 3px;
    margin-bottom: 10px;
}

.heatmap-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color var(--transition-fast);
}

.heatmap-box:hover {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 1px;
}

/* Contribution Levels */
.level-0 {
    background-color: rgba(255, 255, 255, 0.08);
}

.level-1 {
    background-color: #0e4429;
}

.level-2 {
    background-color: #006d32;
}

.level-3 {
    background-color: #26a641;
}

.level-4 {
    background-color: #39d353;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 10px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ============================================
   DROP AREA (Image Upload)
   ============================================ */
#dropArea {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

#dropArea:hover,
#dropArea.highlight {
    background: rgba(92, 143, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

#dropArea p {
    margin: 0;
    font-size: 0.9rem;
}

#imagePreview {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    display: none;
    border: 2px solid var(--border);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.4s var(--transition-bounce) both;
    position: relative;
    overflow: hidden;
}

.toast.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    animation: toastProgress 3s linear forwards;
    border-radius: 0 0 0 var(--radius-md);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.toast-success {
    border-left: 3px solid var(--success);
}

.toast.toast-success .toast-progress {
    background: var(--success);
}

.toast.toast-error {
    border-left: 3px solid var(--danger);
}

.toast.toast-error .toast-progress {
    background: var(--danger);
}

.toast.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast.toast-warning .toast-progress {
    background: var(--warning);
}

.toast.toast-info {
    border-left: 3px solid var(--primary);
}

.toast.toast-info .toast-progress {
    background: var(--primary);
}

/* ============================================
   SECTION TRANSITIONS
   ============================================ */
.section-transition {
    animation: sectionFade 0.35s ease both;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .bubble-nav a {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

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

    .nav-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 80px 24px 24px;
        border-left: 1px solid var(--border);
        z-index: 105;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-wrap {
        flex-direction: column;
        border-radius: var(--radius-lg);
        width: 100%;
        padding: 8px;
    }

    .bubble-nav {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .bubble-nav a {
        text-align: center;
        padding: 12px 16px;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
    }

    /* Hide CSS anchor bubbles on mobile (no support + vertical layout) */
    .bubble {
        display: none;
    }

    .bubble-nav a.active {
        background: linear-gradient(180deg, hsla(var(--primary-h), 100%, 68%, 0.5), hsla(var(--primary-h), 70%, 42%, 0.3));
    }

    .auth-card {
        padding: 32px 24px;
        max-width: 340px;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .notification-content {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
    }

    .toast {
        max-width: 100%;
    }

    .heatmap-container {
        padding: 10px 0;
    }
}

/* Small phone */
@media (max-width: 480px) {
    .auth-card {
        margin: 0 16px;
        padding: 28px 20px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .filter-bar {
        gap: 4px;
        padding: 4px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .notification-item {
        padding: 16px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
    color: white;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth scrollbar for dashboard */
.dashboard::-webkit-scrollbar {
    width: 8px;
}

.dashboard::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dashboard::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}