﻿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 #173654;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*🎨 Color theme*/
:root {
    --bs-primary: #173654 !important;
    --bs-primary-rgb: 23, 54, 84 !important;
    --bs-secondary: #f1b450 !important;
    --bs-secondary-rgb: 241, 180, 80 !important;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/*🔵 Main btn*/
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #11263c !important;
    border-color: #11263c !important;
}

/*🟡 Second btn*/
.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: #d39d3a !important;
    border-color: #d39d3a !important;
}

/*🌈 Main classes*/
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

 /*💡 Other */
a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: var(--bs-secondary);
    text-decoration: underline;
}

 /*Активный элемент в сайдбаре */
.sidebar .sidebar-menu > ul > li ul li a.active {
    color: #fff !important;
    background: var(--bs-primary) !important;
    border-radius: 5px;
    font-weight: 500;
}

.sidebar .sidebar-menu > ul > li ul li a:hover span {
    color: var(--bs-secondary) !important;
}

.sidebar .sidebar-menu > ul > li ul li a:hover {
    color: var(--bs-secondary) !important;
}

.sidebar .sidebar-menu > ul > li ul li a.active span {
    color: var(--bs-secondary) !important;
}

.sidebar .sidebar-menu > ul > li ul li a.active i {
    background: var(--bs-secondary) !important;
    color: #FFF;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary) !important;
}

.bg-danger {
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #FFF;
}

 /*Бейджик уведомлений в хедере */
.header .header-user .user-menu.nav > li > a .badge {
    color: var(--bs-primary) !important;
    background: #f1b450 !important;
    font-weight: 700;
    position: absolute;
    top: 4px;
    right: 4px;
    border-radius: 8px;
    padding: 2px 5px;
}

 /*Ссылка "Forgot password" или похожие */
.login-wrapper .login-content .form-wrap .forgot-link {
    position: relative;
    color: #f1b450 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-wrapper .login-content .form-wrap .forgot-link:hover {
    color: #d9a03d !important;
    text-decoration: underline;
}

.login-wrapper .login-content .form-wrap .forgot-link:after {
    background: #f1b450 !important;
}

.user-accordion-item .accordion-wrap:not(.collapsed) span {
    background: #f1b450 !important;
    color: #FFF;
}

 /*Кнопки "опасных" действий (Delete, Remove и т.п.) */
.btn.btn-danger {
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #fff !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn.btn-danger:hover {
        background-color: #f1b450 !important;
        border-color: #f1b450 !important;
        color: var(--bs-primary) !important;
    }

.nav-list .nav li .btn-header-list {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.nav-list .nav .dark-mode-list .dark-mode-toggle i.light-mode.active {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

/* Внутренние вкладки (Legal / Individual) */
#requisitesInnerTabs .nav-link {
    background: #e7e9ed; /* светлый фон */
    color: #173654; /* основной цвет (текст) */
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    margin-right: 6px;
    padding: 8px 14px;
    border: 1px solid #d3d6db;
    border-bottom: none;
    transition: 0.25s;
}

/* Активная вкладка */
#requisitesInnerTabs .nav-link.active {
    background: #173654; /* твой основной */
    color: #fff; /* белый текст */
    border-color: #173654;
}

/* Hover */
#requisitesInnerTabs .nav-link:hover {
    background: #f1f3f6;
    color: #173654;
}

/* Контент внутри вкладок */
#requisitesInnerTabs + .tab-content {
    border: 1px solid #d3d6db;
    border-radius: 0 6px 6px 6px;
    padding: 18px;
    background: #fff;
}
