body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for mode change */
}

/* Light Mode (Default) */
body.light-mode {
    background-color: #f0f0f0; /* Light gray screen */
    color: #333; /* Black text */
}
.container.light-mode-container {
    background-color: #f0f0f0; /* Light gray dashboard */
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.light-mode h1,
.light-mode .controls label,
.light-mode #current-time,
.light-mode #alarm-status {
    color: #333; /* Black text */
}
/* Input text color for light mode */
.light-mode .controls input[type="time"],
.light-mode .controls input[type="file"] {
    color: #333; /* Black text for inputs */
    background-color: #fff; /* White background for inputs */
    border: 1px solid #ddd;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a; /* Black screen */
    color: #e0e0e0; /* Light gray text */
}
.container.dark-mode-container {
    background-color: #2c2c2c; /* Dark gray dashboard (slightly lighter than screen) */
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.dark-mode h1,
.dark-mode .controls label,
.dark-mode #current-time,
.dark-mode #alarm-status {
    color: #e0e0e0; /* Light gray text */
}
/* Input text/bg color for dark mode */
.dark-mode .controls input[type="time"],
.dark-mode .controls input[type="file"] {
    color: #e0e0e0; /* Light gray text for inputs */
    background-color: #3a3a3a; /* Darker background for inputs */
    border: 1px solid #555;
}

.container {
    /* background-color: white; -- Handled by mode classes now */
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 0 15px rgba(0,0,0,0.1); -- Handled by mode classes now */
    text-align: center;
    position: relative; /* Added for positioning context for the checkbox container */
    transition: background-color 0.3s; /* Smooth transition */
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

#current-time {
    font-size: 2em;
    margin-bottom: 20px;
    color: #555;
}

.controls label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #666;
}

.controls input[type="time"],
.controls input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    width: calc(100% - 18px);
}

.controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

.controls button:hover {
    background-color: #0056b3;
}

#stop-alarm {
    background-color: #dc3545;
}

#stop-alarm:hover {
    background-color: #c82333;
}

#alarm-status {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
    min-height: 1.5em;
}

/* New styles for the toggles area */
.toggles-area {
    display: flex;
    justify-content: space-between; /* Distributes space between the two toggles */
    align-items: center;
    margin-top: 25px; /* Space above the toggles area */
    padding-top: 15px; /* Padding inside the top of the toggles area */
    border-top: 1px solid #ccc; /* Separator line */
}

.light-mode .toggles-area {
    border-top-color: #ddd;
}

.dark-mode .toggles-area {
    border-top-color: #555; /* Darker border for dark mode */
}

.mode-toggle-container {
    /* position: absolute; Removed */
    /* bottom: 10px; Removed */
    /* left: 10px; Removed */
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.mode-toggle-container input[type="checkbox"] {
    margin-right: 5px;
}

.debug-toggle-container {
    /* position: absolute; Removed */
    /* bottom: 10px; Removed */
    /* right: 10px; Removed */
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.debug-toggle-container input[type="checkbox"] {
    margin-right: 5px;
}

/* Debug Console - Mode aware */
#debug-console-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

#debug-console-container h2 {
    margin-top: 0;
    border-bottom: 1px solid; /* Color will be inherited or set by mode */
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#debug-console {
    height: 150px;
    overflow-y: scroll;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    border: 1px solid;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition */
}

#debug-console p {
    margin: 0 0 5px 0;
    padding: 0;
    border-bottom: 1px dotted;
    transition: border-color 0.3s; /* Smooth transition */
}

#debug-console p:last-child {
    border-bottom: none;
}

/* Debug console Light Mode */
.light-mode #debug-console-container {
    background-color: #e0e0e0; /* Slightly darker than main bg */
    color: #222; /* Dark text */
}
.light-mode #debug-console-container h2 {
    color: #007bff;
    border-bottom-color: #007bff;
}
.light-mode #debug-console {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ccc;
}
.light-mode #debug-console p {
    border-bottom-color: #ddd;
}

/* Debug console Dark Mode */
.dark-mode #debug-console-container {
    background-color: #2c3e50; /* Existing dark theme */
    color: #ecf0f1;
}
.dark-mode #debug-console-container h2 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}
.dark-mode #debug-console {
    background-color: #34495e;
    color: #ecf0f1;
    border-color: #2c3e50;
}
.dark-mode #debug-console p {
    border-bottom-color: #4a6278;
} 