/* Base styles */
body {
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Main layout */
.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
}

/* Header */
.header-container {
    background-color: #2f80ed;
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.header-container h1 {
    margin: 0;
    font-size: 2.2em;
}

/* Motto */
.motto-container {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    font-style: italic;
    font-size: 1.2em;
    color: #555;
    margin-top: 20px;
}

/* Login / Forms */
.login-container,
.form-wrapper {
    background-color: #ffeccb;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Input fields */
.input-container {
    margin-bottom: 15px;
    text-align: center;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 1em;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Button */
.button-container {
    text-align: center;
    margin-top: 10px;
}

button {
    padding: 10px 20px;
    background-color: #2f80ed;
    color: white;
    border-radius: 6px;
    font-size: 1em;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #1c60c4;
}

/* Footer */
.footer {
    background-color: #2f80ed;
    color: white;
    padding: 10px 20px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 16px;
    margin-top: 20px;
}

.footer-left {
    text-align: left;
    flex: 1;
}

.footer-right {
    text-align: right;
    flex: 1;
}

.footer a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* Status sections */
.status-container {
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
}

.washer-container {
    background-color: #e6f3ff;
}

.dryer-container {
    background-color: #fff3e6;
}

.status-text {
    font-weight: bold;
    font-size: 1.4em;
}

.status-time {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Status animations and colors */
.in-use {
    color: #2f80ed;
}

.in-use-pulse {
    animation: pulse 1s infinite alternate;
}

.cycle-complete {
    color: #f2994a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-weight: bold;
}

.cycle-complete-pulse {
    animation: pulse 1.2s infinite ease-in-out;
}

.not-in-use {
    color: #999;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Telegram button */
.tg-button {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #2f80ed;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
}

.tg-button:hover {
    background-color: #1c60c4;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .header-container h1 {
        font-size: 1.6em;
    }

    .main-container {
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
    }

    .footer {
        font-size: 0.8em;
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex: unset;
    }

    .login-container,
    .form-wrapper {
        padding: 20px;
    }

    input[type="text"],
    input[type="password"] {
        max-width: 100%;
    }

    .status-container {
        padding: 15px;
    }

    .status-text {
        font-size: 1.2em;
    }
}
.flash-messages {
    display: flex;
    justify-content: center;
}

.alert {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.alert-danger {
    background-color: #ffe0e0;
    color: #b20000;
}
