/* Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dashboard Cards */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Competency Level Badges */
.level-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.level-1 { background-color: #f8d7da; color: #842029; }
.level-2 { background-color: #fff3cd; color: #997404; }
.level-3 { background-color: #cfe2ff; color: #084298; }
.level-4 { background-color: #d1e7dd; color: #0f5132; }
.level-5 { background-color: #d3f9d8; color: #0a3622; }

/* Assessment Form */
.competency-section {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.competency-item {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s;
}

.competency-item:hover {
    background-color: #e9ecef;
}

.level-option {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.level-option:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.level-option.selected {
    border-color: var(--primary-color);
    background-color: #e7f3ff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

/* Progress Indicators */
.progress-custom {
    height: 1.5rem;
    border-radius: 0.5rem;
}

/* Table Improvements */
.table-hover tbody tr:hover {
    background-color: #f0f8ff;
}

/* Button Styles */
.btn-icon {
    padding: 0.5rem 0.75rem;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-card .stat-icon {
        font-size: 2rem;
    }
    
    .competency-item {
        padding: 1rem;
    }
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-not-started { background-color: #e9ecef; color: #6c757d; }
.status-in-progress { background-color: #cfe2ff; color: #084298; }
.status-submitted { background-color: #d1e7dd; color: #0f5132; }
.status-reviewed { background-color: #d3f9d8; color: #0a3622; }
.status-finalized { background-color: #f8d7da; color: #842029; }
