/* Main CSS for Haneef Network - Combining Five Subsidiary Colors */

/* Five Subsidiary School Colors for General Home Page Branding */
:root {
    /* Haneef Academy Jos - Dark Green and Light Green */
    --academy-jos-dark-green: #166534;
    --academy-jos-light-green: #22c55e;
    
    /* Haneef Madrasah Primary - Lilac */
    --madrasah-primary-lilac: #a855f7;
    
    /* Haneef High School - Dark Blue and Sky Blue */
    --high-school-dark-blue: #1e40af;
    --high-school-sky-blue: #0ea5e9;
    
    /* Haneef Madrasah College - Sky Blue */
    --madrasah-college-sky-blue: #0ea5e9;
    
    /* Haneef Tahfeedh - Sky Blue and Blue */
    --tahfeedh-sky-blue: #0ea5e9;
    --tahfeedh-blue: #3b82f6;
}

/* CRITICAL: Fix scrolling issues */
html, body {
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    position: relative;
    background-color: #f9fafb;
}

/* Ensure all pages can scroll properly */
.min-h-screen {
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

/* Fix for fixed navigation */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Ensure content below fixed nav is properly positioned */
body {
    padding-top: 96px; /* Adjust based on your nav height */
}

/* Remove any problematic overflow hidden rules */
* {
    box-sizing: border-box;
}

/* Combined Gradient Backgrounds for Home Page */
.combined-gradient-primary {
    background: linear-gradient(135deg, 
        var(--academy-jos-dark-green) 0%, 
        var(--madrasah-primary-lilac) 25%, 
        var(--high-school-dark-blue) 50%, 
        var(--madrasah-college-sky-blue) 75%, 
        var(--tahfeedh-blue) 100%);
}

.combined-gradient-secondary {
    background: linear-gradient(135deg, 
        var(--academy-jos-light-green) 0%, 
        var(--high-school-sky-blue) 33%, 
        var(--tahfeedh-sky-blue) 66%, 
        var(--madrasah-primary-lilac) 100%);
}

.combined-gradient-accent {
    background: linear-gradient(135deg, 
        var(--academy-jos-light-green) 0%, 
        var(--madrasah-college-sky-blue) 50%, 
        var(--tahfeedh-blue) 100%);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Professional Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Professional Card Styles */
.professional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Professional Button Styles */
.btn-professional {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-professional:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Professional Form Styles */
.form-professional input,
.form-professional select,
.form-professional textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-professional input:focus,
.form-professional select:focus,
.form-professional textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Professional Table Styles */
.table-professional {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-professional th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: left;
}

.table-professional td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.table-professional tr:hover {
    background-color: #f8fafc;
}

/* Professional Modal Styles */
.modal-professional {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-professional {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

/* Professional Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional Toast Notifications */
.toast-professional {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid #10b981;
    animation: slideInRight 0.3s ease-out;
}

.toast-professional.error {
    border-left-color: #ef4444;
}

.toast-professional.warning {
    border-left-color: #f59e0b;
}

.toast-professional.info {
    border-left-color: #3b82f6;
}

/* Professional Responsive Design */
@media (max-width: 768px) {
    .professional-card {
        margin: 8px;
        border-radius: 12px;
    }
    
    .btn-professional {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-professional input,
    .form-professional select,
    .form-professional textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .modal-content-professional {
        margin: 20px;
        padding: 24px;
    }
}

/* Professional Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .professional-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Professional Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Professional Focus Styles */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Professional Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .professional-card {
        background: rgba(31, 41, 55, 0.95);
        color: white;
    }
    
    .form-professional input,
    .form-professional select,
    .form-professional textarea {
        background: rgba(55, 65, 81, 0.9);
        color: white;
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .table-professional {
        background: #1f2937;
        color: white;
    }
    
    .table-professional td {
        border-bottom-color: #374151;
    }
    
    .table-professional tr:hover {
        background-color: #374151;
    }
} 