/**
 * Jacksonville College LDAP System - Main Stylesheet
 * 
 * Centralized styles for consistent UI across all pages
 * 
 * @author Jacksonville College IT Department
 */

/* ============================================================================
   TAILWIND CONFIGURATION
   ============================================================================ */

/* Custom color palette */
:root {
    --jc-purple: #461D7C;
    --jc-purple-dark: #2E1654;
    --jc-purple-light: #6B3FA0;
    --jc-purple-transparent: rgba(204, 136, 255, 0.2);
    --jc-gold: #FDD023;
    --jc-gold-transparent: rgba(253, 208, 35, 0.2);
}

/* ============================================================================
   GRADIENT BACKGROUNDS
   ============================================================================ */

.gradient-bg {
    background: linear-gradient(135deg, #461D7C 0%, #2E1654 100%);
}

/* ============================================================================
   NAVIGATION STYLES
   ============================================================================ */

.nav-link {
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid #FDD023;
}

.nav-link.active {
    background-color: rgba(204, 136, 255, 0.2);
    border-bottom: 3px solid #FDD023;
}

/* ============================================================================
   CARD STYLES
   ============================================================================ */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   BADGE STYLES
   ============================================================================ */

.badge-employee {
    background: linear-gradient(135deg, #461D7C 0%, #2E1654 100%);
}

.badge-student {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.badge-ou {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */

.search-input:focus,
.input-field:focus {
    border-color: #461D7C;
    box-shadow: 0 0 0 3px rgba(70, 29, 124, 0.1);
}

/* Password strength indicators */
.strength-weak {
    background: #ef4444;
}

.strength-fair {
    background: #f59e0b;
}

.strength-good {
    background: #10b981;
}

.strength-strong {
    background: #059669;
}

/* Tab styles */
.tab-active {
    border-bottom: 2px solid #FDD023;
    color: #461D7C;
    font-weight: 600;
}

.tab-inactive {
    border-bottom: 2px solid transparent;
    color: #6b7280;
}

.password-toggle {
    cursor: pointer;
    user-select: none;
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

.loading-spinner {
    border: 4px solid rgba(70, 29, 124, 0.1);
    border-left-color: #461D7C;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.result-enter {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade transition for AJAX navigation */
.fade-transition {
    transition: opacity 0.3s ease;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-jc-purple {
    color: #461D7C;
}

.text-jc-purple-dark {
    color: #2E1654;
}

.text-jc-gold {
    color: #FDD023;
}

.bg-jc-purple {
    background-color: #461D7C;
}

.bg-jc-purple-dark {
    background-color: #2E1654;
}

.bg-jc-gold {
    background-color: #FDD023;
}

.bg-jc-gold-transparent {
    background-color: rgba(253, 208, 35, 0.2);
}

.bg-jc-purple-transparent {
    background-color: rgba(204, 136, 255, 0.2);
}

.border-jc-purple {
    border-color: #461D7C;
}

.border-jc-gold {
    border-color: #FDD023;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .nav-link {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
