/* style.css */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #4d4d4d; /* Фон по умолчанию */
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

header {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    color: white;
    transition: background 0.5s ease; 
}


.header-morning {
    background: linear-gradient(to right, #c1d1c5, #94b9ff);
}
.header-afternoon {
    background: linear-gradient(to right, #ffde59, #ff914d);
}
.header-evening {
    background: linear-gradient(to right, #ff3131, #ff914d);
}
.header-night {
    background: linear-gradient(to right, #000000, #2a2972);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 800px; 
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.server-list, .config-list {
    width: 100%;
    margin-top: 20px;
}

.server-item, .config-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.server-flag, .config-flag {
    width: 32px;
    height: 24px;
    margin-right: 15px;
    object-fit: cover; 
    flex-shrink: 0; 
}

.server-info, .config-info {
    flex-grow: 1;
}

.server-name, .config-name {
    font-weight: bold;
    margin-bottom: 5px; 
}

.server-status {
    margin-left: auto; 
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-online {
    color: #2ecc71; /* Зеленый */

}

.status-offline {
    color: #e74c3c; /* Красный */

}

.emergency-info span {
    color: #e74c3c; /* Красный */
    font-weight: bold;
}


.login-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; 
}

.login-form input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
    background-color: #f0f0f0;
    color: #333;
}

.login-form input[type="text"]::placeholder {
    color: #999;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; 
    display: inline-block; 
    text-align: center;
    min-width: 250px; 
    box-sizing: border-box;
}

.btn:hover {
    background-color: #d0d0d0;
}

.btn-submit {
    width: 100%; 
    max-width: 400px;
}

.btn-back {
     margin-top: 30px; 
}

.error-message {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.config-link {
    word-break: break-all; 
    font-family: monospace; 
    font-size: 0.9em;
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 4px;
    display: block;
    color: #c1d1c5; /* Цвет ссылки */
    text-decoration: none;
}
.config-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
}