/* ==========================================================================
   INTELLIGENT COGNITIVE ALARM PLATFORM - CORE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Transition */
    --transition-speed: 0.3s;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Dark Mode Colors (Default) */
    --bg-primary: #0a0b1e;
    --bg-secondary: #12132d;
    --bg-sidebar: rgba(18, 19, 45, 0.75);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Semantic / Accent Colors */
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-grad: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent-grad: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --success-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --color-primary: #6366f1;
    --color-secondary: #3b82f6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-danger-grad: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);

    --navbar-height: 70px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;

    /* Card Glows */
    --glow-color: rgba(99, 102, 241, 0.15);
}

/* Light Mode Variables Override */
[data-theme="light"] {
    --bg-primary: #f0f2f9;
    --bg-secondary: #ffffff;
    --bg-sidebar: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(99, 102, 241, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --glass-highlight: rgba(99, 102, 241, 0.05);

    --text-primary: #1e1e38;
    --text-secondary: #62627a;
    --text-muted: #8c90a6;

    --glow-color: rgba(99, 102, 241, 0.06);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   REUSABLE UTILITIES & GLASSMORPHISM
   ========================================================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: transform var(--transition-speed) var(--transition-bounce), 
                box-shadow var(--transition-speed) ease, 
                border-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition-speed) ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--glow-color);
    border-color: var(--glass-highlight);
}

.glass-card.primary-hover:hover::before {
    background: var(--primary-grad);
}
.glass-card.secondary-hover:hover::before {
    background: var(--secondary-grad);
}
.glass-card.accent-hover:hover::before {
    background: var(--accent-grad);
}
.glass-card.success-hover:hover::before {
    background: var(--success-grad);
}

.grad-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-text-secondary {
    background: var(--secondary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-bounce);
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--glass-highlight);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.btn-accent {
    background: var(--accent-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.btn-danger {
    background: var(--color-danger-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-success, .btn-excel {
    background: linear-gradient(135deg, #107c41 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 124, 65, 0.4);
    border: none;
}
.btn-success:hover, .btn-excel:hover {
    background: linear-gradient(135deg, #0d6535 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 124, 65, 0.6);
    color: #ffffff;
}

/* ==========================================================================
   LANDING PAGE (INDEX.HTML) SPECIFIC STYLE
   ========================================================================== */

/* Navbar Style */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--navbar-height);
    background: rgba(10, 11, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-speed) ease;
}

[data-theme="light"] .landing-nav {
    background: rgba(240, 242, 249, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo i {
    font-size: 1.5rem;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle-theme, .top-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.nav-toggle-theme:hover, .top-nav-btn:hover {
    background: var(--glass-highlight);
    border-color: var(--color-primary);
    transform: rotate(15deg);
}

/* Landing Hero Section */
.hero-sec {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px 5%;
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
.hero-glow-1, .hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.25;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: 10%;
    right: 5%;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: 10%;
    left: 5%;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Circular Dashboard Mockup visual styling */
.hero-mockup {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.1) 100%);
    border: 2px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateSlow 40s linear infinite;
}

.hero-mockup-inner {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: counterRotateSlow 40s linear infinite;
    text-align: center;
    padding: 30px;
}

.hero-mockup-inner i.alarm-icon {
    font-size: 5rem;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: pulseGlow 3s infinite alternate;
}

.hero-clock {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.hero-status {
    font-size: 0.85rem;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glass-shadow);
}

.floating-card.fc-1 {
    top: 15%;
    left: -20px;
    animation: floatAnim 6s ease-in-out infinite alternate;
}

.floating-card.fc-2 {
    bottom: 15%;
    right: -20px;
    animation: floatAnim 6s ease-in-out infinite alternate 3s;
}

/* Sections Global */
section.sec-padding {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feat-card i {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feat-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feat-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Platform Benefits Section */
.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefit-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.benefit-svg-container {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefit-text h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.benefit-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works Flow */
.how-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.how-step {
    text-align: center;
    position: relative;
}

.how-step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.how-step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.how-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Role Selection Grid */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.role-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-card i.role-logo {
    font-size: 3rem;
    margin-bottom: 20px;
}

.role-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.role-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Testimonials Carousel */
.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card i.quote-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-grad);
    padding: 2px;
    margin-bottom: 10px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-meta h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testimonial-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section & Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99,102,241,0.25);
    background: var(--glass-highlight);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Footer styling */
.landing-footer {
    background: rgba(6, 7, 20, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 40px 5% 20px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   AUTHENTICATION PORTAL (LOGIN.HTML) — MODERN SAAS DESIGN SYSTEM
   ========================================================================== */
.auth-page-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #08091a;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
}

.auth-ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.auth-glow-1 {
    width: 600px;
    height: 600px;
    background: #6366f1;
    top: -150px;
    left: -150px;
}

.auth-glow-2 {
    width: 550px;
    height: 550px;
    background: #a855f7;
    bottom: -150px;
    right: 15%;
}

.auth-mesh-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
}

/* 2-Column Split Layout */
.auth-split-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 2;
}

/* LEFT COLUMN: BRAND & VALUE PROPOSITION */
.auth-brand-pane {
    background: linear-gradient(160deg, rgba(14, 16, 42, 0.92) 0%, rgba(8, 9, 26, 0.98) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    gap: 36px;
}

.auth-brand-header .auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.auth-logo-icon.small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.auth-logo-text {
    display: flex;
    flex-direction: column;
}

.auth-logo-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-logo-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-hero-copy {
    margin-top: 10px;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.auth-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.auth-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.auth-hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* 3 Feature Highlights */
.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.auth-feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-feature-icon-box.primary {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.auth-feature-icon-box.secondary {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.auth-feature-icon-box.accent {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.auth-feature-content h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.auth-feature-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}

.auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.auth-trust-badge i {
    color: #38bdf8;
}

.auth-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

/* RIGHT COLUMN: AUTHENTICATION CARD */
.auth-form-pane {
    background: #080918;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-mobile-header {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.auth-mobile-header .auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Role Selector Tab Bar */
.auth-role-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.auth-role-tabs .role-tab-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    user-select: none;
}

.auth-role-tabs .role-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-role-tabs .role-tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Auth Card Box */
.auth-card {
    background: rgba(18, 20, 48, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #a855f7, transparent);
}

.auth-card-header {
    margin-bottom: 22px;
}

.auth-card-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.auth-card-header p {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

/* Inline Alert Box */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 18px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    animation: fadeIn 0.25s ease;
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.auth-alert.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde047;
}

/* Form Field Groups */
.auth-field-group {
    margin-bottom: 18px;
}

.auth-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-field-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.auth-forgot-link {
    font-size: 0.8rem;
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 42px 12px 40px;
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #818cf8;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #cbd5e1;
}

/* Primary Action Button */
.auth-submit-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 6px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Google OAuth Section */
.auth-oauth-section {
    margin-top: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.google-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.auth-google-direct-btn {
    width: 100%;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    text-decoration: none;
}

.auth-google-direct-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-toggle-prompt {
    text-align: center;
    margin-top: 22px;
    font-size: 0.86rem;
    color: #94a3b8;
}

.auth-toggle-prompt a {
    color: #818cf8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-toggle-prompt a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Card Footer & Security Note */
.auth-card-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-security-note {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 12px;
}

.auth-security-note i {
    color: #22c55e;
    font-size: 0.8rem;
}

.auth-back-link a {
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.auth-back-link a:hover {
    color: #94a3b8;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 8px;
    margin-bottom: 12px;
}

.strength-meter-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    gap: 3px;
}

.strength-meter-segment {
    flex: 1;
    height: 100%;
    background: transparent;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-meter-segment.active-weak {
    background: #ef4444;
}

.strength-meter-segment.active-fair {
    background: #f59e0b;
}

.strength-meter-segment.active-good {
    background: #38bdf8;
}

.strength-meter-segment.active-strong {
    background: #22c55e;
}

.strength-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.74rem;
}

.strength-meta-label {
    color: #64748b;
}

.strength-meta-value {
    font-weight: 600;
    text-transform: capitalize;
}

.strength-meta-value.weak { color: #ef4444; }
.strength-meta-value.fair { color: #f59e0b; }
.strength-meta-value.good { color: #38bdf8; }
.strength-meta-value.strong { color: #22c55e; }

/* Password Requirements Checklist */
.pw-requirements-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.pw-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.pw-req-item i {
    font-size: 0.68rem;
}

.pw-req-item.valid {
    color: #86efac;
}

.pw-req-item.valid i {
    color: #22c55e;
}

/* Success State & Hero Box */
.auth-success-card {
    text-align: center;
    padding: 16px 8px;
    animation: fadeIn 0.3s ease;
}

.auth-success-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
}

.auth-success-icon-wrap.info {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.auth-success-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.auth-success-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 24px;
}

.auth-success-email-highlight {
    color: #cbd5e1;
    font-weight: 600;
    word-break: break-all;
}

/* Token Error / Expired Box */
.token-invalid-box {
    text-align: center;
    padding: 16px 8px;
    animation: fadeIn 0.3s ease;
}

.token-invalid-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Secondary Ghost Action Button */
.auth-secondary-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: 10px;
}

.auth-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1024px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-pane {
        padding: 40px 32px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .auth-hero-title {
        font-size: 2.2rem;
    }

    .auth-features-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }

    .auth-brand-footer {
        display: none;
    }

    .auth-form-pane {
        padding: 36px 24px;
    }
}

@media (max-width: 768px) {
    .auth-brand-pane {
        display: none;
    }

    .auth-mobile-header {
        display: block;
    }

    .auth-form-pane {
        padding: 30px 16px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .auth-card-header h2 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   DASHBOARD CORE LAYOUT (USER, COACH, ADMIN)
   ========================================================================== */
.db-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Drawer Style */
.db-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    transition: width var(--transition-speed) ease;
}

.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-toggle-btn {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color var(--transition-speed) ease;
}

.sidebar-toggle-btn:hover {
    color: var(--color-primary);
}

.sidebar-menu {
    list-style: none;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.sidebar-menu-item a:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.sidebar-menu-item.active a {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

/* Main Panel Wrapper */
.db-main {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) ease;
}

/* Collapsed Sidebar Logic */
body.sidebar-collapsed .db-sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .db-sidebar .logo span,
body.sidebar-collapsed .db-sidebar .sidebar-menu-item span {
    display: none;
}

body.sidebar-collapsed .db-main {
    margin-left: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .db-sidebar .sidebar-brand {
    justify-content: center;
}

body.sidebar-collapsed .db-sidebar .sidebar-menu-item a {
    justify-content: center;
    padding: 12px;
}

body.sidebar-collapsed .db-sidebar .sidebar-menu-item a i {
    font-size: 1.3rem;
}

/* Tabbed Dashboard Sections */
.tab-content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tab-content-section.active {
    display: block;
    opacity: 1;
}

/* Top Navbar Style */
.db-navbar {
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: rgba(18, 19, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 998;
}

[data-theme="light"] .db-navbar {
    background: rgba(255, 255, 255, 0.4);
}

.db-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.db-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.db-breadcrumb a:hover {
    color: var(--color-primary);
}

.db-breadcrumb .separator {
    color: var(--text-muted);
}

.db-breadcrumb .active-crumb {
    color: var(--text-primary);
    font-weight: 600;
}

.db-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Bar Wrapper */
.search-container {
    position: relative;
    max-width: 240px;
}

.search-container input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 12px 8px 36px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 100%;
    transition: all var(--transition-speed) ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--glass-highlight);
    max-width: 300px;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Profile Dropdown Styling */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 30px;
    transition: background var(--transition-speed) ease;
}

.profile-trigger:hover {
    background: var(--glass-highlight);
}

.profile-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.whatsapp-dp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-dp-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.profile-trigger span {
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-trigger i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    transform-origin: top right;
    animation: scaleIn 0.2s ease forwards;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* Inner Dashboard Content Area */
.db-content {
    flex-grow: 1;
    padding: 30px;
}

/* Header greeting & live metrics */
.db-header-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.db-greeting h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.db-greeting p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.db-time-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.db-time-widget .time {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.db-time-widget .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Stats Cards Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-grad); }
.stat-icon.secondary { background: var(--secondary-grad); }
.stat-icon.accent { background: var(--accent-grad); }
.stat-icon.success { background: var(--success-grad); }
.stat-icon.warning { background: var(--warning-grad); }
.stat-icon.danger { background: var(--color-danger-grad); }

.stat-details h3 {
    font-size: 1.6rem;
    margin-bottom: 2px;
    line-height: 1.15;
}

.stat-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-details .trend {
    font-size: 0.75rem;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.trend.up { color: var(--color-success); }
.trend.down { color: var(--color-danger); }

/* Dashboard Daily Goal Tracker Panel */
.daily-goal-panel {
    margin-bottom: 30px;
}

.goal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-progress-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.goal-percent-bubble {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--glass-highlight);
    padding: 2px 10px;
    border-radius: 12px;
}

.progress-bar-container {
    height: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-grad);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Dashboard Panel Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.grid-col-full {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .grid-col-full {
        grid-column: span 1;
    }
}

/* Chart Canvas Wrapper Styles */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.15rem;
}

/* Custom Table Layouts */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.custom-table th {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr {
    transition: background-color var(--transition-speed) ease;
}

.custom-table tr:hover {
    background-color: var(--glass-bg);
}

/* Badges for status, priorities */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Action items panel & list */
.action-panel-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
}

.action-card:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.action-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.action-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Custom Notifications list panel */
.notification-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notification-item-icon.blue { background: var(--secondary-grad); }
.notification-item-icon.purple { background: var(--primary-grad); }
.notification-item-icon.green { background: var(--success-grad); }
.notification-item-icon.yellow { background: var(--warning-grad); }

.notification-text h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.notification-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Active alarm toggle element styles */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-border);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-grad);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Custom Table Actions Styling */
.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
    margin-right: 6px;
}

.table-action-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.table-action-btn.edit-btn:hover {
    background: var(--success-grad);
    border-color: var(--color-success);
}

.table-action-btn.delete-btn:hover {
    background: var(--color-danger-grad);
    border-color: var(--color-danger);
}

/* ==========================================================================
   TOAST NOTIFICATIONS (TOAST REMINDERS)
   ========================================================================== */
#toast-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: 380px;
    width: calc(100vw - 60px);
}

.toast-message {
    background: rgba(18, 19, 45, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-primary);
    transform: translateX(120%);
    transition: transform 0.4s var(--transition-bounce), opacity 0.4s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
}

.toast-message.toast-success::after { background: var(--color-success); }
.toast-message.toast-warning::after { background: var(--color-warning); }
.toast-message.toast-danger::after { background: var(--color-danger); }
.toast-message.toast-info::after { background: var(--color-secondary); }

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-success .toast-icon { color: var(--color-success); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-danger .toast-icon { color: var(--color-danger); }
.toast-info .toast-icon { color: var(--color-secondary); }

.toast-body {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    flex-shrink: 0;
    margin-top: 3px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   MODAL WINDOW & POPUPS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    padding: 20px;
}

.modal-overlay.show,
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-speed) var(--transition-bounce);
}

.modal-overlay.show .modal-container,
.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   LOADING SPINNER MASK
   ========================================================================== */
.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.loader-mask.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: rotateFast 1s linear infinite;
}

.loader-mask p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterRotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes rotateFast {
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)); }
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Cognitive Game Challenge Modal layout components */
.challenge-math-question {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 20px 0;
}

.challenge-feedback {
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    min-height: 24px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 30px auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-mockup {
        width: 320px;
        height: 320px;
    }

    .hero-mockup-inner {
        width: 240px;
        height: 240px;
    }

    .hero-mockup-inner i.alarm-icon {
        font-size: 3.5rem;
    }

    .hero-clock {
        font-size: 1.6rem;
    }

    .benefits-container {
        grid-template-columns: 1fr;
    }

    .benefit-img {
        order: 2;
    }
}

@media (max-width: 768px) {
    /* Navbar styling updates */
    .landing-nav .nav-links {
        display: none; /* In a real app we'd build a hamburger menu, but for simulation we prioritize dashboard navigations */
    }

    /* Dashboard mobile adjustments */
    .db-sidebar {
        left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width) !important;
    }

    body.sidebar-open .db-sidebar {
        left: 0;
    }

    .db-main {
        margin-left: 0 !important;
    }

    .mobile-nav-toggle {
        display: block;
        margin-right: 15px;
    }

    .db-navbar {
        padding: 0 15px;
    }

    .db-content {
        padding: 20px 15px;
    }

    .db-header-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .db-time-widget {
        text-align: left;
    }

    .search-container {
        display: none; /* Hide search bar on mobile for cleaner top bar */
    }

    /* Steps alignment */
    .how-container::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}


/* Fix dropdown options */
select,
.form-select {
    color: #ffffff;
    background-color: #1b1d3a;
}

select option,
.form-select option {
    color: #ffffff;
    background-color: #1b1d3a;
}

/* ==========================================================================
   WAKE-UP VERIFICATION SYSTEM - HUD & STATUS STYLES
   ========================================================================== */

.verification-hud-box {
    background: rgba(18, 19, 45, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.verification-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.verification-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.verification-title i {
    color: #818cf8;
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Verification Status Badges */
.verification-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.verification-status-badge.status-pending {
    background: rgba(156, 163, 175, 0.18);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.35);
}

.verification-status-badge.status-in_progress {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.verification-status-badge.status-passed {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    animation: passGlow 1.5s infinite alternate;
}

.verification-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.22);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.verification-status-badge.status-timeout {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

@keyframes passGlow {
    0% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.7); }
}

/* Verification Metrics Grid */
.verification-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.verification-metric-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.verification-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verification-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

/* Multi-Step Progress Bar */
.verification-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.verification-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #10b981);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Live Timer Display */
.verification-timer-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.verification-timer-banner.timer-critical {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    animation: criticalPulse 1s infinite alternate;
}

@keyframes criticalPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.verification-timer-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verification-timer-digits {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f59e0b;
}

.verification-timer-banner.timer-critical .verification-timer-digits {
    color: #ef4444;
}

/* Shake Animation on Wrong Answer / Timeout */
.challenge-shake {
    animation: modalShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes modalShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Bypass Protection styling */
#challenge-modal .modal-close-btn {
    display: none !important;
}

#challenge-modal {
    z-index: 99999 !important;
}

/* ==========================================================================
   REQUIREMENT 11: NOTIFICATION & REMINDER SYSTEM STYLING
   ========================================================================== */

.notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.notif-bell-btn:hover {
    background: var(--glass-highlight);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-badge.has-unread {
    display: flex;
}

/* Notification Dropdown Menu */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 1002;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: scaleIn 0.2s ease forwards;
}

.notif-dropdown.show {
    display: flex;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.notif-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-actions {
    display: flex;
    gap: 8px;
}

.notif-dropdown-action-btn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.notif-dropdown-action-btn:hover {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.15);
}

.notif-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.06);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.notif-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-icon-circle.bedtime { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.notif-icon-circle.wake_up { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.notif-icon-circle.habit_alert { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.notif-icon-circle.challenge { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.notif-icon-circle.progress { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.notif-icon-circle.platform_announcement { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.notif-item-body {
    flex-grow: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.notif-item-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.notif-dropdown-footer a {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.notif-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Full Notification Center Cards */
.notif-center-card {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.notif-center-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

.notif-center-card.unread {
    background: rgba(99, 102, 241, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
}

.notif-center-card.priority-urgent { border-left-color: #ef4444; }
.notif-center-card.priority-high { border-left-color: #f59e0b; }
.notif-center-card.priority-normal { border-left-color: #6366f1; }
.notif-center-card.priority-low { border-left-color: #64748b; }

.notif-center-body {
    flex-grow: 1;
}

.notif-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.notif-center-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.notif-center-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 10px;
}

.notif-center-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Category Filter Chips & Notification Search Bar */
.notif-filter-container,
.notif-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-chip,
.notif-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #94a3b8);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.notif-chip i,
.notif-filter-chip i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.notif-chip:hover,
.notif-filter-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.notif-chip:hover i,
.notif-filter-chip:hover i {
    transform: scale(1.15);
}

.notif-chip.active,
.notif-filter-chip.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.notif-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
}

.notif-search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s;
}

.notif-search-box input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #ffffff;
    font-size: 0.84rem;
    outline: none;
    transition: all 0.2s ease;
}

.notif-search-box input:focus {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.notif-search-box input:focus + i,
.notif-search-box:focus-within i {
    color: #6366f1;
}

.notif-search-box input::placeholder {
    color: var(--text-muted, #64748b);
}

/* Custom Toggle Switch for Preferences */
.pref-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pref-toggle-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.pref-toggle-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.switch-control {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
    background-color: var(--color-primary);
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* ==========================================================================
   MULTI-CHANNEL NOTIFICATION PREFERENCES & DELIVERY STYLING
   ========================================================================== */

/* Global Channel Pill Group */
.channel-pill-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}

.channel-pill-btn {
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.channel-pill-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.channel-pill-btn.active {
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.channel-pill-btn.active.disabled-pill {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* Preference Matrix Container & Cards */
.pref-matrix-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.pref-matrix-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.pref-matrix-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.pref-matrix-desc {
    flex-grow: 1;
    min-width: 200px;
}

.pref-matrix-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.pref-matrix-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pref-matrix-controls {
    display: flex;
    gap: 18px;
    align-items: center;
}

.pref-channel-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pref-channel-toggle.active {
    color: #ffffff;
}

/* Phone Configuration Box */
.phone-config-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.phone-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.phone-status-badge.configured {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.phone-status-badge.missing {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.phone-guidance-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #fde68a;
    margin-top: 10px;
    line-height: 1.4;
}

/* Delivery Channel Badges */
.chan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.chan-badge-email {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.chan-badge-sms {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.chan-badge-both {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.chan-badge-in_app {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Delivery Status Badges */
.delivery-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 600;
}

.delivery-status-pill.status-delivered {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.delivery-status-pill.status-sent {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.delivery-status-pill.status-unconfigured {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.delivery-status-pill.status-failed {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.delivery-status-pill.status-scheduled {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Report Delivery Scheduling Card */
.report-delivery-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.report-delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

/* ==========================================================================
   PRODUCTION SAAS POLISH: SKELETON LOADERS & SHIMMER
   ========================================================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-box {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }

.skeleton-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   PRODUCTION EMPTY & ERROR STATES
   ========================================================================== */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 14px;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 360px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Error state banner */
.dashboard-error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.86rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   ENHANCED ACCESSIBILITY & FOCUS RINGS
   ========================================================================== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Micro-interaction polish */
.stat-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.custom-table th {
    letter-spacing: 0.04em;
}

.custom-table td {
    transition: background 0.15s ease;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}


