/* ================================
   BÁ VƯƠNG LIFE - MAIN STYLES
   Glass Morphism Dashboard Theme
   ================================ */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #F43F5E;
    --primary-dark: #BE123C;
    --primary-light: #FB7185;
    /* Background Colors */
    --bg-light: #F3F4F6;
    --bg-dark: #111827;
    /* Card Colors */
    --card-light: rgba(255, 255, 255, 0.7);
    --card-dark: rgba(31, 41, 55, 0.7);
    /* Text Colors */
    --text-light: #1F2937;
    --text-dark: #F9FAFB;
    --text-muted-light: #6B7280;
    --text-muted-dark: #9CA3AF;
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.2);
    --border-dark: rgba(255, 255, 255, 0.05);
    /* Accent Colors */
    --accent-blue: #3B82F6;
    --accent-green: #22C55E;
    --accent-purple: #A855F7;
    --accent-orange: #F97316;
    --accent-yellow: #EAB308;
    /* Shadows */
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 30px -5px rgba(244, 63, 94, 0.3);
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    /* Spacing */
    --sidebar-width: 260px;
    --settings-width: 320px;
    --header-height: 64px;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
}

/* ===== Base Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    position: relative;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}

/* ===== Background Effects ===== */
.bg-gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
    transition: background var(--transition-slow);
}

.bg-gradient-mesh[data-gradient="ocean"] {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(30, 64, 175, 0.1) 100%);
}

.bg-gradient-mesh[data-gradient="sunset"] {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(232, 121, 249, 0.1) 50%, rgba(225, 29, 72, 0.1) 100%);
}

.bg-gradient-mesh[data-gradient="forest"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(21, 128, 61, 0.1) 100%);
}

.bg-gradient-mesh[data-gradient="royal"] {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(88, 28, 135, 0.1) 100%);
}

body.dark .bg-gradient-mesh {
    background: linear-gradient(135deg, rgba(17, 24, 39, 1) 0%, rgba(31, 41, 55, 1) 50%, rgba(30, 41, 59, 1) 100%);
}

body.dark .bg-gradient-mesh[data-gradient="ocean"] {
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(30, 58, 138, 1) 50%, rgba(23, 37, 84, 1) 100%);
}

body.dark .bg-gradient-mesh[data-gradient="sunset"] {
    background: linear-gradient(135deg, rgba(67, 20, 7, 1) 0%, rgba(80, 7, 36, 1) 50%, rgba(76, 5, 25, 1) 100%);
}

body.dark .bg-gradient-mesh[data-gradient="forest"] {
    background: linear-gradient(135deg, rgba(20, 83, 45, 1) 0%, rgba(6, 78, 59, 1) 50%, rgba(2, 44, 34, 1) 100%);
}

body.dark .bg-gradient-mesh[data-gradient="royal"] {
    background: linear-gradient(135deg, rgba(66, 32, 6, 1) 0%, rgba(88, 28, 135, 1) 50%, rgba(46, 16, 101, 1) 100%);
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -5;
    pointer-events: none;
}

.bg-blob-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(244, 63, 94, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

.bg-blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
}

body.dark .bg-blob-1 {
    background: rgba(244, 63, 94, 0.1);
}

body.dark .bg-blob-2 {
    background: rgba(59, 130, 246, 0.1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ===== Glass Panel Effect ===== */
.glass-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}

body.dark .glass-panel {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

/* ===== Layout Structure ===== */
.app-container {
    display: flex;
    height: 100vh;
    padding: 1rem;
    gap: 1rem;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 30;
}

.sidebar-header {
    padding: 1.5rem;
    padding-bottom: 0.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.sidebar-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-light);
}

body.dark .sidebar-logo-text {
    color: var(--text-dark);
}

/* ===== Navigation ===== */
.sidebar-nav {
    padding: 0 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

ul.nav-list {
    padding-left: 0;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

body.dark .nav-link {
    color: var(--text-muted-dark);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

body.dark .nav-link:hover {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-dark);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-primary);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link.active:hover::before {
    opacity: 1;
}

.nav-link .nav-icon {
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.nav-link:hover .nav-icon.icon-flag {
    color: var(--primary);
}

.nav-link:hover .nav-icon.icon-wallet {
    color: var(--accent-green);
}

.nav-link:hover .nav-icon.icon-people {
    color: var(--accent-blue);
}

.nav-link:hover .nav-icon.icon-calendar {
    color: var(--accent-purple);
}

.nav-link.active .nav-icon {
    color: white;
}

/* ===== Sidebar Footer ===== */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
}

body.dark .sidebar-footer {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.btn-sidebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-settings {
    color: var(--text-muted-light);
}

body.dark .btn-settings {
    color: var(--text-muted-dark);
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.5);
}

body.dark .btn-settings:hover {
    background: rgba(55, 65, 81, 0.5);
}

.btn-logout {
    color: #EF4444;
    margin-top: 0.25rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

body.dark .btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ===== Main Content Area ===== */
.main-content {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    position: relative;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted-light);
}

body.dark .header-left {
    color: var(--text-muted-dark);
}

.header-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted-light);
}

.header-greeting {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Search Box ===== */
.search-box {
    position: relative;
}

.search-box input {
    width: 256px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    color: var(--text-light);
}

body.dark .search-box input {
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.5);
}

.search-box input::placeholder {
    color: var(--text-muted-light);
}

body.dark .search-box input::placeholder {
    color: var(--text-muted-dark);
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-light);
    font-size: 1.125rem;
}

/* ===== Icon Buttons ===== */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-light);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
}

body.dark .btn-icon {
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-muted-dark);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
}

body.dark .btn-icon:hover {
    background: rgba(55, 65, 81, 0.9);
    color: var(--text-dark);
}

.btn-icon .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    border: 2px solid white;
}

body.dark .btn-icon .notification-dot {
    border-color: var(--bg-dark);
}

/* ===== User Avatar ===== */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #6366F1);
    padding: 2px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

body.dark .user-avatar img {
    border-color: var(--bg-dark);
}

/* ===== Content Area ===== */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-bottom: 1.5rem;
}

.content-area>*+* {
    margin-top: 1.5rem;
}

/* ===== Hero Section ===== */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
}

.hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-banner:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 2.5rem;
    max-width: 600px;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #93C5FD, white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-quote {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: #E11D48;
    transform: translateY(-2px);
}

/* ===== Stat Cards Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.orange {
    background: rgba(251, 146, 60, 0.1);
    color: #F97316;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

body.dark .stat-icon.orange {
    background: rgba(249, 115, 22, 0.2);
}

body.dark .stat-icon.green {
    background: rgba(34, 197, 94, 0.2);
}

body.dark .stat-icon.blue {
    background: rgba(59, 130, 246, 0.2);
}

.stat-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted-light);
}

body.dark .stat-badge {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-muted-dark);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted-light);
    margin-bottom: 0.25rem;
}

body.dark .stat-label {
    color: var(--text-muted-dark);
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-light);
}

body.dark .stat-number {
    color: var(--text-dark);
}

.stat-trend {
    font-size: 0.875rem;
    font-weight: 500;
    color: #22C55E;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

/* ===== Progress Bar ===== */
.progress-bar {
    height: 8px;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

body.dark .progress-bar {
    background: rgba(55, 65, 81, 0.5);
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width var(--transition-slow);
}

.progress-fill.orange {
    background: #F97316;
}

/* ===== Custom Color Picker ===== */
.custom-color-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-color-wrapper:hover {
    transform: scale(1.1);
}

.custom-color-input {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    cursor: pointer;
}

.custom-icon {
    font-size: 1.25rem;
    color: var(--text-muted-light);
    pointer-events: none;
}

/* ===== Gradient Customization ===== */
.settings-sub-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted-light);
    margin-bottom: 0.75rem;
}

.gradient-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.gradient-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 2px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gradient-option.active {
    border-color: var(--primary);
}

.gradient-preview {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gradient-preview.default {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.gradient-preview.ocean {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
}

.gradient-preview.sunset {
    background: linear-gradient(135deg, #fb923c, #e11d48);
}

.gradient-preview.forest {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.gradient-preview.royal {
    background: linear-gradient(135deg, #eab308, #a855f7);
}

.progress-fill.green {
    background: #22C55E;
}

.progress-fill.primary {
    background: var(--primary);
}

/* ===== Avatar Stack ===== */
.avatar-stack {
    display: flex;
    margin-top: 1rem;
}

.avatar-stack img,
.avatar-stack .avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar-stack img:first-child,
.avatar-stack .avatar-more:first-child {
    margin-left: 0;
}

.avatar-stack .avatar-more {
    background: var(--card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted-light);
}

body.dark .avatar-stack img,
body.dark .avatar-stack .avatar-more {
    border-color: var(--bg-dark);
}

body.dark .avatar-stack .avatar-more {
    background: rgba(55, 65, 81, 0.8);
    color: var(--text-muted-dark);
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Task Card ===== */
.task-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.task-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
}

body.dark .task-card-title {
    color: var(--text-dark);
}

.btn-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

body.dark .task-item {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

.task-item:hover {
    transform: scale(1.01);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.task-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
}

.task-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.task-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

body.dark .task-icon.purple {
    background: rgba(168, 85, 247, 0.2);
}

body.dark .task-icon.blue {
    background: rgba(59, 130, 246, 0.2);
}

body.dark .task-icon.green {
    background: rgba(34, 197, 94, 0.2);
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark .task-title {
    color: var(--text-dark);
}

.task-meta {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

body.dark .task-meta {
    color: var(--text-muted-dark);
}

.task-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.task-status.processing {
    background: rgba(234, 179, 8, 0.1);
    color: #CA8A04;
}

.task-status.upcoming {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted-light);
}

body.dark .task-status.processing {
    background: rgba(234, 179, 8, 0.2);
    color: #FACC15;
}

body.dark .task-status.upcoming {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-muted-dark);
}

/* ===== Notes Card ===== */
.notes-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
}

.notes-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

body.dark .notes-card-title {
    color: var(--text-dark);
}

.notes-textarea {
    width: 100%;
    min-height: 128px;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    resize: none;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

body.dark .notes-textarea {
    background: rgba(31, 41, 55, 0.5);
    color: var(--text-dark);
}

.notes-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.5);
}

.notes-textarea::placeholder {
    color: var(--text-muted-light);
}

body.dark .notes-textarea::placeholder {
    color: var(--text-muted-dark);
}

.btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    /*margin-top: 0.5rem;*/
    transition: all var(--transition-fast);
}

body.dark .btn-secondary {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: rgba(156, 163, 175, 0.3);
}

body.dark .btn-secondary:hover {
    background: rgba(75, 85, 99, 0.6);
}

/* ===== Notes Footer ===== */
.notes-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
}

body.dark .notes-footer {
    border-top-color: rgba(55, 65, 81, 0.5);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted-light);
}

body.dark .progress-label {
    color: var(--text-muted-dark);
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.notes-quote {
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    color: var(--text-muted-light);
    margin-top: 0.75rem;
}

body.dark .notes-quote {
    color: var(--text-muted-dark);
}

/* ===== Theme Settings Panel ===== */
.theme-settings {
    width: var(--settings-width);
    flex-shrink: 0;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.theme-settings.hidden {
    display: none;
}

.theme-settings-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

body.dark .theme-settings-header {
    border-bottom-color: rgba(55, 65, 81, 0.5);
}

.theme-settings-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
}

body.dark .theme-settings-title {
    color: var(--text-dark);
}

.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted-light);
    transition: color var(--transition-fast);
}

.btn-close:hover {
    color: var(--primary);
}

.theme-settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.theme-settings-content>*+* {
    margin-top: 2rem;
}

.settings-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark .settings-section-title {
    color: var(--text-muted-dark);
}

/* ===== Color Picker ===== */
.color-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    box-shadow: 0 0 0 3px white, 0 0 0 5px currentColor;
}

body.dark .color-option.active {
    box-shadow: 0 0 0 3px var(--bg-dark), 0 0 0 5px currentColor;
}

.color-option.primary {
    background: var(--primary);
}

.color-option.blue {
    background: var(--accent-blue);
}

.color-option.green {
    background: var(--accent-green);
}

.color-option.purple {
    background: var(--accent-purple);
}

.color-option.orange {
    background: var(--accent-orange);
}

/* ===== Radio Options ===== */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

body.dark .radio-option {
    background: rgba(31, 41, 55, 0.5);
}

.radio-option:hover {
    border-color: rgba(156, 163, 175, 0.3);
}

.radio-option.active {
    border-color: var(--primary);
}

.radio-option input {
    accent-color: var(--primary);
    margin-right: 0.75rem;
}

.radio-option span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

body.dark .radio-option span {
    color: var(--text-dark);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    display: flex;
    padding: 0.25rem;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 12px;
}

body.dark .theme-toggle {
    background: rgba(31, 41, 55, 0.8);
}

.theme-toggle-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

body.dark .theme-toggle-btn {
    color: var(--text-muted-dark);
}

.theme-toggle-btn:hover {
    color: var(--text-light);
}

body.dark .theme-toggle-btn:hover {
    color: var(--text-dark);
}

.theme-toggle-btn.active {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

body.dark .theme-toggle-btn.active {
    background: rgba(55, 65, 81, 0.8);
    color: var(--text-dark);
}

/* ===== Upload Area ===== */
.upload-area {
    border: 2px dashed rgba(156, 163, 175, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

body.dark .upload-area {
    border-color: rgba(75, 85, 99, 0.5);
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
}

body.dark .upload-area:hover {
    background: rgba(31, 41, 55, 0.3);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted-light);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.upload-area:hover .upload-icon {
    color: var(--primary);
}

.upload-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted-light);
}

body.dark .upload-text {
    color: var(--text-muted-dark);
}

.upload-hint {
    font-size: 0.625rem;
    color: var(--text-muted-light);
    margin-top: 0.25rem;
}

/* ===== Theme Settings Footer ===== */
.theme-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
}

body.dark .theme-settings-footer {
    border-top-color: rgba(55, 65, 81, 0.5);
}

.btn-save {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--text-light);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

body.dark .btn-save {
    background: white;
    color: var(--text-light);
}

.btn-save:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== Settings Toggle Button ===== */
.btn-settings-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-primary);
    cursor: pointer;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-settings-toggle:hover {
    transform: scale(1.1);
}

.btn-settings-toggle .material-icons-round {
    font-size: 1.5rem;
}

/* ===== Mobile Toggle ===== */
.btn-mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

body.dark .btn-mobile-menu {
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-dark);
}

/* ===== Add Button ===== */
.btn-add {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.1);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-add:hover {
    background: var(--primary);
    color: white;
}

/* ===== Finance Bar ===== */
.finance-bar {
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
}

.finance-bar-income {
    height: 4px;
    flex: 3;
    background: var(--accent-green);
    border-radius: 9999px 0 0 9999px;
}

.finance-bar-expense {
    height: 4px;
    flex: 1;
    background: #F87171;
    border-radius: 0 9999px 9999px 0;
}

.finance-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

body.dark .finance-legend {
    color: var(--text-muted-dark);
}

/* ===== Responsive Design ===== */
@media (max-width: 1280px) {
    .theme-settings {
        position: fixed;
        right: 1rem;
        top: 1rem;
        bottom: 1rem;
        z-index: 50;
        transform: translateX(calc(100% + 2rem));
    }

    .theme-settings.visible {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: 0.5rem;
        top: 0.5rem;
        bottom: 0.5rem;
        z-index: 50;
        transform: translateX(calc(-100% - 1rem));
    }

    .sidebar.visible {
        transform: translateX(0);
    }

    .btn-mobile-menu {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Overlay ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Utility Classes ===== */
.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted-light);
}

body.dark .text-muted {
    color: var(--text-muted-dark);
}

.mt-auto {
    margin-top: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* ===== Material Icons Fix ===== */
.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}