/* Custom Styles for Competency Assessment System */

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #26A69A;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sidebar Styles */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar-hidden {
    transform: translateX(-100%);
}

@media (min-width: 1024px) {
    .sidebar-hidden {
        transform: translateX(0);
    }
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #26A69A 0%, #AED581 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #FFCA28 0%, #FF8A65 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #EF5350 0%, #F57C00 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #4A2C6D 0%, #0288D1 100%);
}

.sidebar-admin {
    background-color: #4A2C6D !important;
    background: linear-gradient(135deg, #4A2C6D 0%, #6A1B9A 100%) !important;
}

.sidebar-teacher {
    background-color: #004D40 !important;
    background: linear-gradient(135deg, #004D40 0%, #00796B 100%) !important;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Table Overflow */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #26A69A;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #1e8a7f;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #AED581;
    color: #2E7D32;
}

.badge-warning {
    background-color: #FFCA28;
    color: #F57C00;
}

.badge-danger {
    background-color: #EF5350;
    color: #FFFFFF;
}

.badge-info {
    background-color: #0288D1;
    color: #FFFFFF;
}

/* Modal Enhancements */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #26A69A;
    border-radius: 10px;
}

/* Sidebar Scrollbar */
.sidebar-menu {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Button Animations */
.btn-animate {
    transition: all 0.3s ease;
}

.btn-animate:hover {
    transform: scale(1.05);
}

.btn-animate:active {
    transform: scale(0.95);
}

/* Login Page Background */
.login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Tab Styles */
.tab-button {
    padding: 0.75rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-button:hover {
    background-color: rgba(38, 166, 154, 0.1);
}

.tab-button.active {
    border-bottom-color: #26A69A;
    color: #26A69A;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #26A69A;
    background-color: rgba(38, 166, 154, 0.05);
}

.radio-label input:checked+span {
    color: #26A69A;
    font-weight: 600;
}

.radio-label input:checked {
    accent-color: #26A69A;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}