:root {
    --bg-color: #fff7ee;
    --secodary-bg-color: #ffffff;
    --message-bg: #e9ecef;
    --font-color: #2d3748;
    --secondary-font-color: #4a5568;
    --accent-color: #ff8200;
    --accent-hover: #e67300;
    --accent-light: #ffe0c2;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --btn-light-theme: #ffffb8;
    --btn-dark-theme: transparent;
}
[data-bs-theme=dark] {
    --bg-color: #151719;
    --secodary-bg-color: #444b52;
    --message-bg: #586d82;
    --font-color: #fff7ee;
    --secondary-font-color: #ffffff;
    --accent-color: #ff8200;
    --accent-hover: #e67300;
    --accent-light: #ffe0c2;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --btn-light-theme: transparent;
    --btn-dark-theme: #ffffb8;
}
.bg-green {
    background-color: rgba(25, 135, 84, 0.15) !important;
    color: rgb(25, 135, 84);
}
.bg-blue {
    background-color: rgba(13, 110, 253, 0.15) !important;
    color: rgb(13, 110, 253);
}
.bg-yellow {
    background-color: rgba(212, 194, 2, 0.15) !important;
    color: rgb(212, 194, 2);
}
.bg-orange {
    background-color: rgba(253, 126, 20, 0.15) !important;
    color: #fd7e14;
}

.bg-purple {
    background-color: rgba(111, 66, 193, 0.15) !important;
    color: #6f42c1;
}
.bg-purple {
    background-color: rgba(111, 66, 193, 0.15) !important;
    color: grey;
}

.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



button:focus, button:active:focus{
    border: none !important;
}
.btn:focus, .btn:active:focus{
    border: none !important;
}


/* =========  TOAST-режим SweetAlert2  ========= */
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-right {
    position: fixed;
    z-index: 1060; /* выше большинства navbar’ов */
    bottom: 20px;
    right: 20px;
    align-items: flex-end !important;
    justify-content: flex-end !important;
}

/* сам поп-ап – «плашка» */
.swal2-popup.swal2-toast {
    width: auto !important;
    min-width: 300px;
    max-width: 420px;
    margin: 0 0 15px 0;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    pointer-events: none; /* не перехватывает клики */
}

/* убираем фон-оверлей, иначе экран всё-таки заблокируется */
.swal2-container.swal2-toast-column .swal2-backdrop,
.swal2-toast .swal2-backdrop {
    background: transparent !important;
}

/* заголовок и текст в одну строку */
.swal2-popup.swal2-toast .swal2-header,
.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* кнопки справа, компактно */
.swal2-popup.swal2-toast .swal2-actions {
    margin: 0 0 0 12px !important;
    flex: 0 0 auto !important;
}

.swal2-popup.swal2-toast .swal2-confirm,
.swal2-popup.swal2-toast .swal2-cancel {
    font-size: 1.4rem !important;
    padding: 6px 14px !important;
    margin: 0 0 0 6px !important;
}

/* =======  появление / исчезновение  ======= */
@keyframes toast-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.swal2-popup.swal2-toast.swal2-show {
    animation: toast-in .35s cubic-bezier(.25,.75,.35,1.1) forwards;
}

.swal2-popup.swal2-toast.swal2-hide {
    animation: toast-out .25s ease forwards;
}







/* Кастомные стили для SweetAlert2 */
.swal2-popup {
    font-size: 1.6rem !important;
    border-radius: 12px !important;
}

.swal2-title {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
}

.swal2-content {
    font-size: 1.8rem !important;
}

.swal2-confirm {
    background-color: #007bff !important;
    border-color: #007bff !important;
    font-size: 1.6rem !important;
    padding: 1rem 2rem !important;
}

.swal2-cancel {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    font-size: 1.6rem !important;
    padding: 1rem 2rem !important;
}

/* Анимации */
.swal2-show {
    animation: swal2-show 0.3s !important;
}

.swal2-hide {
    animation: swal2-hide 0.3s !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.7);
        opacity: 0;
    }
}



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: none;
  border: none;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 30px;
    background-color: var(--bg-color);
    margin-top: 38PX;
    width: 100vw;
}
header .navbar{
    background-color: var(--secodary-bg-color) !important;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    z-index: 1;
}
header img{
    height: 4vh;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.container a{
    width: max-content;
}
.container main h1{
    margin-top: 40px;
    font-size: 40px;
    color: var(--font-color);
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}

.decor-content{
    position: fixed;
    z-index: 100;
    pointer-events: none;
}

.decor-left-top {
    top: 0%;
}
.decor-right-bottom {
    bottom: 0%;
    right: 0%;
}
.decor-content img{
    width: 100%;
    width: 10vw;
    opacity: 0.8;
}

#formBtnLogout{
    width: 10vw;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

#btn-account {
    width: 3vw;
    padding: 0;
    border: none;
    background-color: transparent;
    border-radius: 52%;
}

.dropdown-menu {
    min-width: 150px;
}
.dropdown-item {
    color: var(--font-color);
}

    .dropdown-item:hover {
        background-color: var(--bg-color);
        color: var(--font-color);
    }
    /* активный пункт верхнего меню */
.top-nav-active {
    background-color: #ffce99 !important;
    color: #000 !important;
    border-radius: 4px;
}
#btn-account {
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
}
td{
    color: var(--font-color);
}
.form-control, .form-select{
    background-color: var(--bg-color);
    color: var(--font-color);
}
    .form-control:focus, .form-select:focus {
        background-color: var(--bg-color);
        color: var(--font-color);
        border: 2px solid #ff8200;
        box-shadow: none;
    }
.btn-outline-secondary:hover{
    background-color: transparent !important;
}
    .btn-outline-secondary:hover svg .theme-icon-light {
        fill: var(--btn-dark-theme) !important;
    }
    .btn-outline-secondary:hover svg .theme-icon-dark {
        fill: var(--btn-light-theme) !important;
    }
#theme-toggle-button {
    border: none !important;
    padding: 0;
    height: 4%;
    width: 4%;
}
#theme-toggle-button svg{
  height: 100%;
  width: 100%
}

.card-body p{
    color: var(--font-color)
}

h1, h2, h3, h4, h5, h6{
    color: var(--font-color);
}
.dropdown-toggle::after{
    color: var(--font-color);
}
#totalCount{
    margin: 0 5px 0 5px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--font-color) !important;
}
#formBtnLogout button, .nav-item a{
    color: #000 !important;
}

.dard {
    padding: 1px 5px;
    display: none;
    background-color: #ff8200;
    color: #fff;
    border-radius: 4px;
    margin-left: 5px;
}

main .container{
    display: flex;
    flex-direction:column;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff !important;
    background-color: #ff8200 !important;
    border-color: #ff8200 !important;
}
.page-item.disabled .page-link {
    z-index: 3;
    color: #fff !important;
    background-color: var(--secodary-bg-color) !important;
}
.page-link {
    position: relative;
    padding: 3px 10px;
    display: block;
    color: #ff8200 !important;
    text-decoration: none;
    background-color: var(--secodary-bg-color);
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.d-flex ul {
    margin: 0 !important;
}
.table-responsive .d-flex {
    margin-bottom: 2px !important;
}

