body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    padding:0%;
}

.controls {
    padding: 1em;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="datetime-local"]{
    background: none;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 20em;
    box-sizing: border-box;
}

#startSeconds {
    background: none;
}

.interval {
    text-align: center;
    width: 3em;
    margin-right: 1em;
}

#greenTime {
    background-color: #cbffd1;
}

#redTime {
    background-color: #ffafab;
}

button#setButton {
    background-color: #b3b3b3;
    color: white;
    padding: 10px 15px;
    margin: 0em 0em 0em 5em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button#setButton:hover {
    background-color: #5a5a5a;
}

.traffic-light-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#trafficLight {
    width: 20em;
    border: 5px solid #333;
    border-radius: 15px;
    object-fit: cover;
    margin: 1em;
}

#timeRemaining {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    text-align: center;
}

/* Toggle Switch Styling */
.switch-container {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 10px; /* Space between text and switch */
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #008b08;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #f44336; /* Red for checked (Red Started) */
}


input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 30px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Styling for the state labels */
.switch-container span {
    font-weight: normal; /* Override bold from form-group label */
    color: #555;
    transition: color 0.3s ease;
}

.switch-container span.active-state-label {
    font-weight: bold;
    color: #333;
}