html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}
:root {
    --bg-main: #111418;
    --bg-sidebar: #161a1f;
    --bg-hover: #222831;
    --text-main: #dfe6ee;
    --text-muted: #9aa4b1;
    --primary-accent: #4da3ff;
    --danger-accent: #ff5c5c;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Segoe UI", sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.navbar-brand {
    font-size: 1.3rem;
}

.nav-link i {
    margin-right: 4px;
    opacity: 0.85;
}

.nav-link:hover i {
    opacity: 1;
}
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background: var(--bg-sidebar);
    border-right: 1px solid #1f2329;
    padding: 25px 12px;
    overflow-y: auto;
    transition: transform .3s ease;
}

.sidebar-title {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 12px 0 6px 12px;
    letter-spacing: .5px;
}

.nav-link {
    color: var(--text-muted) !important;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .25s ease;
}

    .nav-link:hover {
        background: var(--bg-hover);
        color: var(--text-main) !important;
        transform: translateX(4px);
    }

    .nav-link.active {
        background: var(--primary-accent);
        color: #fff !important;
        font-weight: 600;
        transform: translateX(4px);
    }

/* USER AREA */
.sidebar-user-block {
    margin-top: 25px;
    padding: 15px;
    border-radius: 12px;
    background: #1e2329;
    text-align: center;
}

.sidebar-user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* LANG SWITCHER */
.sidebar-lang {
    margin-top: 20px;
}

.lang-button {
    background: #1f242a;
    border: 1px solid #292e34;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
    transition: all .2s ease;
}

    .lang-button.active {
        background: var(--primary-accent);
        color: #fff;
        font-weight: 600;
    }

    .lang-button:hover {
        background: var(--bg-hover);
    }

/* CONTENT */
.content {
    margin-left: 260px;
    padding: 35px;
}

/* FOOTER INSIDE SIDEBAR */
.sidebar-footer {
    margin-top: 35px;
    padding: 15px;
    background: #1a1f24;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25); /* более мягкий затемнённый фон */
    z-index: 1049;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#cookie-overlay.show {
    display: block;
    opacity: 1;
}

/* Баннер */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: 960px;
    width: 90%;
    background: #f8f9fa; /* светлый фон */
    color: #212529; /* тёмный текст */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    opacity: 0;
    z-index: 1050;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .cookie-banner.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .cookie-banner a {
        color: #0d6efd;
        text-decoration: underline;
    }

        .cookie-banner a:hover {
            color: #0a58ca;
            text-decoration: none;
        }

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    margin-right: 15px;
}
/* Контейнер языков */
.sidebar-lang {
    justify-content: center;
}

/* Стиль кнопок */
.lang-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
    font-size: 0.85rem;
}

    /* Наведение */
    .lang-button:hover {
        background-color: #3b82f6;
        border-color: #e820d7;
        transform: translateY(-2px);
    }

    /* Активный язык */
    .lang-button.active {
        background-color: #3b82f6; /* желтый */
        color: #1f2937; /* темный текст */
        border-color: #f59e0b;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        transform: translateY(-2px);
    }
/* Дополнительный hover эффект для Dashboard */
.btn-warning:hover {
    background-color: #ff8c00 !important; /* ярче оранжевый */
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
}
/* MOBILE FIRST FIX */
@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-100%);
        z-index: 1051;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .mobile-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
        background: #3b82f6;
        border: none;
        color: white;
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }
}
.icon {
    width: 1em;
    height: 1em;
    display: inline-block; /* важно для Edge */
    fill: currentColor;
    vertical-align: -0.125em;
    width: 1em; /* или фиксированное, например 16px */
    height: 1em;
}