body {
    margin: 0;
    font-family: 'rubik' !important;
}

html.sidebar-collapsed #sidebar {
    width: 66px !important;
}

html.sidebar-collapsed #header {
    left: 100px !important;
    width: calc(100% - 166px) !important;
}

html.sidebar-collapsed #content {
    margin-left: 100px !important;
}

html.sidebar-collapsed .sidebar .menu-span {
    display: none !important;
}

html.sidebar-collapsed .icon-wrapper {
    margin: 0 auto;
}

html.sidebar-collapsed .badge-text {
    display: none !important;
}

html.sidebar-collapsed .badge-icon {
    display: inline-block !important;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.icon-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 295px;
    width: calc(100% - 295px);
    height: 77px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(119deg, rgba(196, 41, 41, 0.01) -20.04%, rgba(251, 176, 59, 0.01) 120.36%), #FFF;
    z-index: 1000;
    transition: width 0.3s, left 0.3s;
    border-bottom: none;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 0;
    height: 1px;
    background-color: #2B2B2B33;
}

.header .nav-link {
    color: #666;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
}


.header .nav-link.active {
    color: #2B2B2B80;
    font-size: 18px;
    font-weight: bold;
}

.header .nav-link:hover {
    background-color: rgba(79, 195, 179, 0.2);
}

.profile {
    display: flex;
    align-items: center;
}

.name-user {
    margin: 0;
    padding: 0;
}

.profile-name {
    align-content: center !important;
}

.profile-img {
    width: 32px;
    height: 32px;
    background-color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
}

.dropdown-menu {
    min-width: 150px;
}

.sidebar {
    width: 280px;
    height: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s;
    box-shadow: 0 1px 16px 16px rgba(251, 176, 59, 0.12);
}

@media (max-height: 768px) {
    .sidebar {
        overflow-y: auto;
    }
}

.burger {
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
}

.logo {
    font-size: 1.5rem;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2B2B2B33;
}

.logo span {
    background-color: #d32f2f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.sidebar .nav-link {
    color: #666 !important;
    padding: 12px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin: 1px 0;
    gap: 12px; /* щоб був відступ між іконкою і текстом */
}

.form-control {
    padding: 9px !important;
    padding-left: 15px !important;
    border-radius: 10px !important;
}

.login-container {
    width: 550px;
    padding: 2.5rem;
    border: 1px solid #FBB03B33;
    border-radius: 10px;
    box-shadow: 0 1px 4px 0 #2B2B2B1A;
    text-align: center;
}

.logo {
    color: #e63946;
    font-size: 2.5rem;
    font-weight: bold;
}

.btn-custom {
    background-color: #f4a261;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 4px 0 #2B2B2B1A;
    font-weight: 600;
}

.btn-custom:hover {
    background-color: #e76f51;
}

.nav {
    flex-wrap: nowrap !important;
}

.menu-span {
    position: relative;
    display: inline-block;
}

.badge-circle {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    z-index: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.container-client {
    margin-top: 50px !important;
}

.badge-icon {
    position: absolute;
    top: -5px;
    right: -5px;
}

.badge-text {
    position: absolute;
    top: -2px;
    left: 100%;
    margin-left: 4px;
}

.active-badge {
    background-color: white;
    color: black;
}

.sidebar .nav-link i {
    margin-right: 12px;
    color: #666;
}

.sidebar .active {
    background-color: #3A6B8C;
    color: #fff !important;
}

.sidebar .active i {
    color: #fff !important;
}

.collapsed {
    width: 70px;
}

.collapsed .logo span {
    display: none;
}

.collapsed .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collapsed .logo .logo__image {
    display: none;
}

.content {
    margin-left: 295px;
    padding: 80px 20px 20px 20px;
    transition: margin-left 0.3s;
    background: linear-gradient(119deg, rgba(196, 41, 41, 0.01) -20.04%, rgba(251, 176, 59, 0.01) 120.36%), #FFF;
    min-height: 100vh;
}

.badge-icon {
    display: none;
}

.title-header {
    margin-bottom: 0 !important;
    color: #2B2B2B80 !important;
    font-size: 22px !important;
    margin-left: 10px !important;
    font-weight: 600 !important;
}

.form-container {
    background: #FFFFFF;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0px 1px 4px 0px rgba(43, 43, 43, 0.1);
    padding: 24px 16px;
    max-width: 1104px;
    margin: 0 auto;
}

.form-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.18;
    text-align: center;
    color: rgba(0, 0, 43, 0.5);
    margin-bottom: 24px;
}

.form-label {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.18;
    color: rgba(43, 43, 43, 0.5);
    margin-bottom: 4px;
}

.form-control, .form-select {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.18;
    border: 1px solid rgba(43, 43, 43, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    background: #FFFFFF;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(43, 43, 43, 0.4);
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(43, 43, 43, 0.3);
}

.row-section {
    margin-bottom: 8px;
}

.buttons-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 568px;
    margin: 0 auto;
    margin-top: 24px;
}

.btn-cancel {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 43, 0.5);
    color: rgba(0, 0, 43, 0.7);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.18;
    padding: 8px 40px;
    border-radius: 8px;
    height: 40px;
    box-shadow: 0px 1px 4px 0px rgba(43, 43, 43, 0.1);
}

.btn-save {
    background: #FBB03B;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.18;
    padding: 8px 40px;
    border-radius: 8px;
    height: 40px;
    box-shadow: 0px 1px 4px 0px rgba(43, 43, 43, 0.1);
}

.btn-cancel:hover {
    background: rgba(0, 0, 43, 0.05);
    border-color: rgba(0, 0, 43, 0.7);
}

.btn-save:hover {
    background: #f5a532;
}

@media (max-width: 768px) {
    .buttons-container {
        width: 100%;
        flex-direction: column;
    }

    .form-container {
        padding: 16px;
    }
}

.form-section {
    padding: 2rem;
}

.toggle-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.form-check-input:checked {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-whatsapp {
    background: #6c757d;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    box-shadow: 2px 2px 2px 2px rgba(108, 117, 125, 0.3);
    color: white;
}

.form-control:focus {
    border-color: #FBB03B;
    box-shadow: 2px 2px 2px 2px rgba(251, 176, 59, 0.3);
}

.phone-input-group {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.phone-input {
    padding-left: 45px;
}

.template-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.preview-text {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-style: italic;
    color: #6c757d;
}

/* Nav Pills Styles */
.nav-pills .nav-link {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #020202;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #5a6268;
    color: white;
}

.nav-pills .nav-link.active {
    background-color: rgba(251, 176, 59, 1) !important;
    border: 1px solid transparent;
    color: white;
}


.just-button {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #020202;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.just-button:hover {
    background-color: #5a6268;
    color: white;
}

/* Login Page Styles */
.text-center {
    background: linear-gradient(119deg, rgba(196, 41, 41, 0.01) -20.04%, rgba(251, 176, 59, 0.01) 120.36%), #FFF;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-container {
    background: #FFFFFF;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 2px 2px 2px 2px rgba(108, 117, 125, 0.3);
    padding: 40px 30px;
    width: 100%;
    max-width: 520px;
}

/* Login Form Inputs */
.login-container .form-control {
    border: 1px solid rgba(43, 43, 43, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
}

.login-container .form-control:focus {
    border-color: #FBB03B;
    box-shadow: 0 0 0 0.2rem rgba(251, 176, 59, 0.25);
}

/* Eye toggle styles */
.toggle-password {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 0.7;
}

.btn-custom {
    background-color: #FBB03B;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #f5a532;
    transform: translateY(-1px);
}

.default-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.default-table {
    width: 100%;
    font-size: 14px;
}

.default-table tr {
    border-bottom-color: #00002B0D !important;
    border-bottom-style: solid !important;
    border-bottom-width: 1px !important;
}

.default-table th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-weight: 400;
}

.default-table td {
    padding: 8px;
}

.default-table__head {
    background-color: #1A73E80D !important;
}


.select2.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: rgba(43, 43, 43, 0.30);
}

.select2-results__option[aria-selected="true"] {

}

/* Выпадающий список */
.select2-container--default .select2-dropdown {
    border-radius: 12px;
    border: 1px solid #ccc;
    overflow: hidden;
}

/* Опции в списке */
.select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
    color: #00002B;
    background-color: white;
}

/* При наведении */
.select2-results__option--highlighted[aria-selected] {
    background-color: #ddd !important;
    color: #000;
}

.select2.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: rgba(43, 43, 43, 0.30);
}

.select2.select2-container--default .select2-results__option--selected {
    color: rgba(43, 43, 43, 0.30);
}


body .select2-container--open .select2-dropdown--below {
    margin-top: 5px;
    z-index: 1050;
    border: 1px solid rgba(11, 82, 213, 0.5);
    box-shadow: 0px 1px 4px rgba(43, 43, 43, 0.1);
    border-radius: 8px;
}

body .select2-results__option.select2-results__option--highlighted {
    color: black !important;
}

body .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(0, 0, 43, 0.05) !important;
}

body .select2-results__option.select2-results__option--selected {
    display: none;
}

body .select2-results__option {
    font-size: 16px;
    padding: 6px 14px;
}

body .select2-container--default:not(.select2-container--open) .select2-selection--single .select2-selection__arrow b {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2210%22%20viewBox%3D%220%200%2016%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M2%202L8%208L14%202%22%20stroke%3D%22%232B2B2B%22%20stroke-opacity%3D%220.5%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

body .select2-container--open .select2-selection--single .select2-selection__arrow b {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2210%22%20viewBox%3D%220%200%2016%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M2%208L8%202L14%208%22%20stroke%3D%22%232B2B2B%22%20stroke-opacity%3D%220.5%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 22px;
    width: 20px;
    pointer-events: none;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none;
    width: 16px;
    height: 10px;
    top: 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

body .select2-container--default .select2-selection--single {
    border-radius: 10px;
    padding: 6px 6px;
    height: 40px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ced4da;
    min-height: 42px;
    cursor: pointer;
}

body .select2-container--default.select2-container--open .select2-selection--single {
    border: 1px solid rgba(11, 82, 213, 1);
    outline: none;
    border-radius: 8px !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2b2b2b;
}

.first-letter\:capitalize::first-letter {
    text-transform: capitalize;
}


.role-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    position: relative;
}

.role-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.role-checkbox--medium .checkmark {
    height: 20px;
    width: 20px;
    border: 1px solid gray;
    border-radius: 4px;
    background-color: white;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.role-checkbox--small .checkmark {
    height: 14px;
    width: 14px;
    border: 1px solid gray;
    border-radius: 3px;
    background-color: white;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/*#4FC3B3*/
.role-checkbox input:checked + .checkmark {
    background-color: #4FC3B3;
    border-color: #4FC3B3;
}

.role-checkbox--medium input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.role-checkbox--small input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.role-checkbox .label-text {
    font-weight: 500;
    color: #000;
    user-select: none;
}

.role-checkbox--small .label-text {
    font-size: 14px;
}

.role-checkbox--medium .label-text {
    font-size: 20px;
}

.role-checkbox:hover input:not(:checked) + .checkmark {
    border-color: #4FC3B3;
    box-shadow: 0 0 5px 2px #4FC3B3;
    cursor: pointer;
}

.search-input {
    font-size: 16px;
    margin-right: 0.6rem;
    outline: none;
    background: url('../img/search.svg') no-repeat left 10px center;
    background-size: 18px 18px;
    text-indent: 25px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 330px;
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


