body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.centered-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#room-timers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.room-timer {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 280px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.room-timer h2 {
    margin-top: 0;
    color: #444;
}

.countdown {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.active {
    background-color: #44fe54;
}

.warning {
    background-color: #ffff00;
}

.ended {
    background-color: #ff3251;
}

button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: rgb(0, 0, 0);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.add-time-input {
    width: 60px;
    padding: 5px;
    margin-right: 5px;
}

.pause-btn {
    background-color: #e2f018;
    color: rgb(0, 0, 0);
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pause-btn:hover {
    background-color: #e2f018;
}

.stop-reset-btn {
    background-color: #f44336;
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.stop-reset-btn:hover {
    background-color: #d32f2f;
}

#logout-container {
    text-align: center;
    margin-top: 20px;
}

#logout-btn {
    background-color: #f44336;
}

#logout-btn:hover {
    background-color: #d32f2f;
}

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

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #45a049;
}

.login-container button.forgot-password {
    background-color: #f44336; /* Red background */
    color: white; /* White text */
}

.error-message {
    color: #f44336;
    text-align: center;
    margin-top: 1rem;
}

.clear-all-btn {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #ccc; /* Grey background */
    color: black;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-all-btn:hover {
    background-color: #b3b3b3; /* Darker grey on hover */
}

.active {
    background-color: #44fe54;
}

/* Green */
.warning {
    background-color: #ffff00;
}

/* Yellow */
.ended {
    background-color: #ff3251;
}

/* Red */

/* Custom non-blocking modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#modal-close-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#modal-close-btn:hover {
    background-color: #45a049;
}
