/*
    Этот файл содержит все стили для сайта.
    Он объединяет стили для страницы авторизации (index.php),
    страницы приложений (app.php) и шапки (header.php).
*/

/* --- Общие стили для всего сайта --- */
:root {
    --header-height: 80px;
    --logo-height: 80px;
    --logo-width: auto;
}

body {
    background-color: #2e2e2e;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    min-height: 100vh;
}
/* --- Стили для основного содержимого и контейнеров --- */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-container, .app-container {
    background-color: #2b2b2b;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    margin-top: auto;
    margin-bottom: auto;
}

/* Стили для страницы авторизации */
.login-container {
    max-width: 300px;
}

.logo-text {
    color: #f0f8ff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.login-container .logo-text {
    color: #f0f8ff;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #3b3b3b;
    color: #f0f8ff;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #008080;
    outline: none;
}

button {
    background-color: #32a4bd;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #006666;
}

/* --- Стили для страницы приложений --- */
.app-container h2 {
    color: #f0f8ff;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.columns-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.column {
    flex: 1;
    text-align: center;
    background-color: #3b3b3b;
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}



.column h3 {
    color: #2fc4e5;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.app-button {
    background-color: #32a4bd;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}


.app-button:hover {
    background-color: #006666;
}

.app-button.disabled {
    background-color: #555;
    cursor: not-allowed;
}

.logout-link {
    color: #32a4bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 12px 20px;
    border: 1px solid #32a4bd;
    border-radius: 5px;
}

.logout-link:hover {
    color: #ffffff;
    background-color: #32a4bd;
}

.error-message {
    color: #ff6347;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.dropdown {
    position: relative;
    display: block;
    width: 100%;
}

.dropdown-toggle {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3b3b3b;
    width: 100%;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    left: 0;
    top: 100%;
    margin-top: 5px;
}

.dropdown-content a {
    color: #f0f8ff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #006666;
}

.dropdown-content.show {
    display: block;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #1e1e1e;
}

.footer p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

@media (max-width: 768px) {
    .columns-container {
        flex-direction: column;
        gap: 20px;
    }
}
