body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #003366, #000033);
    background-size: cover;
    background-attachment: fixed;
    color: #FFFFFF;
}

/* Optional wrapper if you ever want to center login forms perfectly */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
h2 {
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

form {
    display: flex;
    flex-direction: column;    
    margin-top: 5px;
}

form p {
    width: 100%;
}

p {
    margin: 10px 0;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #FFFFFF;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

a:hover {
    text-decoration: underline;
}

/* Home Page - 4 Buttons */
.home-hero {
    text-align: center;
    padding: 80px 20px 100px;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 60px;
    color: #ddd;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.btn {
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    /*transition: all 0.3s;*/
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Only apply the jump animation to the large Home Page buttons */
/*
.button-grid .btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
*/

.btn-owner   { background: linear-gradient(135deg, #003366, #0055aa); }
.btn-hr      { background: linear-gradient(135deg, #006600, #009900); }
.btn-employee{ background: linear-gradient(135deg, #aa6600, #cc8800); }

.btn small {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ====================== HERO ====================== */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 0, 51, 0.85)),
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Page context visibility helpers */
.hide-hero .hero {
    display: none;
}

/* Fix for checkboxes and radio button labels */
.form-check-label {
    display: inline-block !important;
    width: auto !important;
    margin-bottom: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* Ensure the checkbox itself doesn't stretch */
input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 1100px; /* Adjusting to fit the large table */
    width: 90%;
    /* Added a 140px bottom margin cushion so content can never hide behind the fixed footer */
    margin: 40px auto 140px; 
}

/* Footer */
.footer {
    /* Changed from rgba transparency to solid hex color to hide text scrolling underneath */
    background-color: #000011; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
}

/* Replace the generic form rule with something scoped */
.login-page form,
.form-stacked {
    display: flex;
    flex-direction: column;    
    margin-top: 5px;
}

/* Scope generic input styles to avoid breaking Bootstrap inline inputs */
form:not(.d-flex) input,
form:not(.d-flex) select,
form:not(.d-flex) textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Fix number input spinners visibility on dark backgrounds */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    filter: invert(1);
}