/* global.css */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

#global-loader.active {
    visibility: visible;
    opacity: 1;
}

.loader-card {
    background: #ffffff;
    padding: 24px 36px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.loader-spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.loader-text {
    margin-top: 0;
    margin-left: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

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

/* --- Global UI Standardization --- */
/* Rounded Corners */
.form-control, .btn, .card {
    border-radius: 1rem !important;
}

/* Input & Button Transition */
.form-control, .btn {
    transition: all 0.3s ease;
}

/* Modern Green Primary Button */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #059669; /* Modern Emerald */
    --bs-btn-border-color: #059669;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #047857; /* Darker Emerald on hover */
    --bs-btn-hover-border-color: #047857;
    --bs-btn-focus-shadow-rgb: 5, 150, 105;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #047857;
    --bs-btn-active-border-color: #047857;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #059669;
    --bs-btn-disabled-border-color: #059669;
}
