/* ===============================
   ENTERPRISE THEME SYSTEM
================================ */

:root {
    --primary: #1f2937;
    --secondary: #374151;
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f9fafb;
    --dark: #111827;
}

/* RESET */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--light);
    font-size: 14px;
}

/* ===============================
   SIDEBAR
================================ */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: var(--primary);
    color: #fff;
    transition: all 0.3s;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar img {
    max-height: 40px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 12px 20px;
}

.sidebar ul li a {
    color: #ddd;
    text-decoration: none;
    display: block;
}

.sidebar ul li a:hover {
    background: var(--accent);
    border-radius: 8px;
    color: #fff;
}
.submenu {
    list-style: none;
    padding-left: 15px;
}

.submenu li a {
    font-size: 13px;
    padding: 6px 0;
    display: block;
    color: #ddd;
}

.submenu li a:hover {
    color: #fff;
}

.menu-toggle {
    display: block;
    cursor: pointer;
}

.toggle-icon {
    transition: transform 0.3s;
}

.menu-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* ===============================
   CONTENT AREA
================================ */

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* ===============================
   NAVBAR TOP
================================ */

.topbar {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   CARDS
================================ */

.card-enterprise {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* ===============================
   BUTTONS
================================ */

.btn-primary {
    background: var(--accent);
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
}

/* ===============================
   MOBILE SALES MODE
================================ */

@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1050;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* ===============================
   LOADING
================================ */

.loading-overlay {
    position: fixed;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* ===============================
   TABLE ENTERPRISE
================================ */

.table {
    border-radius: 10px;
    overflow: hidden;
}
