/* General Styles */
:root {
    --primary: #4e73df;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --secondary: #858796;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light);
}

/* Sidebar */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
    width: 15rem;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.1);
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0 !important;
    margin-bottom: 1px;
    transition: all 0.3s;
}

.list-group-item:hover, .list-group-item.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.list-group-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Navbar */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand {
    font-weight: 800;
    color: var(--dark) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

/* Dashboard Stats */
.stat-card {
    border-left: 0.25rem solid;
    border-radius: 0.35rem;
}

.stat-card.primary {
    border-left-color: var(--primary);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card.info {
    border-left-color: var(--info);
}

.stat-card .stat-card-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

/* Forms */
.form-control {
    border-radius: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #d1d3e2;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Responsive */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
    
    .container-fluid {
        padding: 1.5rem;
    }
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 100px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e3e6f0;
    padding: 1rem 0;
}

/* 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;
}

/* Custom Utilities */
.text-xs {
    font-size: 0.7rem;
}

.text-uppercase {
    letter-spacing: 0.05em;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}
/* 3D Chart Container */
#departmentChart3D {
    min-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #departmentChart3D {
        height: 400px;
    }
}

/* Tooltip styling */
.highcharts-tooltip span {
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Legend styling */
.highcharts-legend-item text {
    font-weight: 500 !important;
}