
body {
    background: #f4f6f9;
}
.error {
    color: #f05060;
    font-size: 0.8em;
}

.text-danger:hover {
  color: red !important;
}

.form-danger, .form-danger:focus {
    border-color: #f0506e !important;
}

.form-warning, .form-warning:focus {
    border-color: #df752e;
}

.form-unupdated, .form-unupdated:focus {
    border-color: #0b5da8;
    background-color: #adcafb4f;
}

.hidden {
    display: none !important;
}

.login-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    height: 100vh;
}
.login-card {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.admin-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.admin-card {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.nav-tabs .uk-active a {
    border-bottom-color: #1e3c72 !important;
    color: #1e3c72 !important;
    font-weight: bold;
}
.copy-btn {
    background-color: #1e3c72;
    color: #fff;
}
.copy-btn:hover {
    background-color: #2a5298;
    color: #fff;
}

.uk-logo:hover {
    color: #eeeeee;
}

#header-user-name:hover{
    color: #eeeeee;
}

.button-trans-color {
    border-color: #1e3c72;
    color: #1e3c72;
    transition: 0.4s ease-in-out;
}

.button-trans-color:hover {
    background-color: #1e3c72;
    color: #fff;
}

/* Блок сгенерированного токена */
.key-container {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 6px;
    padding: 12px 15px;
    font-family: monospace;
    font-size: 15px;
    color: #212529;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Эффект при наведении */
.key-container:hover {
    background: #edf2f7;
    border-color: #1e3c72;
    color: #1e3c72;
}

/* Стилизация самого текста токена */
.key-string {
    word-break: break-all;
    user-select: all; /* Позволяет выделить весь токен одним кликом */
}

/* добавление нового пользователя: пароль */
#password-requirements-dropdown {
    display: none;
    background: #000000de;
    color: #ffff;
    position: absolute;
    width: 326px;
    margin-top: 5px;
    padding: 10px;
    font-size: 14px;
    z-index: 1020;
}

#password-requirements-dropdown ul {
    margin: 0;
    padding-left: 20px !important;
}

#password-requirements-dropdown li {
    transition: color 0.2s ease;
}
#password-requirements-dropdown li.valid {
    color: #32d296 !important; /* Зеленый UIkit */
}
#password-requirements-dropdown li.invalid {
    color: #f0506e !important; /* Красный UIkit */
}

/* Огляд таблиць */
.table-stat-card {
    border-radius: 6px;
    border-left: 4px solid #999999;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 14px 16px;
    height: 100%;
}

.table-stat-card.group-np { border-left-color: #DA292B; }
.table-stat-card.group-sat { border-left-color: #EBA900; }
.table-stat-card.group-delivery { border-left-color: #88B03F; }
.table-stat-card.group-system { border-left-color: #999999; }

.table-stat-label {
    font-weight: bold;
    font-size: 15px;
}

.table-stat-name {
    font-family: monospace;
    font-size: 11px;
    color: #999999;
    margin-bottom: 8px;
}

.table-stat-rows {
    font-size: 28px;
    font-weight: bold;
    color: #1e3c72;
    line-height: 1.2;
}

.table-stat-rows-label {
    font-size: 12px;
    color: #999999;
}

.table-stat-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
}

.freshness-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.freshness-fresh { background: #32d296; }
.freshness-stale { background: #e6a23c; }
.freshness-old { background: #f0506e; }

/* Журнал дій */
.logs-console {
    max-height: 550px;
    overflow-y: auto;
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.logs-empty {
    text-align: center;
    color: #75715e;
    padding: 20px;
}

.log-entry {
    border-left: 3px solid #75715e;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.06);
}

.log-entry.expanded {
    border-left-color: #66d9ef;
}

.log-entry-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.log-time {
    color: #75715e;
    white-space: nowrap;
}

.log-channel {
    color: #66d9ef;
    white-space: nowrap;
}

.log-ip {
    color: #75715e;
    font-size: 11px;
    white-space: nowrap;
}

.log-level {
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.log-level-DEBUG { color: #75715e; }
.log-level-INFO { color: #a6e22e; }
.log-level-WARNING { color: #e6db74; }
.log-level-ERROR { color: #f92672; }
.log-level-CRITICAL { background: #f92672; color: #272822; }

.log-message {
    flex: 1 1 auto;
    word-break: break-word;
}

.log-context {
    display: none;
    margin: 6px 0 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    white-space: pre-wrap;
    color: #e6db74;
    font-size: 12px;
}

.log-entry.expanded .log-context {
    display: block;
}

#markdown-container a {
    color: #aa47b6;
}

#markdown-container pre {
    color: #000000;
    box-shadow: 0px 0px 22px 0px rgba(0, 0, 0, 0.08);
}

