/*
 * Sidebar Styles
 */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #2c3e50;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    color: #fff !important;
    background: #3498db;
    text-decoration: none;
}

#sidebar ul li.active>a {
    color: #fff;
    background: #3498db;
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/*
 * Navbar Toggle Button
 */
#sidebarCollapse {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
}

#sidebarCollapse:hover {
    background: #2980b9;
}

/*
 * Card Styles
 */
.card {
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/*
 * Buttons
 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

/*
 * Tables
 */
.table th {
    font-weight: 600;
    color: #495057;
}

/*
 * Alerts
 */
.alert {
    border-radius: 8px;
}

/*
 * Forms
 */
.form-control {
    border-radius: 6px;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/*
 * Badges
 */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
}

/*
 * Responsive
 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        padding-left: 0;
    }
}

/*
 * Loading Spinner
 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/*
 * Custom Scrollbar
 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
