/* Custom ERP/CRM Styles - Lux Theme Enhancement */

:root {
    --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --sidebar-width: 260px;
    --topbar-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--primary-gradient);
    padding-top: 20px;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar .logo h3 {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-left: 3px solid #1a73e8;
}

.sidebar-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Accordion Menu Styles */
.sidebar-nav li.has-submenu > a {
    position: relative;
}

.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-nav .submenu-items {
    list-style: none;
    padding: 0;
    margin: 5px 0 10px 0;
    display: none;
}

.sidebar-nav .submenu-items li {
    margin-bottom: 0;
}

.sidebar-nav .submenu-items a {
    padding: 10px 20px 10px 50px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border-left: none;
}

.sidebar-nav .submenu-items a:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    border-left: 3px solid #1a73e8;
}

.sidebar-nav .submenu-items a.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 3px solid #1a73e8;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    padding: 0 30px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-wrapper {
    padding: 30px;
    flex: 1;
}

/* Fix Bootstrap row negative margins within content-wrapper */
.content-wrapper > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Footer */
.footer {
    margin-top: auto;
    width: 100%;
}

/* Dashboard Cards */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card.primary { border-left-color: #1a73e8; }
.stat-card.success { border-left-color: #0f9d58; }
.stat-card.warning { border-left-color: #f4b400; }
.stat-card.danger { border-left-color: #db4437; }
.stat-card.info { border-left-color: #17a2b8; }

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    float: right;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 600;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Breakdown */
.status-breakdown .badge {
    min-width: 110px;
    text-align: left;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .logo h2 {
    color: #1a1a2e;
    font-weight: 700;
    margin: 0;
}

.auth-card .logo p {
    color: #666;
    margin: 5px 0 0 0;
}

.form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

.btn-primary {
    background: #1a73e8;
    border-color: #1a73e8;
    padding: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1557b0;
    border-color: #1557b0;
}

.alert {
    border-radius: 8px;
}

/* User Dropdown */
.user-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Table Styles */
.table-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Badge Styles */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}


