/* --- Modal (Login/Register) Styles --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.25); z-index: 1000; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); max-width: 370px; width: 95vw; padding: 32px 24px 18px 24px; position: relative; animation: modalIn 0.3s; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 16px; left: 16px; background: none; border: none; font-size: 26px; color: #888; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: #e60023; }
.modal-title { font-size: 22px; font-weight: bold; margin-bottom: 10px; text-align: right; color: #222; }
.modal-title i { margin-left: 7px; color: #28a745; }
.modal-desc { font-size: 15px; color: #444; margin-bottom: 18px; text-align: right; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-label { font-size: 13px; color: #666; margin-bottom: 2px; text-align: right; }
.modal-input { padding: 10px 12px; border: 1px solid #ccc; border-radius: 7px; font-size: 15px; outline: none; transition: border 0.2s, box-shadow 0.2s; }
.modal-input:focus { border-color: #28a745; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15); }
.modal-btn { background: #28a745; color: #fff; border: none; border-radius: 7px; padding: 12px 0; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.modal-btn:hover { background: #28a745; }
.modal-link { color: #e60023; text-align: center; font-size: 14px; margin-top: 8px; text-decoration: none; display: block; }

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-dialog {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.loading-dialog p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

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