:root {
    --primary-blue: #005FFF;
    --dark-text: #222222;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --background-color: #ffffff;
    --footer-bg: #212529;
    --footer-text: #adb5bd;
    --footer-text-light: #ffffff;
}
/* --- Main Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 5% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--footer-text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col .logo-name {
    color: var(--footer-text-light);
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--footer-text);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--footer-text-light);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--footer-text);
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--footer-text-light);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid #343a40;
}
/* =============================
   GLOBAL LOADER STYLES
   ============================= */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    z-index: 10000; /* High z-index to cover Sidebar and Navbar */
    display: none; /* Hidden by default, toggled by JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* The Spinning Circle */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0; 
    border-top: 5px solid #007BFF; /* Admin Blue Theme */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* --- FOOTER RESPONSIVENESS --- */

/* 1. Tablet View (Max Width 900px) */
@media (max-width: 900px) {
    .footer-container {
        /* Switch from 5 columns to 2 equal columns */
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }

    /* Make the "About/Logo" section span both columns so it sits on top */
    .footer-col:first-child {
        grid-column: span 2;
        text-align: center; /* Optional: Center the logo section */
    }

    .footer-about {
        margin: 15px auto; /* Center the text block */
        max-width: 100%; /* Let it use full width */
    }
    
    .social-icons {
        justify-content: center; /* Center social icons */
    }
}

/* 2. Mobile View (Max Width 600px) */
@media (max-width: 600px) {
    .main-footer {
        padding: 40px 20px 0; /* Reduce padding */
    }

    .footer-container {
        /* Switch to a single column stack */
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center; /* Center text for better readability on phone */
    }

    /* Reset the span we added for tablets */
    .footer-col:first-child {
        grid-column: span 1;
    }

    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Add spacing between links to make them easier to tap */
    .footer-col ul li {
        margin-bottom: 15px;
        font-size: 16px; /* Slightly larger text for touch targets */
    }
}