html, body {
    height: 100%;
    width: 100vw;
    min-height: 100vh;
    min-width: 100vw;
    background-color: #eef2f7;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
    box-sizing: border-box;
    overflow: visible;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

p {
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.1em;
    color: #555;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.button {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.button.primary { background-color: #28a745; }
.button.primary:hover { background-color: #218838; }
.button.info { background-color: #007bff; }
.button.info:hover { background-color: #0056b3; }
.button.warning { background-color: #ffc107; color: #343a40; }
.button.warning:hover { background-color: #e0a800; }
.button.danger { background-color: #dc3545; }
.button.danger:hover { background-color: #c82333; }

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.button-group.form-buttons {
    margin-top: 30px;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-row > * {
    flex: 1;
}
.form-row .search-btn {
    flex: 0 0 auto;
    margin-left: 10px;
}

/* Table styling for girl_job.php */
.input-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    table-layout: fixed;
}

.input-table th,
.input-table td {
    border: 1px solid #bbb;
    padding: 8px 6px;
    text-align: center;
    background-clip: padding-box;
    word-break: break-word;
    min-width: 0;
    max-width: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Make all input/selects fit perfectly in their cells */
.input-table td input,
.input-table td select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px 2px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    outline: none;
}

.input-table th {
    background: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.04);
}

/* Table container: no vertical or horizontal scroll, allow page to scroll instead */
.table-responsive.table-bg-full {
    max-height: none;
    min-height: 0;
    overflow-y: visible;
    overflow-x: hidden;
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Remove horizontal scroll on all screens */
.table-responsive {
    overflow-x: hidden !important;
}

/* Responsive: phone mode, full width */
@media (max-width: 900px) {
    .container {
        max-width: 100vw;
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    .input-table th, .input-table td {
        font-size: 0.95em;
        padding: 6px 2px;
    }
    .table-responsive.table-bg-full {
        margin-bottom: 10px;
    }
}

/* Prevent horizontal scroll on all screens */
html, body {
    overflow-x: hidden !important;
}

/* Ensure water and total cells have a minimum size */
.input-table td.water span,
.input-table td.total span {
    display: inline-block;
    min-width: 40px;   /* Adjust as needed */
    min-height: 1.5em; /* Adjust as needed */
    text-align: right;
}

/* Ensure duties-group inputs match the height and style of the date input */
.duties-group input[type="number"],
.duties-group input[type="text"],
.duties-group input[type="date"] {
    height: 40px;
    padding: 8px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.duties-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

.duties-group label {
    font-size: 1em;
    line-height: 40px;
    /* Align label vertically with input */
}


