/* ==========================================================================
   Pusula - Ultra-Luxury Cyber-Obsidian Design System
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Ultra-Luxury Color Palette */
    --lux-bg-deep: #030712;
    --lux-bg-surface: #0b0f19;
    --lux-card-bg: rgba(15, 23, 42, 0.65);
    --lux-card-border: rgba(255, 255, 255, 0.08);
    --lux-card-border-hover: rgba(56, 189, 248, 0.35);
    
    --lux-cyan: #38bdf8;
    --lux-cyan-glow: rgba(56, 189, 248, 0.4);
    --lux-indigo: #6366f1;
    --lux-violet: #a855f7;
    --lux-gold: #f59e0b;
    --lux-gold-glow: rgba(245, 158, 11, 0.4);
    --lux-emerald: #10b981;
    --lux-rose: #f43f5e;
    
    --lux-text-main: #f8fafc;
    --lux-text-muted: #94a3b8;
    --lux-text-dim: #64748b;
    
    --lux-input-bg: rgba(15, 23, 42, 0.7);
    --lux-input-border: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animations & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows & Glows */
    --shadow-lux: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.12);
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--lux-bg-deep);
    color: var(--lux-text-main);
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--lux-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--lux-cyan), var(--lux-violet));
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

/* Background Particle & Mesh Canvas */
#luxCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* Ambient Background Lights */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: floatGlow 16s infinite alternate ease-in-out;
    will-change: transform;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(0,0,0,0) 70%);
    top: -15%;
    left: 10%;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(0,0,0,0) 70%);
    bottom: -20%;
    right: 5%;
    animation-delay: -6s;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(0,0,0,0) 70%);
    top: 30%;
    right: 35%;
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.12); }
    100% { transform: translate(-30px, 40px) scale(0.92); }
}

/* Compass Background SVG */
.compass-bg-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    transition: transform 0.25s cubic-bezier(0.1, 1, 0.1, 1);
}

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

.compass-needle {
    transform-origin: 200px 200px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.6));
}

/* LOGIN SCREEN STYLES */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 430px;
    padding: 24px 16px;
    margin: 90px auto;
    perspective: 1200px;
}

.login-card {
    position: relative;
    background: var(--lux-card-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--lux-card-border);
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lux);
    transition: transform 0.25s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--lux-cyan), var(--lux-violet), var(--lux-gold), transparent);
    opacity: 0.9;
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.25));
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--lux-cyan);
    animation: rotateCompass 24s linear infinite;
}

@keyframes rotateCompass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--lux-cyan) 80%, var(--lux-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-badge.single-user-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(168, 85, 247, 0.2));
    color: var(--lux-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--lux-text-main);
    margin-bottom: 6px;
}

.brand-subtitle {
    font-size: 13.5px;
    color: var(--lux-text-muted);
    line-height: 1.5;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--lux-text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--lux-text-dim);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--lux-text-main);
    background-color: var(--lux-input-bg);
    border: 1px solid var(--lux-input-border);
    border-radius: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: var(--lux-cyan);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--lux-text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.error-msg {
    font-size: 12.5px;
    color: var(--lux-rose);
    display: none;
}

.input-group.invalid .form-input {
    border-color: var(--lux-rose);
}

.input-group.invalid .error-msg {
    display: block;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
}

.checkbox-box {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    background: var(--lux-input-bg);
    border: 1px solid var(--lux-input-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon {
    width: 13px;
    height: 13px;
    color: #ffffff;
    opacity: 0;
}

.custom-checkbox input:checked ~ .checkbox-box {
    background: var(--lux-cyan);
    border-color: var(--lux-cyan);
}

.custom-checkbox input:checked ~ .checkbox-box .check-icon {
    opacity: 1;
}

.checkbox-label {
    font-size: 13.5px;
    color: var(--lux-text-muted);
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 40%, #6366f1 75%, #a855f7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--lux-text-dim);
}

/* DASHBOARD LAYOUT STYLES */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    border-right: 1px solid var(--lux-card-border);
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: 14px;
    color: var(--lux-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--lux-text-main);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--lux-cyan);
    font-weight: 600;
}

.nav-icon {
    width: 19px;
    height: 19px;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lux-cyan), var(--lux-violet), var(--lux-gold));
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lux-text-main);
}

.user-role {
    display: block;
    font-size: 11px;
    color: var(--lux-gold);
    font-weight: 500;
}

.sidebar-logout-btn {
    background: transparent;
    border: none;
    color: var(--lux-text-dim);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.sidebar-logout-btn:hover {
    color: var(--lux-rose);
}

/* Main Content */
.main-content {
    margin-left: 270px;
    flex: 1;
    padding: 28px 40px;
    min-height: 100vh;
}

/* Top Navbar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--lux-text-dim);
}

.search-box input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--lux-input-border);
    border-radius: 14px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--lux-cyan);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-clock-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--lux-card-border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lux-cyan);
}

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

.cf-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 13px;
    font-weight: 600;
    color: var(--lux-emerald);
}

.status-dot.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--lux-emerald);
    box-shadow: 0 0 12px var(--lux-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Banner */
.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.75));
    border: 1px solid var(--lux-card-border);
    box-shadow: var(--shadow-lux);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(245, 158, 11, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--lux-cyan);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-tag-icon {
    width: 15px;
    height: 15px;
    color: var(--lux-gold);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 40%, var(--lux-cyan) 80%, var(--lux-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--lux-text-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.hero-compass-card {
    position: relative;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.65));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
    transition: all var(--transition-normal);
}

.hero-compass-card:hover {
    border-color: var(--lux-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.compass-card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1), transparent 70%);
    pointer-events: none;
}

.compass-dial-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-compass-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.mini-needle-group {
    transform-origin: 100px 100px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.compass-telemetry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.compass-deg {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--lux-cyan);
    letter-spacing: 0.5px;
}

.compass-status-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--lux-gold);
    letter-spacing: 1.5px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--lux-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--lux-card-border);
    border-radius: 20px;
    padding: 22px;
    transition: transform var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--lux-card-border-hover);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.metric-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--lux-text-muted);
}

.metric-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-box svg {
    width: 20px;
    height: 20px;
}

.metric-icon-box.blue { background: rgba(56, 189, 248, 0.18); color: var(--lux-cyan); }
.metric-icon-box.green { background: rgba(16, 185, 129, 0.18); color: var(--lux-emerald); }
.metric-icon-box.purple { background: rgba(168, 85, 247, 0.18); color: var(--lux-violet); }
.metric-icon-box.gold { background: rgba(245, 158, 11, 0.18); color: var(--lux-gold); }
.metric-icon-box.emerald { background: rgba(245, 158, 11, 0.18); color: var(--lux-gold); }

.metric-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--lux-text-dim);
}

.metric-footer svg {
    width: 14px;
    height: 14px;
}

.metric-footer.positive { color: var(--lux-emerald); }

/* ==========================================================================
   EXECUTIVE TASK & FOCUS COMMAND CENTER (ULTRA-LUXURY)
   ========================================================================== */
.widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.luxury-task-center {
    background: var(--lux-card-bg);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--lux-card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lux);
    position: relative;
    overflow: hidden;
}

.luxury-task-center::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lux-cyan), var(--lux-violet), var(--lux-gold));
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.widget-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.widget-icon-bg {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.widget-icon-bg .widget-icon {
    width: 22px;
    height: 22px;
    color: var(--lux-cyan);
}

.widget-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--lux-text-main);
    line-height: 1.2;
}

.widget-subdesc {
    font-size: 13px;
    color: var(--lux-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.widget-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--lux-gold);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--lux-input-border);
    color: var(--lux-text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    color: var(--lux-text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

/* Animated Progress Bar */
.progress-bar-container {
    margin: 20px 0 24px 0;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 18px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--lux-text-muted);
    margin-bottom: 8px;
}

.progress-track {
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lux-cyan), var(--lux-violet), var(--lux-gold));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--lux-cyan-glow);
}

/* Interactive Water Tracker Widget */
.water-tracker-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.water-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.water-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.5));
    border: 1px solid rgba(56, 189, 248, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.water-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.water-info {
    flex: 1;
    max-width: 380px;
}

.water-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.water-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--lux-text-main);
}

.water-goal-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--lux-cyan);
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.water-volume-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.water-current {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--lux-cyan);
}

.water-unit {
    font-size: 12px;
    color: var(--lux-text-dim);
}

.water-percent-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--lux-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.water-mini-track {
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.water-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.water-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.water-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--lux-cyan);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.water-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: var(--lux-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.water-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--lux-input-border);
    color: var(--lux-text-muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.water-action-btn:hover {
    color: var(--lux-text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.95);
}

.water-config-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
}

.water-config-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lux-text-muted);
    margin-bottom: 8px;
}

.water-config-row {
    display: flex;
    gap: 10px;
}

.water-goal-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 10px;
    color: var(--lux-text-main);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

/* Interactive Photo Proof Habit Card */
.photo-habit-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.photo-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.photo-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.5));
    border: 1px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.photo-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.photo-info {
    flex: 1;
}

.photo-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.photo-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--lux-text-main);
}

.photo-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}

.photo-status-badge.pending {
    background: rgba(245, 158, 11, 0.18);
    color: var(--lux-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.photo-status-badge.completed {
    background: rgba(16, 185, 129, 0.18);
    color: var(--lux-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.photo-subdesc {
    font-size: 12.5px;
    color: var(--lux-text-muted);
}

.photo-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--lux-gold);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.photo-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: var(--lux-gold);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.photo-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--lux-input-border);
    color: var(--lux-text-muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.photo-action-btn:hover {
    color: var(--lux-text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.95);
}

/* Interactive Teeth Brushing Dual-Session & Timer Widget */
.brush-tracker-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.brush-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.brush-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(147, 51, 234, 0.5));
    border: 1px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.brush-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.brush-info {
    flex: 1;
}

.brush-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.brush-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--lux-text-main);
}

.brush-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}

.brush-status-badge.pending {
    background: rgba(168, 85, 247, 0.18);
    color: var(--lux-violet);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.brush-status-badge.completed {
    background: rgba(16, 185, 129, 0.18);
    color: var(--lux-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.brush-subdesc {
    font-size: 12.5px;
    color: var(--lux-text-muted);
}

.brush-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brush-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--lux-violet);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.brush-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--lux-violet);
    color: #ffffff;
}

.brush-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.5));
    border-color: var(--lux-emerald);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.brush-timer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--lux-input-border);
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.brush-timer-btn:hover {
    border-color: var(--lux-cyan);
    color: var(--lux-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.brush-timer-btn.running {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.3));
    border-color: var(--lux-cyan);
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

/* Interactive TV Show Tracker Widget (Game of Thrones) */
.tvshow-tracker-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.15);
    transition: all var(--transition-fast);
}

.tvshow-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.tvshow-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(202, 138, 4, 0.5));
    border: 1px solid rgba(234, 179, 8, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

.tvshow-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.tvshow-info {
    flex: 1;
}

.tvshow-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.tvshow-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--lux-text-main);
}

.tvshow-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.18);
    color: var(--lux-gold);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.tvshow-badge.archived {
    background: rgba(16, 185, 129, 0.18);
    color: var(--lux-emerald);
    border-color: rgba(16, 185, 129, 0.3);
}

.imdb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.3);
    padding: 2px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.imdb-link:hover {
    background: rgba(245, 197, 24, 0.25);
    color: #ffffff;
}

.tvshow-subdesc {
    font-size: 12.5px;
    color: var(--lux-text-muted);
}

.tvshow-mini-track {
    width: 100%;
    max-width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.tvshow-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    border-radius: 4px;
    transition: width var(--transition-medium);
}

.tvshow-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tvshow-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: var(--lux-gold);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tvshow-btn:hover {
    background: rgba(234, 179, 8, 0.35);
    border-color: var(--lux-gold);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    transform: translateY(-1px);
}

.tvshow-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--lux-input-border);
    color: var(--lux-text-muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tvshow-action-btn:hover {
    color: var(--lux-text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.95);
}

/* Photo Archive Gallery Modal */
.photo-archive-modal {
    max-width: 640px !important;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.gallery-card {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-fast);
}

.gallery-card:hover {
    transform: translateY(-2px);
    border-color: var(--lux-gold);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.9);
}

.gallery-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--lux-text-muted);
}

.gallery-delete-btn {
    background: transparent;
    border: none;
    color: var(--lux-rose);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.gallery-delete-btn:hover {
    opacity: 1;
}

/* Filter Tabs */
.task-controls-bar {
    margin-bottom: 20px;
}

.filter-tabs {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--lux-text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--lux-text-main);
}

.filter-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--lux-cyan);
    font-weight: 600;
}

/* Luxury Input Form */
.lux-form {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.input-with-select {
    flex: 1;
    display: flex;
    gap: 10px;
}

.input-with-select input {
    flex: 2;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 14px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.input-with-select input:focus {
    border-color: var(--lux-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.lux-select {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 14px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
}

.lux-select:focus {
    border-color: var(--lux-cyan);
}

.category-select-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.manage-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    border-radius: 14px;
    color: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.manage-cat-btn svg {
    width: 20px;
    height: 20px;
    stroke: #38bdf8;
    display: block;
}

.manage-cat-btn:hover,
.manage-cat-btn:active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.35));
    border-color: var(--lux-cyan);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

/* Category Modal */
.lux-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.lux-modal-backdrop.hidden {
    display: none !important;
}

.lux-modal {
    background: var(--lux-card-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--lux-card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}

.lux-modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.lux-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--lux-text-main);
}

.modal-icon {
    width: 20px;
    height: 20px;
    color: var(--lux-cyan);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--lux-text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--lux-rose);
}

.add-cat-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-cat-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 12px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
}

.add-cat-form input:focus {
    border-color: var(--lux-cyan);
}

.add-cat-submit-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--lux-cyan), var(--lux-violet));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}

.category-list-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lux-text-muted);
    margin-bottom: 12px;
}

.custom-cat-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.custom-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--lux-text-main);
}

.delete-cat-btn {
    background: transparent;
    border: none;
    color: var(--lux-rose);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.delete-cat-btn:hover {
    opacity: 1;
}

.lux-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--lux-cyan), var(--lux-indigo), var(--lux-violet));
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
    transition: all var(--transition-fast);
}

.lux-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

/* Luxury Task List Items */
.lux-task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.lux-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.lux-task-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.task-category-chip {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--lux-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.task-priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.task-priority-dot.high { background-color: var(--lux-rose); box-shadow: 0 0 10px var(--lux-rose); }
.task-priority-dot.medium { background-color: var(--lux-gold); box-shadow: 0 0 10px var(--lux-gold); }
.task-priority-dot.low { background-color: var(--lux-cyan); box-shadow: 0 0 10px var(--lux-cyan); }

.task-time-text {
    font-size: 11px;
    color: var(--lux-text-dim);
    margin-left: 8px;
}

.lux-task-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 10px;
    color: var(--lux-rose);
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.task-delete-btn:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: rgba(244, 63, 94, 0.6);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
    transform: scale(1.05);
}

.task-delete-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 16px;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--lux-text-main);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.toast.success { border-left: 4px solid var(--lux-emerald); }
.toast.error { border-left: 4px solid var(--lux-rose); }
.toast.info { border-left: 4px solid var(--lux-cyan); }

/* ==========================================================================
   FLAWLESS MOBILE RESPONSIVE INTERFACE & TOUCH OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Mobile Performance & GPU Optimizations */
    .ambient-glow {
        filter: blur(40px) !important;
        opacity: 0.2 !important;
        animation: none !important;
    }
    .glow-1, .glow-2, .glow-3 {
        width: 240px !important;
        height: 240px !important;
    }
    .compass-bg-container {
        width: 300px !important;
        height: 300px !important;
        opacity: 0.25 !important;
    }
    .lux-modal {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    /* Prevent iOS Safari / Mobile Browser Auto-Zoom on Input Focus */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="email"],
    input[type="search"],
    select,
    textarea,
    .form-input,
    .lux-select,
    .search-box input,
    .add-cat-form input,
    .water-goal-input,
    .input-with-select input {
        font-size: 16px !important;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 16px 16px 90px 16px;
        width: 100%;
        max-width: 100vw;
    }

    /* Mobile Top Nav */
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 20px;
        width: 100%;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .search-box input {
        width: 100%;
        font-size: 16px !important;
    }

    .top-nav-right {
        justify-content: space-between;
        width: 100%;
    }

    /* Hero Banner Mobile */
    .hero-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 20px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 13.5px;
    }

    /* Metrics Grid 2x2 on Mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .metric-value {
        font-size: 22px;
    }

    /* Executive Task Center & Form Mobile */
    .luxury-task-center {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-badges {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .task-controls-bar {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Input Form Vertical Stacking & Symmetric Alignment */
    .lux-form {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .input-with-select {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    #newTaskInput {
        width: 100%;
        height: 48px;
        font-size: 16px !important;
        border-radius: 14px;
    }

    .category-select-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .lux-select {
        flex: 1;
        width: 100%;
        height: 48px;
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #f8fafc;
        font-size: 16px !important;
        padding: 0 14px;
        border-radius: 14px;
    }

    .manage-cat-btn {
        height: 48px;
        width: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .lux-btn {
        width: 100%;
        height: 48px;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        border-radius: 14px;
    }

    /* Login Card Mobile */
    .login-wrapper {
        margin: 20px auto;
        padding: 12px;
        width: 100%;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    /* Water, Photo, Brush & TV Show Tracker Cards Mobile Layout */
    .water-tracker-card,
    .photo-habit-card,
    .brush-tracker-card,
    .tvshow-tracker-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 16px;
        width: 100%;
        border-radius: 20px;
    }

    .water-card-controls,
    .photo-card-controls,
    .brush-card-controls,
    .tvshow-card-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .water-action-btn,
    .photo-action-btn,
    .brush-timer-btn,
    .tvshow-action-btn {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 13.5px;
        font-weight: 600;
        background: rgba(30, 41, 59, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--lux-text-main);
    }

    .water-btn,
    .photo-btn,
    .brush-btn,
    .tvshow-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 13.5px;
        font-weight: 600;
    }

    .photo-btn.upload-btn {
        grid-column: 1 / -1;
        height: 44px;
    }

    .tvshow-btn.next-ep {
        grid-column: 1 / -1;
        height: 44px;
    }

    .tvshow-mini-track {
        max-width: 100%;
    }

    .tvshow-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Task List & Custom Items Mobile */
    .lux-task-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .task-text {
        font-size: 13.5px;
        word-break: break-word;
    }

    .custom-cat-item {
        flex-wrap: wrap;
        gap: 8px;
        word-break: break-word;
    }

    /* Modals Mobile Touch Screen */
    .lux-modal {
        max-height: 90vh;
        width: 95%;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .toast-container {
        left: 14px;
        right: 14px;
        bottom: 20px;
    }

    .toast {
        width: 100%;
        font-size: 13px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .water-volume-row {
        flex-wrap: wrap;
    }
    
    .photo-title-row {
        flex-direction: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Empty State Component Styling */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin: 12px 0;
    color: var(--lux-text-muted);
}

.empty-state-icon {
    width: 38px;
    height: 38px;
    color: var(--lux-sky);
    margin-bottom: 10px;
    opacity: 0.85;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--lux-text-main);
    margin-bottom: 4px;
}

.empty-state-sub {
    font-size: 12.5px;
    color: var(--lux-text-dim);
}

/* ==========================================================================
   UNIVERSAL SVG ICON STYLING & FALLBACK GUARANTEE
   ========================================================================== */
.logo-icon-wrapper svg,
.metric-icon-box svg,
.widget-icon-bg svg,
.water-icon-circle svg,
.photo-icon-circle svg,
.brush-icon-circle svg,
.tvshow-icon-circle svg,
.modal-icon svg,
.input-icon svg,
.footer-icon svg,
.search-icon svg,
.clock-icon svg,
.nav-icon svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.logo-icon-wrapper svg { stroke: var(--lux-cyan); width: 22px; height: 22px; }
.metric-icon-box.gold svg { stroke: var(--lux-gold); width: 20px; height: 20px; }
.metric-icon-box.green svg { stroke: var(--lux-emerald); width: 20px; height: 20px; }
.metric-icon-box.blue svg { stroke: var(--lux-cyan); width: 20px; height: 20px; }
.metric-icon-box.purple svg { stroke: var(--lux-violet); width: 20px; height: 20px; }
.widget-icon-bg svg { stroke: var(--lux-cyan); width: 22px; height: 22px; }
.water-icon-circle svg { stroke: #38bdf8; width: 22px; height: 22px; }
.photo-icon-circle svg { stroke: #f59e0b; width: 22px; height: 22px; }
.brush-icon-circle svg { stroke: #c084fc; width: 22px; height: 22px; }
.tvshow-icon-circle svg { stroke: #f59e0b; width: 22px; height: 22px; }

/* ==========================================================================
   PERSONAL NOTES & IDEAS BOARD MODULE STYLES
   ========================================================================== */
.notes-icon-bg {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
}

.notes-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.notes-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.notes-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lux-text-dim);
    pointer-events: none;
}

.notes-search-wrapper input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--lux-input-border);
    border-radius: 12px;
    color: var(--lux-text-main);
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: all var(--transition-fast);
}

.notes-search-wrapper input:focus {
    border-color: var(--lux-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.notes-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
}

.notes-filter-tabs::-webkit-scrollbar {
    height: 3px;
}
.notes-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Note Card Styling - Ultra Luxury Upgrade */
.note-card {
    position: relative;
    background: linear-gradient(145deg, rgba(22, 33, 54, 0.85), rgba(12, 18, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--lux-cyan), #3b82f6);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(56, 189, 248, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
}

.note-card.pinned {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
}

.note-card.pinned::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #fbbf24);
}

/* Theme color accents */
.note-card.theme-cyan::before { background: linear-gradient(90deg, #38bdf8, #0284c7); }
.note-card.theme-gold::before { background: linear-gradient(90deg, #fbbf24, #d97706); }
.note-card.theme-purple::before { background: linear-gradient(90deg, #c084fc, #9333ea); }
.note-card.theme-emerald::before { background: linear-gradient(90deg, #34d399, #059669); }
.note-card.theme-rose::before { background: linear-gradient(90deg, #fb7185, #e11d48); }

.note-card.theme-cyan:hover { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.25); }
.note-card.theme-gold:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.25); }
.note-card.theme-purple:hover { border-color: rgba(192, 132, 252, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(192, 132, 252, 0.25); }
.note-card.theme-emerald:hover { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(52, 211, 153, 0.25); }
.note-card.theme-rose:hover { border-color: rgba(244, 63, 94, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.25); }

.note-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.note-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.note-card-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    word-break: break-word;
    cursor: pointer;
    transition: color 0.2s ease;
}

.note-card-title:hover {
    color: #38bdf8;
}

.note-card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    width: fit-content;
}

.pin-badge {
    color: #fef08a;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.note-card-body {
    font-size: 0.89rem;
    color: #cbd5e1;
    line-height: 1.65;
    word-break: break-word;
    max-height: 170px;
    overflow-y: auto;
    padding-right: 6px;
    cursor: pointer;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) rgba(15, 23, 42, 0.4);
}

.note-card-body::-webkit-scrollbar {
    width: 4px;
}

.note-card-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.note-card-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), rgba(168, 85, 247, 0.5));
    border-radius: 4px;
}

.note-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.8);
}

.note-preview-row {
    margin-bottom: 8px;
    line-height: 1.6;
}

.note-preview-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

.note-preview-val {
    color: #e2e8f0;
}

.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.note-date {
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.7);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.note-btn.read-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.note-btn.pin-btn:hover,
.note-btn.pin-btn.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
}

.note-btn.copy-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.note-btn.edit-btn:hover {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.18);
    border-color: rgba(192, 132, 252, 0.4);
}

.note-btn.delete-btn:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.4);
}

/* Modal Form Custom Styling */
.lux-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    transition: all var(--transition-fast);
}

.lux-textarea:focus {
    border-color: var(--lux-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.lux-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--lux-input-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--lux-text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.lux-input:focus {
    border-color: var(--lux-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.lux-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lux-text-muted);
    margin-bottom: 6px;
}

.lux-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--lux-gold);
    cursor: pointer;
}

/* ==========================================================================
   Note Review System (Tekrar Modu) Styling
   ========================================================================== */

.review-sparkle-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-sparkle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6) !important;
}

.review-card-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card-box:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2) !important;
}

/* ==========================================================================
   Ultra-Luxury Reading Mode (Odaklı Okuma Ekranı)
   ========================================================================== */

.lux-reader-modal {
    max-width: 820px !important;
    width: 95% !important;
    background: rgba(10, 15, 30, 0.92) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(245, 158, 11, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    position: relative;
    overflow: hidden;
}

/* Ambient glow subtle animated shapes */
.lux-reader-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    animation: luxPulseGlow 8s ease-in-out infinite alternate;
}

.lux-reader-glow.glow-top-left {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.lux-reader-glow.glow-bottom-right {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
}

@keyframes luxPulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.35; }
}

.lux-reader-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.lux-reader-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(56, 189, 248, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
}

.lux-reader-title-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lux-reader-sparkle-pill {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fef08a;
    -webkit-text-fill-color: initial;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.lux-reader-subtitle {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.65);
    margin-top: 2px;
}

.lux-reader-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lux-reader-select {
    padding: 7px 14px !important;
    font-size: 0.84rem !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lux-reader-select-sm {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
}

.lux-reader-font-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lux-reader-zoom-btn-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lux-reader-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lux-reader-icon-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.lux-reader-close-btn {
    font-size: 1.6rem !important;
    line-height: 1 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lux-reader-close-btn:hover {
    background: rgba(244, 63, 94, 0.2) !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
    color: #f43f5e !important;
    transform: rotate(90deg);
}

/* Progress bar container */
.lux-reader-progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.lux-reader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #38bdf8, #a855f7);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-reader-body {
    position: relative;
    z-index: 1;
    padding: 24px 28px !important;
}

/* Meta Bar */
.lux-reader-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.lux-reader-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lux-reader-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 20px;
}

.lux-reader-badge.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.lux-reader-stats-pill {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
}

.lux-reader-kbd-tips {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.7);
}

.kbd-label {
    font-weight: 500;
}

.lux-reader-kbd-tips kbd {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Card Display Box */
.lux-reader-card-display {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(11, 18, 33, 0.9)) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 25px rgba(245, 158, 11, 0.08) !important;
    transition: all 0.35s ease !important;
    position: relative;
    overflow: hidden;
}

.lux-reader-card-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #38bdf8, #a855f7);
    opacity: 0.8;
}

/* Content Formatting Classes */
.lux-reader-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lux-reader-card-body {
    color: #e2e8f0;
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 20px;
    transition: font-size 0.2s ease;
}

.lux-reader-card-body.font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.lux-reader-card-body.font-serif {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.85;
}

.lux-reader-card-body.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Smart Section Callout Cards */
.lux-callout-block {
    margin: 12px 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid #38bdf8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lux-callout-block.cyan {
    border-left-color: #38bdf8;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.5));
}

.lux-callout-block.purple {
    border-left-color: #c084fc;
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.12), rgba(15, 23, 42, 0.5));
}

.lux-callout-block.emerald {
    border-left-color: #34d399;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), rgba(15, 23, 42, 0.5));
}

.lux-callout-block.gold {
    border-left-color: #fbbf24;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0.5));
}

.lux-callout-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card Footer */
.lux-reader-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.8);
    flex-wrap: wrap;
    gap: 10px;
}

.lux-reader-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.lux-reader-loop-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 20px;
    font-weight: 600;
}

.lux-loop-icon-spin {
    animation: luxSpinLoop 6s linear infinite;
}

@keyframes luxSpinLoop {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bottom Action Bar */
.lux-reader-action-bar {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.lux-reader-action-left,
.lux-reader-action-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lux-reader-action-btn {
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-reader-action-btn.purple {
    border-color: rgba(192, 132, 252, 0.35);
    color: #c084fc;
}

.lux-reader-action-btn.purple:hover {
    background: rgba(192, 132, 252, 0.2);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
    transform: translateY(-2px);
}

.lux-reader-action-btn.cyan {
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.lux-reader-action-btn.cyan:hover {
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.lux-reader-action-btn.cyan.speaking {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(37, 99, 235, 0.4));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    animation: ttsPulse 1.5s infinite alternate;
}

@keyframes ttsPulse {
    0% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
    100% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.7); }
}

.lux-reader-action-btn.emerald {
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.lux-reader-action-btn.emerald:hover {
    background: rgba(52, 211, 153, 0.2);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
    transform: translateY(-2px);
}

.lux-reader-nav-btn {
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-reader-nav-btn.prev {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.lux-reader-nav-btn.prev:hover {
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translateX(-3px);
}

.lux-reader-nav-btn.next {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.lux-reader-nav-btn.next:hover {
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6);
    transform: translateX(3px);
}

/* Entry Animation */
.lux-card-fade-enter {
    animation: luxCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes luxCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


