:root {
    --primary-color: #4761FF;
    --secondary-color: #6C757D;
    --success-color: #10B981;
    --info-color: #0EA5E9;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #F9FAFB;
}

.sidebar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar .nav-link {
    color: #4B5563;
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #F3F4F6;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: #EFF6FF;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
}

.stat-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.stat-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .card-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.trend-up {
    color: #10B981;
}

.trend-down {
    color: #EF4444;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #4761FF, #6E8BFF);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #10B981, #34D399);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #0EA5E9, #38BDF8);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #F59E0B, #FBBF24);
}

.data-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.data-card .card-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card .card-body {
    padding: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #6B7280;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4B5563;
}

.badge-soft-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-soft-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-soft-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.btn-soft-primary {
    background-color: #EFF6FF;
    color: var(--primary-color);
    border: none;
}

.btn-soft-primary:hover {
    background-color: #DBEAFE;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar-btn {
        display: block !important;
    }
}

.toggle-sidebar-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* Custom tooltips */
.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}