body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.bg-custom-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background khas untuk halaman result (dashboard), lebih cerah supaya kad putih kekal jelas dibaca */
.bg-result-image {
    background-image: linear-gradient(rgba(249, 250, 251, 0.2), rgba(249, 250, 251, 0.3)), var(--bg-image-result, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth slide-in animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* Hide elements utility */
.hidden-view {
    display: none !important;
}

/* Loading spinner shown on the login button while checking the database */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
