body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

.login-page {
    background: url('/house.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.9); /* White with 90% opacity */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 300px;
    text-align: center;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Base button style - no longer full-width */
button {
    width: auto;           /* Let the text define the width */
    min-width: 100px;      /* But keep it substantial enough to click */
    padding: 8px 16px;     /* Comfortable spacing inside the button */
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #34495e;
}

.error-msg {
    color: #c0392b;
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.day {
    height: 80px;
    border: 1px solid #ccc;
    padding: 5px;
    background: white;
    cursor: pointer;
}

.day-head { font-weight: bold; text-align: center; padding: 10px; background: #eee; }

/* Shading Logic */
.my-stay { background-color: #2ecc71 !important; color: white; }    /* Green */
.others-stay { background-color: #e74c3c !important; color: white; } /* Red */
.work-day { background-color: #3498db !important; color: white; }    /* Blue */

.nav-bar {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}
.nav-bar a { color: white; margin-left: 15px; text-decoration: none; }

.container { padding: 20px; max-width: 1000px; margin: auto; background: white; margin-top: 20px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #ddd; }
tr:hover { background-color: #f5f5f5; }

.inline-form input { margin-right: 10px; padding: 8px; }
/* Specific styling for the Delete action */
.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

hr { margin: 30px 0; border: 0; border-top: 1px solid #eee; }

/* Ensure form elements on the reports page stay inline */
.report-box form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* Space between inputs and the button */
    margin-bottom: 15px;
}

.report-box input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100px; /* Uniform width for month/year inputs */
}