body {
    font-family: 'Courier New', Courier, monospace; /* Add fallbacks */
    background-color: #f4f4f4; /* Light background */
    color: #333333; /* Dark text */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

button, input, h1, h2, td, th {
   font-family: inherit;
}

.container {
    background: transparent; /* Keep transparent or consider a very light shade */
    padding: 40px;
    border-radius: 12px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); Optional: subtle shadow for light theme */
    max-width: 900px;
    width: 90%;
    display: flex;
    align-items: center;
}

#timer-section {
    width: 300px;
    text-align: left;
    padding-right: 30px;
    border-right: 1px solid #ccc; /* Lighter separator */
}

#timer {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #007bff; /* A common blue accent color for light themes */
    display: none;
}

#companyLogo {
    display: block;
    width: 300px;
    margin-bottom: -30px;
    margin-left: -50px;
}

.button-section {
    flex-grow: 1;
    padding: 0 30px;
    text-align: left;
}

button {
    background: none;
    color: #333333; /* Dark text color */
    border: none; 
    padding: 10px 15px;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease; /* Include border transition */
    display: block;
    margin-bottom: 10px;
    text-align: left;
    border-radius: 5px; /* Add slight rounding for modern look */
}

button:hover {
    color: #007bff; /* Highlight on hover */
    border-color: #007bff;
}

button:disabled {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

button.active-status {
    color: #28a745; /* Green for active status (adjust as needed) */
    font-weight: bold;
    border-color: #28a745;
}

.login-section {
    width: 300px;
    padding-left: 30px;
    text-align: left;
    border-left: 1px solid #ccc; /* Lighter separator */
}

.login-section h2 {
    color: #333333;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

input, .password-toggle {
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ddd; /* Lighter border */
    background-color: #fff; /* Light input background */
    color: #333333;
    box-sizing: border-box;
    line-height: 1.5;
    border-radius: 5px;
}

#password {
    border-radius: 5px 0 0 5px;
    border-right: none;
    flex-grow: 1;
}

#userId {
    width: 100%;
    border-radius: 5px;
}

.password-toggle {
    border-radius: 0 5px 5px 0;
    border-left: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    background-color: #eee; /* Lighter toggle background */
    color: #333333;
    border: 1px solid #ddd;
}

#controls {
    display: none;
    margin-top: 20px;
    text-align: left;
}

#stopBtn, #logoutBtn {
    background: none;
    color: #dc3545; /* A common red for critical actions in light themes */
    border: none;
    padding: 10px 15px;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease; /* Include border transition */
    display: inline-block;
    margin-right: 10px;
    border-radius: 5px;
}

#stopBtn:hover, #logoutBtn:hover {
    color: #220407;
    border-color: none;
}

#logoutBtn:disabled {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

#historyDisplay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; /* Light modal background */
    color: #333333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 700px;
    text-align: left;
}

#historyDisplay h2 {
    color: #333333;
    margin-bottom: 15px;
}

#historyTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid #ddd; /* Lighter border */
}

#historyTable th, #historyTable td {
    border: 1px solid #ddd; /* Lighter border */
    padding: 10px 12px;
    text-align: left;
}

#historyTable th {
    background-color: #eee; /* Light header background */
    font-weight: 600;
    color: #333;
}

#historyTable tr:nth-child(even) {
    background-color: #f9f9f9; /* Very light row background */
}

#historyTable tr:hover {
    background-color: #f0f0f0; /* Slightly darker hover */
}

#closeHistoryBtn, #exportHistoryBtn {
    background: none;
    color: #333333;
    border: 1px solid #ccc; /* Lighter border */
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    margin-right: 10px;
}

#closeHistoryBtn:hover, #exportHistoryBtn:hover {
    color: #007bff;
    border-color: #007bff;
}

.custom-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; /* Light dialog background */
    color: #333333;
    padding: 25px;
    border: 1px solid #ccc; /* Lighter border */
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

.custom-dialog p {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: center;
    margin-top: 0;
}

.custom-dialog .button-container {
    text-align: center;
    margin-top: 20px;
}

.custom-dialog-button {
    display: inline-block;
    vertical-align: middle;
    background: none;
    color: #333333;
    border: 1px solid #ccc; /* Lighter border */
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin: 0 5px;
}

.custom-dialog-button.confirm-button:hover {
    border-color: #007bff;
    color: #007bff;
}

.custom-dialog-button.cancel-button:hover {
    border-color: #dc3545;
    color: #dc3545;
}

#scheduleDialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; /* Light dialog background */
    color: #333333;
    padding: 25px;
    border: 1px solid #ccc; /* Lighter border */
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

#scheduleDialog h2 {
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

#scheduleDialog label {
    display: inline-block;
    width: 150px;
    margin-bottom: 5px;
    font-size: 1em;
    text-align: right;
    margin-right: 10px;
    color: #555; /* Slightly lighter label text */
}

#scheduleDialog input[type='time'],
#scheduleDialog select {
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ddd; /* Lighter border */
    background-color: #fff; /* Light input/select background */
    color: #333333;
    box-sizing: border-box;
    line-height: 1.5;
    border-radius: 5px;
    margin-bottom: 15px;
    width: calc(100% - 160px);
    display: inline-block;
    vertical-align: middle;
}

#dialogUpdateScheduleBtn {
    background: none;
    color: #333333;
    border: 1px solid #ccc; /* Lighter border */
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-top: 20px;
}

#dialogUpdateScheduleBtn:hover {
    border-color: #007bff;
    color: #007bff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly lighter overlay */
    z-index: 999;
    display: none;
}