/* === ЦВЕТОВАЯ ПАЛИТРА === */
/*
   - Фон логина: #000000
   - Фон основного интерфейса: #ffffff
   - Кнопки: #cccccc / hover #bbbbbb
   - Ошибки: #ff2233
   - Текст: #000000 (обычный), #ffffff (на логине)
*/

/* === ГЛОБАЛЬНЫЙ СТИЛЬ === */
body {
    color: #000000;
    background-color: #ffffff; /* по умолчанию — белый */
    margin: 0;
    padding: 0;
}

/* === СТРАНИЦА ЛОГИНА === */

/* Фон body — чёрный (если Guacamole добавляет класс 'login') */
body.login {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Если класса 'login' нет — резерв */
body > .login-ui {
    background-color: #000000 !important;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
}

/* ВСЁ внутри .login-ui — белый текст, чёрный фон где нужно */
.login-ui,
.login-ui * {
    color: #ffffff !important;
}

/* Ключевое: форма логина — чёрная */
.login-ui .login-dialog {
    background-color: #000000 !important; /* <-- вот это главное */
    color: #ffffff !important;
    width: 400px;
    max-width: 95%;
    padding: 2em;
    border: 1px solid #444444 !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Брендирование (название под логотипом) */
.login-ui .login-dialog .version .app-name {
    color: #ffffff !important;
    font-weight: 300;
    text-transform: none;
    text-align: center;
    font-size: 1.8em;
    font-family: 'Arial Black', sans-serif;
    display: block;
    margin: 0.5em 0;
}

/* Логотип */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo.png');
    width: 17em;
    height: 17em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 1.5em;
}

/* Поля ввода — чёрные с белым текстом */
.login-ui input[type="text"],
.login-ui input[type="password"],
.login-ui input[type="email"],
.login-ui input[type="number"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
    padding: 0.6em;
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Кнопки — светло-серые с чёрным текстом */
.login-ui button {
    background-color: #cccccc !important;
    color: #000000 !important;
    border: none !important;
    padding: 0.6em !important;
    width: 100% !important;
    border-radius: 4px !important;
    margin-top: 0.5em !important;
    cursor: pointer !important;
}

.login-ui button:hover {
    background-color: #bbbbbb !important;
}

/* Ошибки */
.login-ui p.login-error {
    background-color: #ff2233 !important;
    color: #ffffff !important;
    padding: 0.6em;
    margin: 1em 0;
    border-radius: 4px;
    text-align: center;
}

/* === Все остальные стили (после входа) === */

/* Убираем подчёркивание */
a { text-decoration: none !important; color: #000000 !important; }

/* Все кнопки — светло-серые */
button,
input[type="button"],
input[type="submit"] {
    background-color: #cccccc !important;
    color: #000000 !important;
    border: none !important;
    padding: 0.5em 1em !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #bbbbbb !important;
}

/* Кнопки опасности */
button.danger,
.notification.error {
    background-color: #ff2233 !important;
    color: #ffffff !important;
}

/* Основной интерфейс — белый фон */
.menu,
.menu-dropdown .menu-contents,
.modal-contents,
div.notification,
.transfer-manager,
.settings table.session-list tr,
.user a,
.connection a,
.list-item .caption,
#connection-warning,
.clipboard {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #dddddd !important;
}

/* Hover — светло-серый */
.recent-connections .connection:hover,
.menu-dropdown .menu-contents li a:hover,
.list-item.selected,
.page-tabs .page-list li a:hover,
.settings table.session-list tr.session:hover {
    background-color: #cccccc !important;
    color: #000000 !important;
}

/* Поля ввода */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 0.5em;
    border-radius: 4px;
}


/* === Стили для .action-buttons и их кнопок === */
.action-buttons,
.action-buttons *,
.action-buttons button,
.action-buttons input[type="button"],
.action-buttons input[type="submit"] {
    background-color: transparent !important;
    color: #000000 !important;
}

/* Кнопки внутри .action-buttons — светло-серые */
.action-buttons button,
.action-buttons input[type="button"],
.action-buttons input[type="submit"] {
    background-color: #cccccc !important;
    color: #000000 !important;
    border: none !important;
    padding: 0.5em 1em !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    min-height: auto !important;
    margin: 0.25em !important;
}

/* При наведении — чуть темнее */
.action-buttons button:hover,
.action-buttons input[type="button"]:hover,
.action-buttons input[type="submit"]: hover {
    background-color: #bbbbbb !important;
}

/* Если .action-buttons — это не кнопки, а div/span с ролью кнопки */
.action-buttons > div,
.action-buttons > span {
    background-color: #cccccc !important;
    color: #000000 !important;
    padding: 0.5em 1em !important;
    border-radius: 4px !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin: 0.25em !important;
}

.action-buttons > div:hover,
.action-buttons > span:hover {
    background-color: #bbbbbb !important;
}/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}