/* Global Styles */
body {
    background-color: #f8f9fa;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Card Styles */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem;
}

/* Dashboard Stats */
.dashboard-stat {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stat-primary {
    background-color: #e3f2fd;
    color: #1976d2;
}

.stat-success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.stat-warning {
    background-color: #fff3e0;
    color: #f57c00;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* Form Styles */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
}

.modal-content {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Button Customization */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* Alert Styles */
.alert {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

:root {
    --sidebar-width: 250px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --text-light: #ecf0f1;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--text-light);
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

#sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
}

/* Sidebar Menu Items */
.components {
    padding: 20px 0;
}

#sidebar ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    background: var(--sidebar-hover);
}

#sidebar ul li.active > a {
    background: var(--sidebar-hover);
    border-left: 4px solid #3498db;
}

/* Submenu Styles */
#sidebar ul ul {
    background: rgba(0, 0, 0, 0.2);
}

#sidebar ul ul a {
    padding-left: 50px;
    font-size: 0.9em;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Icons in sidebar */
#sidebar .fas {
    width: 20px;
    margin-right: 10px;
}

/* Main Content */
#content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    background: #f8f9fa;
    min-height: 100vh;
}

#content.expanded {
    margin-left: 0;
    width: 100%;
}

/* Top Navigation */
.navbar {
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dropdown Styles */
.dropdown-menu {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.dropdown-item {
    padding: 8px 20px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-footer a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #sidebarCollapse {
        display: block;
    }
}