/* Core Page Layout */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #e5e7eb; /* Matches Tailwind bg-gray-200 */
}

/* Scroll handling for smaller screens */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Spinner - High contrast for black button/white form */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 3px solid #ffffff; 
    width: 1.1rem;
    height: 1.1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Message Box */
#message-box {
    transition: all 0.2s ease-in-out;
}

#message-box.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#message-box.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Custom Form Focus Fix */
/* Ensures the green ring from your HTML looks crisp */
input:focus, textarea:focus {
    border-color: transparent !important;
}