/* Custom styles for the learning dashboard */

/* Dashboard layout */
body {
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Sidebar styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Active nav links */
.sidebar .nav-link.active {
    color: #2470dc;
    font-weight: 500;
}

/* Icon spacing in sidebar */
.sidebar .nav-link {
    font-weight: 400;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
}

/* Main content area */
main {
    padding-top: 1.5rem;
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

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

/* Table styling */
.table th {
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.02);
}

/* Button styling */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Form controls */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Progress bar customization */
.progress {
    height: 0.75rem;
    background-color: #e9ecef;
}

/* Login page styling */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Footer styling */
footer {
    margin-top: 2rem;
    padding: 1rem 0;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

/* Stats cards on dashboards */
.stats-card {
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

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

.stats-card .icon {
    font-size: 2rem;
    color: #0d6efd;
}

/* Admin/HR dashboard specific styles */
.action-buttons .btn {
    margin-right: 0.25rem;
}

/* User dashboard specific styles */
.user-score-card {
    text-align: center;
}

.user-score-card .display-4 {
    color: #0d6efd;
    font-weight: 500;
}

/* Modal customizations */
.modal-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Alert customizations */
.alert {
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 1rem;
    }
    
    main {
        margin-top: 1rem;
    }
    
    .sidebar-sticky {
        height: auto;
    }
}

/* Print styles for reports */
@media print {
    .sidebar, .navbar, .btn, .no-print {
        display: none !important;
    }
    
    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        background-color: #fff;
    }
}