@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --dark: #2d3436;
    --gray: #636e72;
    --light: #dfe6e9;
    --bg: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text: #f0f0f0;
    --text-heading: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --success-light: #55efc4;
    --danger-light: #ff7675;
    --primary-tint: rgba(108, 92, 231, 0.15);
    --secondary-tint: rgba(0, 206, 201, 0.15);
    --success-tint: rgba(0, 184, 148, 0.15);
    --warning-tint: rgba(253, 203, 110, 0.15);
    --danger-tint: rgba(225, 112, 85, 0.15);
    --info-tint: rgba(116, 185, 255, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 206, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(253, 203, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 90px;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: spin 0.8s linear infinite;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--warning);
    animation: spin 0.6s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand i {
    -webkit-text-fill-color: var(--primary);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.nav-logout {
    color: var(--danger);
}

.nav-links a.nav-logout:hover {
    background: rgba(225, 112, 85, 0.15);
}

.nav-links a.nav-admin {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    font-weight: 600;
}

.nav-links a.nav-admin:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-heading);
}

.page-header h1 i {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Date Navigation */
.date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.current-month {
    font-weight: 700;
    font-size: 1rem;
    min-width: 130px;
    text-align: center;
    color: var(--text-heading);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-heading);
}

.card-header h3 i {
    color: var(--primary-light);
}

.card-body {
    padding: 24px;
}

.card-body.p-0 {
    padding: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card.total::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.budget::before { background: linear-gradient(90deg, var(--secondary), #81ecec); }
.stat-card.remaining::before { background: linear-gradient(90deg, var(--success), var(--success-light)); }
.stat-card.remaining.danger::before { background: linear-gradient(90deg, var(--danger), var(--danger-light)); }
.stat-card.count::before { background: linear-gradient(90deg, var(--warning), var(--info)); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card.total .stat-icon { background: var(--primary-tint); color: var(--primary-light); }
.stat-card.budget .stat-icon { background: var(--secondary-tint); color: var(--secondary); }
.stat-card.remaining .stat-icon { background: var(--success-tint); color: var(--success); }
.stat-card.remaining.danger .stat-icon { background: var(--danger-tint); color: var(--danger); }
.stat-card.count .stat-icon { background: var(--warning-tint); color: var(--warning); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Budget Bar */
.budget-bar-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.budget-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.budget-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--success), var(--success-light));
    transition: width 0.8s ease;
    position: relative;
}

.budget-bar-fill.warning {
    background: linear-gradient(90deg, var(--warning), #fdcb6e);
}

.budget-bar-fill.danger {
    background: linear-gradient(90deg, var(--danger), var(--danger-light));
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.charts-grid .card-body {
    padding: 16px;
}

.charts-grid canvas {
    max-height: 300px;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mini-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table thead {
    background: var(--primary-tint);
}

.table th {
    padding: 14px 16px;
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
    font-size: 0.95rem;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.03);
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table tfoot td {
    padding: 16px 16px;
    border-top: 2px solid var(--success);
    font-size: 1.05rem;
    color: var(--text-heading);
}

.total-row {
    background: var(--success-tint);
}

.amount {
    font-weight: 700;
    direction: ltr;
    display: inline-block;
    font-size: 1rem;
}

td.amount, tfoot .amount {
    color: #ff8a80;
    font-weight: 800;
}

tfoot .amount {
    font-size: 1.2rem;
}

.total-row {
    background: rgba(0, 184, 148, 0.15) !important;
    border-top: 2px solid var(--success);
}

.total-row td {
    color: var(--text-heading);
    font-weight: 700;
}

td.amount, tfoot .amount {
    color: var(--danger);
}

tfoot .amount {
    font-size: 1.1rem;
}

.category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

.category-badge.category-طعام { background: rgba(108, 92, 231, 0.25); color: #b8b0ff; }
.category-badge.category-مواصلات { background: rgba(0, 206, 201, 0.25); color: #7de8e5; }
.category-badge.category-تسوق { background: rgba(253, 203, 110, 0.25); color: #ffeaa7; }
.category-badge.category-فواتير { background: rgba(225, 112, 85, 0.25); color: #fab1a0; }
.category-badge.category-ترفيه { background: rgba(116, 185, 255, 0.25); color: #a4d4ff; }
.category-badge.category-صحة { background: rgba(0, 184, 148, 0.25); color: #55efc4; }
.category-badge.category-تعليم { background: rgba(253, 203, 110, 0.25); color: #ffeaa7; }
.category-badge.category-أخرى { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00a381);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #f0c040);
    color: var(--dark);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.4);
}

.btn-edit {
    background: rgba(116, 185, 255, 0.2);
    color: #a4d4ff;
}

.btn-edit:hover {
    background: rgba(116, 185, 255, 0.3);
}

.btn-delete {
    background: rgba(225, 112, 85, 0.2);
    color: #fab1a0;
}

.btn-delete:hover {
    background: rgba(225, 112, 85, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.form-group label i {
    margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-heading);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--dark);
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-tint);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.alert-error {
    background: var(--danger-tint);
    border: 1px solid rgba(225, 112, 85, 0.3);
    color: var(--danger);
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-grid .card:last-child {
    grid-column: 1 / -1;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 700;
}

.profile-form {
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
}

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

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

/* Expense Form */
.expense-form .btn {
    margin-top: 5px;
}

/* Text Center */
.text-center {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

/* ===== Dashboard Modern ===== */

/* Dashboard Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
}

.greeting-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.dash-greeting h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stats Row Modern */
.stats-row-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-modern {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, var(--stat-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-modern:hover::before {
    opacity: 1;
}

.stat-modern:hover {
    transform: translateY(-3px);
    border-color: var(--stat-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.stat-modern-bg {
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 5rem;
    opacity: 0.04;
    color: var(--stat-color);
    line-height: 1;
}

.stat-modern-body {
    position: relative;
    z-index: 1;
}

.stat-modern-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-modern-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-modern-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-modern.danger .stat-modern-value {
    color: var(--danger);
}

/* Budget Card */
.budget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.budget-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.budget-card-top i {
    margin-left: 6px;
}

.budget-percent {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--success);
}

.budget-percent.warning { color: var(--warning); }
.budget-percent.danger { color: var(--danger); }

.budget-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.budget-track-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--success), var(--success-light));
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.budget-track-fill.warning {
    background: linear-gradient(90deg, var(--warning), #fdcb6e);
}

.budget-track-fill.danger {
    background: linear-gradient(90deg, var(--danger), var(--danger-light));
}

.budget-track-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Sections Modern */
.sections-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.section-modern {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-modern.expenses::before {
    background: radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.12), transparent 60%);
}

.section-modern.todo::before {
    background: radial-gradient(circle at 80% 20%, rgba(0, 206, 201, 0.12), transparent 60%);
}

.section-modern:hover::before {
    opacity: 1;
}

.section-modern:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.section-modern.expenses:hover { border-color: rgba(108, 92, 231, 0.4); }
.section-modern.todo:hover { border-color: rgba(0, 206, 201, 0.4); }
.section-modern.boards:hover { border-color: rgba(253, 203, 110, 0.4); }

.section-modern-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.section-modern:hover .section-modern-shine {
    opacity: 1;
}

.section-modern-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.section-modern-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.section-modern.expenses .section-modern-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(108, 92, 231, 0.1));
    color: var(--primary-light);
}

.section-modern.todo .section-modern-icon {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.3), rgba(0, 206, 201, 0.1));
    color: var(--secondary);
}

.section-modern-count {
    font-size: 1.8rem;
    font-weight: 900;
    opacity: 0.2;
    line-height: 1;
}

.section-modern h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.section-modern p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.section-modern-link {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.section-modern.expenses .section-modern-link { color: var(--primary-light); }
.section-modern.todo .section-modern-link { color: var(--secondary); }
.section-modern.boards .section-modern-link { color: var(--warning); }
.section-modern.boards .section-modern-icon {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.3), rgba(253, 203, 110, 0.1));
    color: var(--warning);
}

.section-modern-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.section-modern:hover .section-modern-link i {
    transform: translateX(-5px);
}

/* Charts Modern */
.charts-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow);
}

.chart-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.chart-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card-header h3 i {
    color: var(--primary-light);
}

.chart-card-body {
    padding: 16px;
    position: relative;
}

.chart-card-body canvas {
    max-height: 260px;
    width: 100% !important;
}

.chart-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.chart-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

.chart-empty p {
    font-size: 0.95rem;
}

/* Quick View Modern */
.quick-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 30px;
}

.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-card:hover {
    box-shadow: var(--shadow);
}

.quick-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-card-header h3 i {
    color: var(--primary-light);
}

.quick-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.quick-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.quick-link:hover {
    color: var(--primary-light);
}

.quick-link:hover i {
    transform: translateX(-3px);
}

.quick-card-body {
    padding: 8px 0;
}

.quick-items {
    display: flex;
    flex-direction: column;
}

.quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    transition: background 0.2s ease;
}

.quick-item:hover {
    background: var(--bg-card-hover);
}

.quick-item-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.quick-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.quick-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.quick-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quick-item-amount {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--danger);
    flex-shrink: 0;
}

/* Task item in dashboard */
.task-item .quick-item-start {
    gap: 10px;
}

.quick-task-form {
    line-height: 1;
}

.quick-check {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 2px;
    transition: all 0.2s ease;
}

.quick-check:hover {
    color: var(--success);
    transform: scale(1.15);
}

.quick-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.badge-sm {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.quick-overdue {
    font-size: 0.7rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 3px;
}

.quick-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
}

.quick-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.3;
}

.quick-empty p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Remove old styles */
.section-title { display: none; }

/* ===== Todo Page ===== */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item:hover {
    background: var(--bg-card-hover);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-check {
    padding-top: 2px;
}

.check-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 2px;
    line-height: 1;
}

.check-btn:hover {
    color: var(--success);
    transform: scale(1.1);
}

.check-btn.checked {
    color: var(--success);
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 3px;
}

.todo-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.todo-due {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.todo-due.overdue {
    color: var(--danger);
}

.todo-due.due-soon {
    color: var(--warning);
}

.due-label {
    font-size: 0.75rem;
}

.todo-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.priority-low { background: var(--success-tint); color: var(--success); }
.priority-medium { background: var(--warning-tint); color: var(--warning); }
.priority-high { background: var(--danger-tint); color: var(--danger); }
.status-pending { background: var(--warning-tint); color: var(--warning); }
.status-done { background: var(--success-tint); color: var(--success); }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.filter-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--text);
    background: var(--bg-card-hover);
}

.filter-tab.active {
    color: var(--text);
    background: rgba(108, 92, 231, 0.25);
}

/* Todo form */
.todo-form .form-row .form-group:first-child {
    grid-column: span 2;
}

/* Compact todo on dashboard */
.todo-list.compact .todo-item {
    padding: 12px 16px;
}

.todo-list.compact .todo-title {
    font-size: 0.9rem;
}

.todo-list.compact .todo-meta {
    margin-top: 4px;
}

/* ===== Landing Page ===== */
.landing {
    padding-top: 40px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-1px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    max-width: 450px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.3rem;
}

.card-1 {
    top: 10%;
    right: 10%;
    color: var(--primary-light);
    border-color: var(--primary-tint);
    animation-delay: 0s;
}

.card-1 i { color: var(--primary-light); }

.card-2 {
    top: 40%;
    right: 55%;
    color: var(--secondary);
    border-color: var(--secondary-tint);
    animation-delay: 0.4s;
}

.card-2 i { color: var(--secondary); }

.card-3 {
    top: 65%;
    right: 15%;
    color: var(--warning);
    border-color: var(--warning-tint);
    animation-delay: 0.8s;
}

.card-3 i { color: var(--warning); }

.card-4 {
    top: 25%;
    right: 75%;
    color: var(--info);
    border-color: var(--info-tint);
    animation-delay: 1.2s;
}

.card-4 i { color: var(--info); }

.card-5 {
    top: 55%;
    right: 80%;
    color: var(--success);
    border-color: rgba(0, 184, 148, 0.3);
    animation-delay: 1.6s;
}

.card-5 i { color: var(--success); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(108, 92, 231, 0.3);
}

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.coming-soon {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--warning);
    background: rgba(253, 203, 110, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* CTA Section */
.cta-section {
    padding: 40px 0 80px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.05), transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-content > * {
    animation: fadeIn 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        padding-top: 80px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sections-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .charts-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-row-modern {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-modern {
        padding: 22px;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-greeting h1 {
        font-size: 1.2rem;
    }

    .dash-actions {
        width: 100%;
    }

    .dash-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .stat-modern-value {
        font-size: 1.2rem;
    }

    .budget-card {
        padding: 16px 18px;
    }

    .quick-item-title {
        max-width: 120px;
    }

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

    .kanban-board {
        flex-direction: column;
        align-items: stretch;
    }

    .kanban-column {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .boards-grid {
        grid-template-columns: 1fr;
    }

    .board-header {
        flex-direction: column;
    }

    .board-header-actions {
        width: 100%;
    }

    .board-header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid .card:last-child {
        grid-column: 1;
    }

    .auth-card {
        padding: 25px;
    }

    .date-nav {
        width: 100%;
        justify-content: center;
    }

    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .stats-row {
        gap: 10px;
    }

    .mini-stat {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .auth-header i {
        font-size: 2.5rem;
    }
}

/* ===== Boards Page ===== */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.board-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--board-accent, var(--primary));
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.board-card-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.board-role {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.role-owner { background: var(--warning-tint); color: var(--warning); }
.role-admin { background: var(--secondary-tint); color: var(--secondary); }
.role-member { background: var(--primary-tint); color: var(--primary-light); }
.role-viewer { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.board-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.board-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.board-card-footer {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.board-card-footer i {
    margin-left: 4px;
}

/* ===== Board Page (Kanban) ===== */
.board-page {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

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

.board-header-start {
    display: flex;
    align-items: center;
    gap: 16px;
}

.board-header-start h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.board-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.member-count {
    background: rgba(255,255,255,0.1);
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.board-slide-form {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.inline-form input,
.inline-form select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 20px;
    align-items: flex-start;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
}

.kanban-column-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.kanban-column-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-count {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.08);
    padding: 2px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.btn-icon:hover {
    color: var(--danger);
    background: rgba(225,112,85,0.15);
}

.kanban-cards {
    padding: 10px 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 60px;
}

.kanban-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    gap: 8px;
}

.kanban-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card-ghost {
    opacity: 0.3;
    background: var(--primary);
}

.kanban-card-body {
    flex: 1;
    min-width: 0;
}

.kanban-card-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.kanban-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kanban-card-meta i {
    font-size: 0.7rem;
}

.card-assignee {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.card-due {
    padding: 2px 6px;
    border-radius: 10px;
}

.card-due.overdue {
    color: var(--danger);
    background: rgba(225,112,85,0.15);
}

.kanban-card-delete {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kanban-card:hover .kanban-card-delete {
    opacity: 1;
}

.kanban-add-card {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border);
}

.kanban-add-card button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    width: 100%;
    text-align: right;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-add-card button:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

/* Add Card Popup */
.add-card-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.add-card-popup {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.2s ease;
}

.add-card-popup .form-row {
    grid-template-columns: 1fr 1fr;
}

.add-card-popup .form-row .form-group {
    margin-bottom: 0;
}

/* Members Modal */
.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.member-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-info strong {
    font-size: 0.95rem;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    align-self: flex-start;
}

.member-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.member-actions select {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 0.8rem;
    font-family: inherit;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ===== Landing Page Responsive ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 40px;
        padding: 20px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-icon {
        margin: 0 auto 25px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-visual {
        height: 350px;
        max-width: 100%;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-visual {
        height: 250px;
    }

    .floating-card {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .floating-card i {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features {
        padding: 50px 0;
    }

    .feature-card {
        padding: 22px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-visual {
        height: 200px;
    }

    .card-2 { right: 45%; }
    .card-4 { right: 65%; }
    .card-5 { right: 70%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
