/* ========================
   Global Styles
======================== */
:root {
    /* 🎨 Brand Primary (Modern Indigo) */
    --primary-color: #4f46e5;

    /* Neutral Secondary */
    --secondary-color: #94a3b8;

    /* Success (Modern Emerald) */
    --success-color: #10b981;

    /* Danger (Soft Red - not harsh) */
    --danger-color: #ef4444;

    /* Warning (Warm Amber) */
    --warning-color: #f59e0b;

    /* Info (Modern Cyan) */
    --info-color: #06b6d4;

    /* Dark Text */
    --dark-color: #1e293b;

    /* Background Shades */
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;

    /* Optional Accent Gradient */
    --primary-gradient: linear-gradient(135deg, #4f46e5, #6366f1);
}


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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    background-color: #f8f9fc;
    color: #5a5c69;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ========================
   Sidebar Styles
======================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}




.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #fff;
}

.sidebar-menu .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Submenu Styles */
.sub-menu {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.sub-menu .nav-link {
    padding: 0.5rem 1.25rem 0.5rem 3.5rem;
    font-size: 0.85rem;
}

.sub-menu .nav-link i {
    font-size: 0.9rem;
}

/* ========================
   Main Content Area
======================== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* ========================
   Navbar Styles
======================== */
.navbar {
    height: var(--topbar-height);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.current-business .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.notification-dropdown {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
}

.notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fc;
}

/* ========================
   Content Wrapper
======================== */
.content-wrapper {
    flex: 1;
    padding: 1.5rem;
}

/* ========================
   Page Header
======================== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

/* ========================
   Cards
======================== */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.info {
    border-left-color: var(--info-color);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* ========================
   Footer
======================== */
.footer {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e3e6f0;
    margin-top: auto;
}

/* ========================
   Responsive Styles
======================== */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
}

/* ========================
   Utility Classes
======================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

.bg-gradient-success {
    background: linear-gradient(180deg, #1cc88a 10%, #13855c 100%);
}

.bg-gradient-danger {
    background: linear-gradient(180deg, #e74a3b 10%, #be2617 100%);
}

.bg-gradient-warning {
    background: linear-gradient(180deg, #f6c23e 10%, #dda20a 100%);
}

.bg-gradient-info {
    background: linear-gradient(180deg, #36b9cc 10%, #258391 100%);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================
   Progress Bars
======================== */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* ========================
   Badges
======================== */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

/* ========================
   Buttons - Modern SaaS Style
======================== */

.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Small Button */
.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ========================
   Primary Button
======================== */
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* ========================
   Success Button
======================== */
.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

/* ========================
   Danger Button
======================== */
.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

/* ========================
   Outline Buttons
======================== */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}


/* ========================
   Tables
======================== */
.table {
    color: var(--dark-color);
}

.table thead th {
    border-bottom: 2px solid #e3e6f0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
}

.current-business .btn {
    border-radius: 12px;
    padding: 0.45rem 1rem;
    font-weight: 600;
}

.current-business .dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
}

.current-business .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: background 0.2s ease;
}

.current-business .dropdown-item:hover {
    background: #f1f5f9;
}
.stat-card {
    border-radius: 14px;
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

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