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

:root {
    /* Color Palette */
    --bg-dark: #090a0f;
    --bg-card: rgba(18, 20, 32, 0.65);
    --bg-sidebar: #0e101a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --primary-grad: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
    
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.25);
    --secondary-grad: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    
    --accent: #f43f5e;
    --accent-grad: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    --accent-glow: rgba(244, 63, 94, 0.2);

    --success: #10b981;
    --success-grad: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

input, button, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Utility Layouts */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.secondary-gradient-text {
    background: var(--secondary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   HOMEPAGE (LANDING PAGE)
   ========================================================================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.landing-header.scrolled {
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    padding: 10rem 5% 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.badge-pill {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 5rem;
}

.hero-preview {
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
}

.hero-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-mock-img {
    width: 100%;
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.75rem;
}

.icon-purple {
    background: var(--primary-grad);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.icon-teal {
    background: var(--secondary-grad);
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.icon-rose {
    background: var(--accent-grad);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

/* Call to Action Section */
.cta-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto 6rem auto;
}

.cta-box {
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 5% 8rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 20, 32, 0.4);
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    max-height: 200px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 3rem 5%;
    background: #06070a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* ==========================================================================
   ADMIN LOGIN PAGE
   ========================================================================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 1.85rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.form-control:focus + .input-icon {
    color: var(--primary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
}

.forgot-link:hover {
    text-shadow: 0 0 5px var(--primary-glow);
}

.login-btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.45);
}

.login-btn:active {
    transform: translateY(0);
}

.demo-credentials {
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.demo-credentials:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--primary);
}

.alert-danger {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fb7185;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Decorative background blur objects */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.circle-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
}

.circle-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.12);
}

/* ==========================================================================
   ADMIN DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.sidebar-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.sidebar-item-link:hover, .sidebar-item-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-item-link.active {
    background: var(--primary-grad);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.sidebar-item-link i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: #fb7185;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background: rgba(244, 63, 94, 0.08);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 2rem 3%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    height: 100vh;
}

/* Header bar inside main content */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    width: 260px;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-bar i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info {
    font-size: 0.85rem;
}

.user-name {
    font-weight: 600;
}

.user-role {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Metric Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.metric-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--accent);
}

/* Visualization Panel (Chart + Summary) */
.visualization-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .visualization-panel {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    padding: 1.75rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.15rem;
}

.chart-container {
    height: 280px;
    position: relative;
    width: 100%;
}

.budget-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.budget-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
    flex-grow: 1;
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.budget-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.budget-cat {
    font-weight: 500;
}

.budget-spending {
    color: var(--text-muted);
}

.budget-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.budget-progress {
    height: 100%;
    border-radius: 9999px;
}

/* Interactive Transactions Table Card */
.transactions-card {
    padding: 1.75rem;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.transactions-table th {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
}

.transactions-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transactions-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Category Badge Styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-food {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-transport {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.badge-utilities {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.badge-entertainment {
    background: rgba(244, 63, 94, 0.1);
    color: #fb7185;
}

.badge-other {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.status-completed {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.status-pending {
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.delete-action-btn {
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.delete-action-btn:hover {
    color: var(--accent);
    background: rgba(244, 63, 94, 0.08);
}

/* Dynamic Add Transaction Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 1.35rem;
}

.modal-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Header Action Trigger button */
.add-btn {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.add-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Mobile Sidebar Toggle styling */
.mobile-header-bar {
    display: none;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.sidebar-toggle-btn {
    background: transparent;
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .mobile-header-bar {
        display: flex;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 60px;
        left: -100%;
        height: calc(100vh - 60px);
        background: var(--bg-sidebar);
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        height: auto;
        padding-top: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
