﻿﻿.accordion-button::after {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.offcanvas .btn-close,
.modal .btn-close {
    position: absolute;
    left: 1rem;
    right: auto;
}

.offcanvas,
.modal {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.offcanvas-header,
.modal-header {
    padding: 20px 15px 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .offcanvas-header h5,
    .modal-header h5 {
        margin-bottom: 0 !important;
        font-size: 14px !important;
        font-weight: bold;
    }

    .offcanvas-header .btn-close,
    .modal-header .btn-close {
        margin-left: 5px !important;
        font-size: 14px !important;
    }

.custom-search-wrapper {
    position: relative;
}

    .custom-search-wrapper input {
        width: 100%;
        padding: 10px 35px 10px 10px;
        border: 1px solid #D0D3D4;
        border-radius: 12px;
        outline: none;
    }

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .filter-tags::-webkit-scrollbar {
        display: none;
    }

.filter-btn {
    border: 1px solid #D0D3D4;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    color: black;
}

    .filter-btn i {
        font-size: 14px;
        opacity: 0.85;
    }

    .filter-btn.active {
        background: #1a4fb3;
        color: #fff;
        font-weight: bold;
        border-color: #1a4fb3;
    }

.filter-section {
    background: #fff;
    border: 1px solid #D0D3D4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
}

.filter-group-title {
    font-size: 12px;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 10px;
    display: block;
}

.filter-tags-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 10px;
}

    .filter-tags-scroll::-webkit-scrollbar {
        display: none;
    }

.vector-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

    .vector-box img {
        width: 180px;
        height: auto;
        object-fit: contain;
        animation: float 3s ease-in-out infinite;
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.switch {
    font-size: 14px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid #adb5bd;
    transition: .3s;
    border-radius: 30px;
}

    .slider-switch:before {
        position: absolute;
        content: "";
        height: 1.4em;
        width: 1.4em;
        border-radius: 20px;
        left: 0.27em;
        bottom: 0.25em;
        background-color: #adb5bd;
        transition: .3s;
    }

input:checked + .slider-switch {
    background-color: #1a4fb3;
    border: 1px solid #1a4fb3;
}

input:focus + .slider-switch {
    box-shadow: 0 0 1px #1a4fb3;
}

input:checked + .slider-switch:before {
    transform: translateX(1.4em);
    background-color: #fff;
}

.version {
    font-feature-settings: "calt" off, "locl" off;
}

.setting-header {
    text-align: center;
    margin-bottom: 20px;
}

    .setting-header h5 {
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .setting-header p {
        font-size: 12px;
        color: #888;
        margin-bottom: 0;
    }

.form-card {
    background-color: #fff;
    border: 1px solid #D0D3D4;
    border-radius: 12px;
    margin-bottom: 10px;
}

.form-card-header {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
}

    .form-card-header i {
        margin-left: 10px;
        color: #888;
        font-size: 18px;
    }

.form-card-body {
    padding: 5px 10px;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
}

.form-control, .form-select {
    font-size: 14px;
    border-color: #d1d5db;
    border-radius: 5px;
    padding: 10px 12px;
}

    .form-control:focus, .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    }

.select2-container {
    display: block;
    width: 100% !important;
    font-size: 14px;
    max-width: 100%;
}

    .select2-container .select2-selection--single {
        height: auto !important;
        min-height: 0;
        font-size: 14px;
        border: 1px solid #d1d5db;
        border-radius: 5px;
        padding: 10px 12px;
        background-color: #fff;
    }

.select2-container--default .select2-selection--single {
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background-color: #fff;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 1.5;
        padding: 0 0 0 20px;
        color: inherit;
        font-size: 14px;
    }

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered,
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 0;
    padding-left: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6b7280;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    width: 20px;
    right: auto;
    left: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: 0;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    border-radius: 5px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--multiple {
    min-height: 0;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 4px 8px;
    background-color: #fff;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: 0;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden;
    z-index: 2000;
    font-size: 14px;
}

.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above {
    border-radius: 5px;
}

.select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 10px 12px;
    outline: 0;
}

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    }

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1a4fb3;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #eff6ff;
    color: #1e3a8a;
}

.form-select.is-invalid + .select2-container .select2-selection--single,
.was-validated select:invalid + .select2-container .select2-selection--single {
    border-color: #dc3545;
}

.required-star {
    color: #ef4444;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

    .form-alert i {
        font-size: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.form-alert-content {
    flex: 1;
}

.form-alert.info {
    background: linear-gradient(135deg, #e0f7fa, #f1f8ff);
    border-color: #b6e0fe;
    color: #055160;
}

    .form-alert.info i {
        color: #0dcaf0;
    }

.form-alert.warning {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    border-color: #ffe69c;
    color: #664d03;
}

    .form-alert.warning i {
        color: #ffc107;
    }

.form-alert.success {
    background: linear-gradient(135deg, #d1e7dd, #e9f7ef);
    border-color: #badbcc;
    color: #0f5132;
}

    .form-alert.success i {
        color: #198754;
    }

.form-alert.danger {
    background: linear-gradient(135deg, #f8d7da, #fdecef);
    border-color: #f5c2c7;
    color: #842029;
}

    .form-alert.danger i {
        color: #dc3545;
    }

.form-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-setting {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

    .switch-setting input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider-switch-setting {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #dee2e6;
    border-radius: 50px;
    transition: 0.3s;
}

    .slider-switch-setting::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        right: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: 0.3s;
    }

.switch-setting input:checked + .slider-switch-setting {
    background: #1e3a8a;
}

    .switch-setting input:checked + .slider-switch-setting::before {
        transform: translateX(-22px);
    }

.switch-setting-label {
    font-size: 14px;
    cursor: pointer;
}

.tabs-container {
    display: flex;
    background-color: whitesmoke;
    border: 1px solid #D0D3D4;
    border-radius: 12px;
    padding: 5px;
    margin: 0 0 10px 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab-btn i {
        font-size: 21px;
    }

    .tab-btn.active {
        background: #fff;
        font-weight: bold;
        color: black;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

.tab-content {
    display: none;
    animation: fadeIn 0.35s ease forwards;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

    .tab-content.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    text-align: center;
    padding: 20px;
}

    .empty-state img {
        width: 100px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .empty-state h5 {
        font-size: 14px;
        color: black;
        margin-bottom: 10px;
    }

    .empty-state p {
        font-size: 12px;
        line-height: 2;
        color: #9ca3af;
        margin-bottom: 0;
    }

.custom-sheet .offcanvas-body {
    text-align: center;
}

.custom-sheet img {
    max-width: 180px;
    margin: 0 auto 20px;
}

.custom-sheet h5 {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}

.custom-sheet p {
    font-size: 12px;
    line-height: 2;
    color: #888;
    margin: 0 auto;
}

.offcanvas-bottom {
    transition: transform 0.3s ease-in-out;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 10px;
    font-size: 14px;
}

.btn-light {
    background: #ddd;
    border-color: #ddd;
    color: black;
}

    .btn-light:hover {
        background: #D0D3D4;
    }

.btn-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

    .btn-danger:hover {
        background: #fecaca;
    }

.btn-primary {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

    .btn-primary:hover {
        background: #1e3a8a;
    }

.btn-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #22c55e;
}

    .btn-success:hover {
        background: #bbf7d0;
    }

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.datepicker-plot-area {
    font-family: inherit !important;
    font-size: 14px !important;
}

.custom-alert {
    border: none;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    animation: fadeIn .35s ease;
}

.custom-alert-success {
    background: linear-gradient(135deg, #e8fff3, #d9fbe8);
    border-right: 5px solid #1dbf73;
}

    .custom-alert-success .alert-icon {
        background-color: rgba(29, 191, 115, 0.15);
        color: #16a34a;
    }

.custom-alert-danger {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border-right: 5px solid #ef4444;
}

    .custom-alert-danger .alert-icon {
        background-color: rgba(239, 68, 68, 0.12);
        color: #dc2626;
    }

.alert-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.alert-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black827;
}

.alert-text {
    font-size: 14px;
    line-height: 2;
    color: #4b5563;
}

.custom-close-btn {
    opacity: .5;
    transition: .3s ease;
}

    .custom-close-btn:hover {
        opacity: 1;
        transform: scale(1.08);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-box {
    border: 2px dashed #d0d7de;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
}

    .upload-box:hover {
        border-color: #1a4fb3;
        background: #f4f4ff;
    }

.upload-icon {
    font-size: 50px;
    color: #1a4fb3;
}

.upload-content p {
    margin: 10px;
    font-weight: bold;
}

.upload-hint {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

    .upload-hint span {
        display: block;
    }

.file-info {
    margin-top: 10px;
    font-size: 12px;
    color: black;
}

    .file-info.error {
        color: #dc2626;
    }

    .file-info.success {
        color: #16a34a;
    }

.image-preview-container {
    margin-top: 15px;
    text-align: center;
}

.image-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #D0D3D4;
    padding: 4px;
    background: #fff;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #D0D3D4;
    border-radius: 12px;
    background: antiquewhite;
}

.selected-file-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #D0D3D4;
    flex-shrink: 0;
}

.selected-file-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: right;
    gap: 5px;
}

.selected-file-name {
    font-size: 14px;
    color: black;
    word-break: break-all;
}

.selected-file-size {
    font-size: 12px;
    color: #888;
}

.ai-super-btn {
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    padding: 10px 10px;
    border-radius: 5px;
    background: linear-gradient(135deg,#7c3aed,#1a4fb3,#06b6d4);
    background-size: 250% 250%;
    color: #fff;
    font-size: 14px;
    transition: all .35s ease;
    animation: aiGradient 5s ease infinite;
}

    .ai-super-btn:hover {
        transform: scale(1.05);
        color: #fff;
    }

    .ai-super-btn:active {
        transform: scale(.97);
    }

.ai-super-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ai-super-content i {
        font-size: 24px;
        animation: aiRotate 5s linear infinite;
    }

.ai-super-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 35%), radial-gradient(circle at bottom right, rgba(255,255,255,.18), transparent 30%);
}

.ai-super-btn::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 80px;
    height: 220%;
    background: rgba(255,255,255,.28);
    transform: rotate(25deg);
    transition: .5s;
}

.ai-super-btn:hover::before {
    left: 130%;
}

@keyframes aiGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes aiRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.list-group {
    width: 100%;
}

    .list-group .position-relative {
        margin-bottom: 10px;
    }

.form-check-input-placeholder {
    border-style: dashed;
}

[contenteditable]:focus {
    outline: 0;
}

.list-group-checkable .list-group-item {
    cursor: pointer;
}

.list-group-item-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

    .list-group-item-check:hover + .list-group-item {
        background-color: var(--bs-secondary-bg);
    }

    .list-group-item-check:checked + .list-group-item {
        color: #fff;
        background: #eff6ff;
        border-color: #1a4fb3;
    }

    .list-group-item-check[disabled] + .list-group-item,
    .list-group-item-check:disabled + .list-group-item {
        pointer-events: none;
        filter: none;
        opacity: .5;
    }

.list-group-radio .list-group-item {
    cursor: pointer;
    border-radius: 12px;
}

.list-group-radio .form-check-input {
    z-index: 2;
    margin-top: -.5em;
}

.list-group-radio .list-group-item:hover,
.list-group-radio .list-group-item:focus {
    background-color: var(--bs-secondary-bg);
}

.list-group-radio .form-check-input:checked + .list-group-item {
    background-color: #eff6ff;
    border: 2px solid #1a4fb3;
}

.list-group-radio .form-check-input[disabled] + .list-group-item,
.list-group-radio .form-check-input:disabled + .list-group-item {
    pointer-events: none;
    filter: none;
    opacity: .5;
}

.dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 3px;
}

.list-group-item:has(input:checked) {
    background-color: #f0f3ff;
    color: #1a4fb3;
    font-weight: bold;
}

.form-step-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.3s ease;
}

    .form-step-content.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    padding: 10px 12px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5' stroke-width='1'/%3e%3cpath stroke-width='1.2' d='M6 3v4M6 9h.01'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #D0D3D4;
    gap: 6px;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.step-circle-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-step .step-number {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px dotted #ced4da;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 0;
    transition: all 0.3s ease;
}

.stepper-step .step-label {
    font-size: 12px;
    color: black;
    transition: all 0.3s ease;
}

.stepper-line {
    height: 2px;
    background-color: #dee2e6;
    width: 20px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.stepper-step.active .step-label {
    color: #1a4fb3;
    font-weight: bold;
}

.stepper-step.active .step-number {
    background-color: #1a4fb3;
    border-color: #1a4fb3;
    color: #ffffff;
    animation: activePulse 1.8s infinite ease-in-out;
}

.stepper-step.completed .step-label {
    color: #198754;
    font-weight: 600;
}

.stepper-step.completed .step-number {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
    font-size: 0;
}

    .stepper-step.completed .step-number::before {
        content: "\2713";
        font-size: 12px;
        font-weight: bold;
    }

.stepper-line.completed {
    background-color: #198754;
}

@keyframes activePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"], .was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"] {
    padding: 10px 12px !important;
}

.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
    padding: 10px 12px !important;
}

.tabs-custom {
    display: flex;
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #D0D3D4;
    margin-bottom: 10px;
}

    .tabs-custom::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: 10px;
        right: 10px;
        bottom: 10px;
        width: calc((100% - 20px) / 2);
        border: 1px solid #1a4fb3;
        border-radius: 12px;
        background: aliceblue;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .tabs-custom:has(> input:nth-of-type(3))::before {
        width: calc((100% - 20px) / 3);
    }

    .tabs-custom:has(> input:nth-of-type(2):checked)::before {
        transform: translateX(-100%);
    }

    .tabs-custom:has(> input:nth-of-type(3):checked)::before {
        transform: translateX(-200%);
    }

    .tabs-custom * {
        z-index: 2;
    }

input[type=radio] {
    display: none;
}

.tab-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 500px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.25s ease;
}

input[type=radio]:checked + label {
    color: #1a4fb3;
    font-weight: bold;
}

.tab-content {
    margin-top: 10px;
    display: none;
}

    .tab-content.active {
        display: block;
    }

.record-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    color: #888;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #D0D3D4;
}

    .record-btn:hover {
        background: #dbeafe;
        color: #1e40af;
    }

    .record-btn.recording {
        background: #fee2e2;
        color: #dc2626;
        animation: mic-pulse 0.9s infinite;
    }

    .record-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        animation: none;
    }

    .record-btn.recording {
        background: #ef4444;
        color: white;
        animation: pulse 1.5s infinite;
    }

@keyframes mic-pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(220,38,38,0.35);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220,38,38,0);
    }
}

.voice-preview-panel {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 10px;
    background: #f8fafc;
    border: 1px solid #D0D3D4;
    border-radius: 12px;
    animation: slide-down 0.3s ease;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voice-preview-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    direction: rtl;
}

#audioPreview {
    flex: 1;
    min-width: 180px;
    border-radius: 8px;
    outline: none;
}

.voice-preview-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1e3a8a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-confirm:hover {
        background: #1a4fb3;
    }

    .btn-confirm:active {
        transform: scale(0.97);
    }

    .btn-confirm:disabled {
        background: #D0D3D4;
        color: #94a3b8;
        cursor: not-allowed;
    }

.btn-cancel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #ef4444;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-cancel:hover {
        background: #fef2f2;
    }

.voice-status {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.offcanvas-backdrop.show {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1;
}

audio.native-audio-player,
audio#audioPreview,
audio#audioPlayback,
audio#dailyBriefingAudio,
audio#actionAudioPreview,
audio.chat-audio-message {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 54px;
    margin: 0;
    border-radius: 8px;
    outline: none;
}

.voice-preview-inner audio#audioPreview {
    flex: 1 1 220px;
}

.attachment-preview-grid .attachment-item-audio,
.item-docs-preview .attachment-item-audio {
    grid-column: 1 / -1;
    overflow: visible;
}

.attachment-item-audio audio {
    padding: 8px 8px 0;
    box-sizing: border-box;
}

.msg-content audio,
.msg-content .chat-audio-message,
.msg-content .native-audio-player {
    white-space: normal;
}

.inline-audio-player {
    width: 100%;
}

.datepicker-container {
    z-index: 11050 !important;
    pointer-events: auto !important;
}
