:root {
        --primary-color: #4f9cf9;    /* Soft Google blue */
    --secondary-color: #6ed7b0;  /* Light mint green */
    --accent-color: #facc5f;     /* Light warm yellow */
    --info-color: #93c5fd;       /* Faded sky blue */
    --danger-color: #f37272;     /* Soft coral red */
    --purple-accent: #c3a5ff;    /* Light lavender purple */

    --text-dark: #334155;        /* Slate Gray - modern */
    --bg-light: #f5f7fa;         /* Very soft background */
    --border-light: #e2e8f0;     /* Lighter border */
}

/* Override Bootstrap primaries for consistency */
.btn-primary, .text-primary, .link-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color) !important;
}
.btn-primary:hover {
    background-color: #3b82f6 !important; /* Darker teal */
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
}

/* Body & Global */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}
.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.card-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    ) !important;
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
}
.card-body { padding: 1.5rem; }

.nav-link {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    color: var(--text-dark);
}
.nav-link:hover, .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 0.2rem rgba(79, 156, 249, 0.25);
}
.nav-link i { width: 1.25rem; height: 1.25rem; opacity: 0.8; transition: opacity 0.3s; }

.badge { border-radius: 0.5rem; font-size: 0.75rem; padding: 0.4em 0.6em; }

.app-sidebar {
    width: 280px !important;
    background: white;
    border-right: 1px solid var(--border-light);
    transition: all 0.3s ease;
    z-index: 1035; /* Above content, below navbar */
}
.app-sidebar .nav-link span {
    opacity: 1;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent wrap */
}
body.sidebar-collapsed .app-sidebar {
    width: 70px !important;
}
body.sidebar-collapsed .app-sidebar .nav-link span {
    opacity: 0;
    display: none; /* Hard hide for clean collapse */
}
body.sidebar-collapsed .app-sidebar .nav-link i {
    opacity: 1; /* Keep icons visible */
}

main {
    transition: margin-left 0.3s ease;
    margin-left: 280px; /* Default */
}
body.sidebar-collapsed main {
    margin-left: 70px !important;
}

.navbar {
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: 1040; /* Above sidebar */
}
.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.stat-card {
    background: linear-gradient(135deg, white 0%, #f0fdf4 100%); /* Subtle emerald tint */
    border: 1px solid var(--border-light);
}
.stat-card i { color: inherit; opacity: 0.8; }

#revenueChart {
    border-radius: 0.75rem;
    background: white;
    padding: 1rem;
}

/* Toggle Icon Animation */
#sidebarToggle i {
    transition: all 0.3s ease;
}
body.sidebar-collapsed #sidebarToggle i {
    transform: rotate(180deg); /* Rotate for X-like feel */
}

.color-white {
    color: white !important;
}
