@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.flash-messages {
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
    display: none; /* Hide by default */
}

.flash-messages.hidden {
    display: none; /* Ensure hidden class hides the container */
}

.flash-messages:not(.hidden) {
    display: block; /* Show when not hidden */
}

.notice, .alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

.notice {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Loading screen for non-admin pages (fixed to viewport, centered) */
body > #loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

body > #loading-screen .spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: page-loading-spin 2s linear infinite;
}

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