:root, [data-bs-theme=light] {
    --bs-form-color: #121212;;
}

.input-group-append .input-group-text {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.input-group-text {
    padding: 10px 16px;
}

.form-control {
    color: var(--bs-form-color);
    padding: 10px 16px;
}

.form-label {
    margin-bottom: .2rem;
}

.left-sidebar .scroll-sidebar {
    height: 100%;
}

/* Instagram */
.bg-instagram {
    background-color: #E1306C;
    color: #fff;
}

.bg-instagram:hover {
    background-color: #C13584; /* gradientga o‘xshashroq quyuqroq */
    color: #fff;
}

/* Telegram */
.bg-telegram {
    background-color: #0088cc;
    color: #fff;
}

.bg-telegram:hover {
    background-color: #007ab8;
    color: #fff;
}

/* Facebook */
.bg-facebook {
    background-color: #1877F2;
    color: #fff;
}

.bg-facebook:hover {
    background-color: #0e65d0;
    color: #fff;
}

/* YouTube */
.bg-youtube {
    background-color: #FF0000;
    color: #fff;
}

.bg-youtube:hover {
    background-color: #cc0000;
    color: #fff;
}

.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.95);
}

.mfp-with-slide .mfp-content {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.mfp-with-slide.mfp-ready .mfp-content {
    opacity: 1;
}

.slide-in-left {
    animation: slideLeft 0.4s forwards;
}

.slide-in-right {
    animation: slideRight 0.4s forwards;
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.upload-kit .progress-bar {
    height: 6px;
}

upload-kit .upload-kit-input .progress {
    position: absolute;
    top: 50%;
    margin-top: -2px;
    margin-left: 20px;
    width: calc(100% - 40px);
    display: block;
    height: 6px;
}

.upload-kit .files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.col-12 .upload-kit-item {
    flex: 0 0 calc(25% - 10px);
}

.upload-kit-item {
    flex: 0 0 calc(33.33% - 10px);
    aspect-ratio: 1 / 1;
    position: relative;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.files-single .upload-kit-item {
    flex: 0 0 99%;
}

.upload-kit .upload-kit-item.not-image .name {
    width: auto;
}

.upload-kit .upload-kit-item.not-image {
    height: 120px;
    background-size: contain;
    background-position: center;
}

.upload-kit-item .img-wrapper {
    width: 100%;
    height: 100%;
}

.upload-kit-item img.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-kit-input .glyphicon.add:before {
    content: "\eb0b";
    color: #020202;
    font-family: tabler-icons !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.upload-kit-item .glyphicon.remove:before {
    content: "\eb55";
    color: #ffffff;
    font-family: tabler-icons !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.upload-kit-input .glyphicon.add,
.upload-kit-item .glyphicon.remove {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    background: rgba(60, 60, 60, 0.7);
    padding: 1px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
}

.upload-kit-input .glyphicon.add {
    background: none;
}

.upload-kit-item:hover .glyphicon.remove {
    transform: scale(1.2);
}

.upload-kit .upload-kit-item {
    float: none;
    margin: 0;
    width: auto;
    height: auto;

}

.upload-kit .upload-kit-item.image-item {
    width: auto;
    height: 120px;
}

.sortable-placeholder {
    border: 3px dashed #323232 !important;
}

.upload-kit .upload-kit-input:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.upload-kit .upload-kit-input {
    --bs-btn-bg: #eff2f4;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-bg: #e2e6ea;
    --bs-btn-hover-border-color: #dae0e5;
    --bs-btn-color: #000;
    --bs-btn-hover-color: #000;
    position: relative;
    width: calc(100% - 5px);
    float: left;
    height: 46px;
    margin-right: 0;
    cursor: pointer;
    border-radius: 23px !important;
    position: relative;
    margin-top: 20px !important;
    user-select: none;
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    border: var(--bs-btn-border-width, 1px) solid var(--bs-btn-border-color);
    box-shadow: var(--bs-btn-box-shadow, none);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.upload-kit-input:hover {
    background: #e0f0ff;
    border-color: #0056b3;
}

.upload-kit-input input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.tox-tinymce {
    border-radius: 0.5rem !important;
}

.content {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    /*color: #333;*/
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Headings */
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    font-weight: 600;
    line-height: 1.4;
    margin: 1.2em 0 0.5em;
}

.content h1 {
    font-size: 2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
}

.content h2 {
    font-size: 1.75em;
}

.content h3 {
    font-size: 1.5em;
}

.content h4 {
    font-size: 1.25em;
}

.content h5 {
    font-size: 1.1em;
}

.content h6 {
    font-size: 1em;
    color: #666;
}

/* Paragraph and text */
.content p {
    margin: 1em 0;
}

.content b,
.content strong {
    font-weight: bold;
}

.content i,
.content em {
    font-style: italic;
}

.content u {
    text-decoration: underline;
}

.content a {
    color: #007BFF;
    text-decoration: underline;
}

.content a:hover {
    text-decoration: none;
}

/* Lists */
.content ul, .content ol {
    margin: 1em 0 1em 2em;
    padding-left: 1em;
}

.content li {
    margin-bottom: 0.5em;
}

/* Blockquote */
.content blockquote {
    border-left: 4px solid #ccc;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #555;
    font-style: italic;
    background: #f9f9f9;
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
    display: block;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
    background-color: #fff;
    overflow-x: auto;
    display: block;
}

.content th,
.content td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
    vertical-align: top;
}

.content thead {
    background-color: #f0f0f0;
    font-weight: bold;
}

.content tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Line breaks */
.content br {
    line-height: 1.4;
}

/* Unordered list (ul) — markerlar: disk, doira, kvadrat */
.content ul {
    list-style-type: disc; /* default: disc (nuqta) */
    margin: 1em 0 1em 2em;
    padding-left: 1em;
}

.content ul ul {
    list-style-type: circle; /* nested: doira */
}

.content ul ul ul {
    list-style-type: square; /* 3-nivo: kvadrat */
}

/* Ordered list (ol) — raqamli, rim raqamlari, kichik harflar */
.content ol {
    list-style-type: decimal;
    margin: 1em 0 1em 2em;
    padding-left: 1em;
}

.content ol ol {
    list-style-type: lower-roman; /* ii, iii, iv */
}

.content ol ol ol {
    list-style-type: lower-alpha; /* a, b, c */
}

/* List elementlar (li) */
.content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 1px;
}

.select2-selection__rendered {
    border-color: transparent;
    line-height: inherit;
    color: var(--bs-form-color) !important;;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    padding-right: 30px;
}
.select2-dropdown {
    border-color: #aebcc3 !important;
}

body .select2-container--default .select2-selection--single {
    height: 44px !important;
    border-color: #aebcc3 !important;
    border-radius: .5rem;
    line-height: 24px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear{
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    margin-top: -1px;
}
[data-bs-theme=dark] .select2-selection__rendered,
[data-bs-theme=dark] .selectize-input > div {
    color: #7c8fac !important;
}

[data-bs-theme=dark] .upload-kit-input .glyphicon.add:before {
    color: #7c8fac !important;
}

[data-bs-theme=dark] .upload-kit .upload-kit-input,
[data-bs-theme=dark] .selectize-input > div {
    border: 1px solid rgba(189, 200, 240, .2) !important;
    background: transparent !important;
}

[data-bs-theme=dark] .select2-container--default .select2-selection--single,
[data-bs-theme=dark] .select2-dropdown,
[data-bs-theme=dark] .selectize-input,
[data-bs-theme=dark] .upload-kit-item {
    border-color: rgba(189, 200, 240, .2) !important;
}

.selectize-input > div {
    padding: 6px 16px !important;
}

.selectize-input > input {
    left: 0px;
    font-size: 14px;
    line-height: 22px !important;
    padding: 4px !important;
}

.selectize-input {
    border-radius: .5rem !important;
    background: transparent !important;
    min-height: 46px !important;
}

.table th a.asc, .table th a.desc {
    margin-right: 20px;
}

.table th a, .table td a {
    color: #0a7ea4;
}

.table th {
    position: relative;
}

a.asc::after,
a.desc::after {
    font-family: "tabler-icons"; /* Tabler Icons font nomi */
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    padding-left: 5px;
    font-size: 1.4em;
    position: absolute;
    top: 8px;
    right: 8px;
}

a.asc::after {
    content: "\ea62"; /* ti-chevron-up */
}

a.desc::after {
    content: "\ea5f"; /* ti-chevron-down */
}

::placeholder {
    color: #bdbdbd !important;
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #bdbdbd !important;
    opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #bdbdbd !important;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #bdbdbd !important;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #bdbdbd !important;
}

.form-switch-lg {
    padding-left: 0;
}

.form-switch input[type="checkbox"] {
    cursor: pointer;
    margin-top: 0px;
    height: 1.2em;
    width: 2.2em;
}

.form-switch-lg input[type="checkbox"] {

    margin-top: -4px;
    margin-left: 10px;
    float: right;
    height: 2em;
    width: 3.4em;
    cursor: pointer;
}

.has-error .invalid-feedback {
    display: block;
    text-align: right;
}

.form-switch-no-label {
    margin: 0 !important;
}

.form-switch-no-label input {
    float: none !important;
}