/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.loading-screen.force-hide,
body:not(.app-loading) .loading-screen {
    display: none !important;
}

.loading-content { text-align: center; }

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2d9e44;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

body.app-loading { overflow: hidden; }

/* Modern UI Enhancements */
.card-modern    { border: none; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.alert-modern   { border: none; border-radius: 10px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.badge-modern   { padding: .35em .65em; border-radius: 6px; font-size: .8em; }
.badge-danger   { background: #dc3545; color: #fff; }
.badge-primary  { background: #2d9e44; color: #fff; }

.form-group-modern  { margin-bottom: 1rem; }
.form-label-modern  { font-weight: 500; margin-bottom: .4rem; display: block; }
.form-control-modern { width: 100%; padding: .5rem .75rem; border: 1px solid #dee2e6; border-radius: 8px; }

.btn-modern                  { border-radius: 8px; font-weight: 500; padding: .5rem 1.25rem; }
.btn-modern.btn-primary      { background: linear-gradient(135deg, #2d9e44, #1a7030); border: none; }
.btn-modern.btn-secondary    { background: #6c757d; border: none; color: #fff; }

.modal-modern .modal-content { border-radius: 12px; border: none; }
.modal-modern .modal-header  { border-bottom: 1px solid #f0f0f0; }
.modal-modern .modal-footer  { border-top:    1px solid #f0f0f0; }
.dropdown-modern             { border: none; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.user-avatar       { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.user-avatar-large { display: inline-block; }
.user-name         { font-size: .9rem; font-weight: 500; color: #fff; }

.typography-heading-3 { font-size: 1.5rem; font-weight: 600; }
.typography-heading-4 { font-size: 1.25rem; font-weight: 600; }

.fade-in         { opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
.fade-in.animate { opacity: 1; transform: translateY(0); }

.profile-info .row { border-bottom: 1px solid #f0f0f0; padding-bottom: .75rem; }
