/* Admin Dashboard Styles */
.small-box {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.small-box .inner {
    padding: 20px;
}

.small-box .icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 50px;
    opacity: 0.3;
}

.small-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    padding: 0;
}

.small-box p {
    margin-bottom: 0;
}

/* Sidebar customization */
.sidebar-dark-primary {
    background-color: #343a40;
}

.sidebar-dark-primary .nav-sidebar .nav-item .nav-link {
    color: #c2c7d0;
}

.sidebar-dark-primary .nav-sidebar .nav-item .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

/* Card customization */
.card {
    border: none;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: transparent;
}

/* Table customization */
.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Chart containers */
canvas {
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .small-box {
        text-align: center;
    }
    
    .small-box .icon {
        display: none;
    }
    
    .small-box h3 {
        font-size: 1.8rem;
    }
}

/* Animation for chart updates */
.chart-container {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
