/* BSM Camus- Custom LMS Styles */

/* Dashboard Stats Boxes */
.small-box {
    border-radius: 0.5rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform 0.2s ease-in-out;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
}

.small-box .icon {
    font-size: 70px;
    transition: all 0.3s ease;
}

.small-box:hover .icon {
    font-size: 75px;
}

/* Cards */
.card {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, .04);
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-group .btn {
    margin: 0;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Sidebar */
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.nav-sidebar .nav-link {
    border-radius: 0.25rem;
    margin-bottom: 0.2rem;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, .1);
}

.nav-icon {
    margin-right: 0.5rem;
}

/* Forms */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.custom-control-input:checked~.custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    color: #6c757d;
}

/* Content Header */
.content-header {
    padding: 15px 0.5rem;
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

/* Custom Badge Colors */
.badge-teal {
    background-color: #20c997;
    color: #fff;
}

.badge-indigo {
    background-color: #6610f2;
    color: #fff;
}

.badge-purple {
    background-color: #6f42c1;
    color: #fff;
}

/* Loading Spinner */
.overlay {
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.5rem;
    }

    .small-box .icon {
        font-size: 50px;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .main-header,
    .content-header,
    .btn,
    .card-tools {
        display: none !important;
    }

    .content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Utility Classes */
.text-bold {
    font-weight: 600;
}

.text-muted {
    color: #6c757d !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* Course Level & Faculty specific */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

/* Status Indicators */
.status-active {
    color: #28a745;
}

.status-inactive {
    color: #6c757d;
}

.status-pending {
    color: #ffc107;
}

/* 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;
}