/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h2, h3 {
    color: #212529;
}

/* Table Styling */
.table th {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f3f5;
}

.table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Custom Action Buttons */
.action-btn {
    transition: all 0.2s ease-in-out;
}
.action-btn:hover {
    transform: translateY(-1px);
    text-decoration: underline !important;
}

/* Form Styling */
.form-control, .form-select {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-row {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

.animate-row:nth-child(1) { animation-delay: 0.1s; }
.animate-row:nth-child(2) { animation-delay: 0.2s; }
.animate-row:nth-child(3) { animation-delay: 0.3s; }
.animate-row:nth-child(4) { animation-delay: 0.4s; }
.animate-row:nth-child(5) { animation-delay: 0.5s; }

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
} 


/* Ensure submit button is always clickable and on top */
#submitBtn, #clearBtn {
    position: relative;
    z-index: 100;
    cursor: pointer;
}

/* Ensure the loading overlay never blocks clicks when hidden */
#formLoadingOverlay[style*="display: none"] {
    pointer-events: none;
}