:root {
    /* Color Palette - Premium Dark Theme */
    --primary-hue: 260;
    /* Deep Purple */
    --secondary-hue: 320;
    /* Vibrant Pink/Magenta */
    --bg-dark: hsl(240, 10%, 10%);
    --bg-card: hsla(240, 10%, 16%, 0.7);
    --bg-glass: hsla(240, 10%, 20%, 0.4);
    --text-main: hsl(0, 0%, 95%);
    --text-muted: hsl(240, 5%, 70%);
    --accent: hsl(var(--secondary-hue), 90%, 60%);
    --accent-glow: hsla(var(--secondary-hue), 90%, 60%, 0.5);
    --success: hsl(150, 80%, 45%);
    --danger: hsl(0, 80%, 60%);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, hsla(var(--primary-hue), 60%, 20%, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(var(--secondary-hue), 60%, 20%, 0.4) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-main), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-hue), 70%, 50%), hsl(var(--secondary-hue), 70%, 50%));
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pending {
    background: rgba(255, 255, 0, 0.1);
    color: #ffd700;
}

.badge-completed {
    background: rgba(0, 255, 128, 0.15);
    color: #00ff80;
}

.badge-failed {
    background: rgba(255, 0, 80, 0.15);
    color: #ff0050;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Avatar */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    padding: 2px;
}

/* Selection Screen */
.user-select {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

/* Center Body for Auth Pages */
.center-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.switch-auth {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.switch-auth a {
    color: var(--accent);
    text-decoration: none;
}

/* Avatar Selection */
.avatar-select {
    margin-bottom: 1.5rem;
    text-align: left;
}

.avatars {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.avatar-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Lists */
ul {
    list-style: none;
}

li {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Goal Items */
.goal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.goal-item.completed h3 {
    text-decoration: line-through;
    color: var(--success);
}

.goal-info {
    width: 100%;
}

.actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-check,
.btn-fail {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-check {
    color: var(--success);
    border-color: var(--success);
}

.btn-check:hover {
    background: var(--success);
    color: #000;
}

.btn-fail {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-fail:hover {
    background: var(--danger);
    color: #fff;
}


/* Task Items */
.task-item {
    font-size: 1.1rem;
}


.user-card {
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

.user-card:hover,
.user-card.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--accent-glow);
    transition: all 0.3s;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Notifications */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notif-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    z-index: 50;
}

.notif-dropdown.active {
    display: flex;
}

.notif-item {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}