:root {
    /* Color Palette - Light Luxury Pastel */
    --bg-primary: #fdfdfd;
    --bg-secondary: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gold: #c5a059;
    --accent-gold-light: #eaddbd;
    --accent-gold-soft: #fcf9f2;
    
    --pastel-green: #ecfdf5;
    --pastel-green-text: #065f46;
    --pastel-blue: #f0f9ff;
    --pastel-blue-text: #075985;
    --pastel-teal: #f0fdfa;
    --pastel-teal-text: #0f766e;
    --pastel-rose: #fff1f2;
    --pastel-rose-text: #9f1239;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, .luxury-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Auth Page & Glassmorphism */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('login-bg.png') no-repeat center center fixed;
    background-size: cover;
    padding: 24px;
    position: relative;
}

.auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(2px);
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

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

.auth-header h1 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

/* Dashboard Layout Base */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--bg-secondary);
    color: var(--accent-gold);
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background: var(--bg-secondary);
    overflow-y: auto;
    width: 100%;
}

/* Global Elements */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background: var(--accent-gold); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: white; }

/* Tables */
.luxury-table { width: 100%; border-collapse: collapse; }
.luxury-table th { text-align: left; padding: 15px 20px; background: #fafafa; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.luxury-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }

/* Daily Schedule & Timeline */
.daily-schedule { display: flex; flex-direction: column; gap: 30px; position: relative; padding-left: 20px; }
.daily-schedule::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent-gold-light); opacity: 0.3; }
.day-section { position: relative; }
.day-circle { width: 10px; height: 10px; background: var(--accent-gold); border-radius: 50%; position: absolute; left: -24px; top: 8px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-card { text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-secondary); }

/* Zen Journal */
.zen-textarea { width: 100%; min-height: 300px; border: none; font-family: var(--font-heading); font-size: 1.4rem; padding: 20px; resize: none; line-height: 1.8; }
.zen-textarea:focus { outline: none; }

/* Utilities */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.text-secondary { color: var(--text-secondary); }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--bg-secondary); }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* Mobile */
@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; min-width: auto; }
    .main-content { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
}
