/* Custom CSS for Teaching Supervision System */

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #26A69A;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animate:hover::before {
    width: 300px;
    height: 300px;
}

/* Sidebar styles */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar-hidden {
    transform: translateX(-100%);
}

@media (min-width: 768px) {
    .sidebar-hidden {
        transform: translateX(0);
    }
}

/* Table overflow */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 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: #1B5E20;
}

.badge-warning {
    background-color: #FFCA28;
    color: #F57F17;
}

.badge-danger {
    background-color: #EF5350;
    color: #FFFFFF;
}

.badge-info {
    background-color: #0288D1;
    color: #FFFFFF;
}

.badge-primary {
    background-color: #26A69A;
    color: #FFFFFF;
}

/* Modal animations */
.modal-backdrop {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #26A69A 0%, #AED581 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #FFCA28 0%, #FF8A65 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #4A2C6D 0%, #D32F2F 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #26A69A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1F8A7E;
}

/* Form input focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #26A69A;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
}

/* Responsive table */
@media (max-width: 768px) {
    .responsive-table {
        font-size: 0.875rem;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 0.5rem;
    }
}
