﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-sf-primary: #009b61 !important;
    --color-sf-primary-bg-color: #009b61 !important;
    --color-sf-primary-border-color: #009b61 !important;
    --color-sf-primary-bg-color-hover: #7a1a0f !important;
    --color-sf-primary-border-color-hover: #7a1a0f !important;
}

.bg-main-theme {
    background-color: rgb(191 51 36);
}

.bg-main-theme:hover {
    background-color: rgb(147, 41, 30);
}

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.progress-bar {
    transition: width 0.3s ease;
}

.citation-number {
    font-size: 0.7rem;
    vertical-align: super;
    color: #009b61;
    font-weight: 600;
    cursor: pointer;
}

.citation-tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.2s;
}

.citation-hover:hover .citation-tooltip {
    visibility: visible;
    opacity: 1;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #009b61;
    border-radius: 50%;
    margin-right: 3px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
}

.tree-line {
    border-left: 1px dashed #d1d5db;
    margin-left: 12px;
    padding-left: 12px;
}

.relevance-bar {
    height: 4px;
    background: linear-gradient(to right, #009b61 0%, #fecaca 100%);
    border-radius: 2px;
}

.slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #009b61;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #009b61;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #009b61;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

input[type="range"]::-moz-range-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #009b61;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #009b61;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

button {
    cursor: pointer;
}

.e-grid {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.e-grid .e-row {
    cursor: pointer;
}

.e-grid .e-row:hover {
    background-color: rgba(239, 68, 68, 0.05);
}

.e-grid .e-gridheader {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.e-grid .e-headercell {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.e-grid .e-filterbarcell {
    background-color: #ffffff;
    padding: 0.5rem;
}

.e-grid .e-filtertext {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.e-grid .e-filtertext:focus {
    outline: none;
    border-color: #009b61;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.e-grid .e-rowcell {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.e-pager {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.e-grid .e-sortfilterdiv {
    color: #9ca3af;
}

.e-grid .e-icon-filter {
    color: #9ca3af;
}

.e-grid .e-headercelldiv {
    font-size: 0.875rem;
}

.e-grid .e-row:hover {
    background-color: rgba(239, 68, 68, 0.05);
}

.file-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.e-list-icon.folder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.file-icon.pdf {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M13.586 2a2 2 0 0 1 1.284.467l.13.119L19.414 7a2 2 0 0 1 .578 1.238l.008.176V20a2 2 0 0 1-1.85 1.995L18 22H6a2 2 0 0 1-1.995-1.85L4 20V4a2 2 0 0 1 1.85-1.995L6 2zM12 4H6v16h12V10h-4.5a1.5 1.5 0 0 1-1.493-1.356L12 8.5zm.988 7.848a6.22 6.22 0 0 0 2.235 3.872c.887.717.076 2.121-.988 1.712a6.22 6.22 0 0 0-4.47 0c-1.065.41-1.876-.995-.989-1.712a6.22 6.22 0 0 0 2.235-3.872c.178-1.127 1.8-1.126 1.977 0m-.99 2.304l-.688 1.196h1.38zM14 4.414V8h3.586z'/%3E%3C/g%3E%3C/svg%3E");
}

.file-icon.docx {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E");
}

.file-icon.xlsx {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h8'/%3E%3Cpath d='M8 9h2'/%3E%3Cpath d='M16 13v4'/%3E%3C/svg%3E");
}

.file-icon.jpg,
.file-icon.jpeg,
.file-icon.png {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21,15 16,10 5,21'/%3E%3C/svg%3E");
}

.file-icon.txt {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='16' y1='21' x2='8' y2='21'/%3E%3C/svg%3E");
}

.file-icon.zip {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cpath d='M10 12h4'/%3E%3Cpath d='M10 16h4'/%3E%3Cpath d='M12 12v8'/%3E%3C/svg%3E");
}

.file-icon.video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E");
}

.file-icon.audio {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E");
}

.file-icon.csv {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cpath d='M8 13h8M8 17h8M8 9h8'/%3E%3C/svg%3E");
}

.file-icon.default {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='1.5'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13,2 13,9 20,9'/%3E%3C/svg%3E");
}

.e-pagenomsg, .e-pagecountmsg {
    display: none;
}

.custom-grid {
    @apply overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm;
}

.custom-grid .e-gridheader {
    @apply border-b border-gray-200 bg-gray-50;
}

.custom-grid .e-gridheader .e-headercell {
    @apply border-r border-gray-200 bg-gray-50 px-4 py-3 text-sm font-semibold text-gray-700;
    border-bottom: 1px solid #e5e7eb !important;
}

.custom-grid .e-gridheader .e-headercell:last-child {
    @apply border-r-0;
}

.custom-grid .e-gridcontent .e-rowcell {
    @apply border-r border-gray-100 px-4 py-3 text-sm text-gray-900;
    border-bottom: 1px solid #f3f4f6 !important;
}

.custom-grid .e-gridcontent .e-rowcell:last-child {
    @apply border-r-0;
}

.custom-grid .e-gridcontent .e-row:hover {
    @apply bg-gray-50;
}

.custom-grid .e-gridcontent .e-altrow {
    @apply bg-white;
}

.custom-grid .e-gridcontent .e-row {
    @apply bg-white;
    transition: background-color 0.15s ease-in-out;
}


.custom-grid .e-filterbar .e-filterbarcell {
    @apply border-r border-gray-200 bg-white px-4 py-2;
}

.custom-grid .e-filterbar .e-filterbarcell:last-child {
    @apply border-r-0;
}

.custom-grid .e-filterbar .e-textbox {
    @apply rounded-md border-gray-300 text-sm focus:border-[#009b61] focus:ring-1 focus:ring-[#009b61];
}


.custom-grid .e-gridpager {
    @apply border-t border-gray-200 bg-white px-4 py-3;
}

.custom-grid .e-pager .e-numericitem {
    @apply mx-1 rounded-md border border-gray-300 bg-white px-3 py-2 text-sm font-medium text-gray-700;
    transition: all 0.15s ease-in-out;
}

.custom-grid .e-pager .e-numericitem:hover {
    @apply border-gray-400 bg-gray-50;
}

.custom-grid .e-pager .e-currentitem {
    @apply border-[#009b61] bg-[#009b61] text-white;
}

.custom-grid .e-pager .e-currentitem:hover {
    @apply border-[#a02919] bg-[#a02919];
}


.custom-grid .action-btn {
    @apply rounded-md px-3 py-1.5 text-xs font-medium transition-all duration-200 focus:ring-2 focus:ring-offset-1 focus:outline-none;
}

.custom-grid .action-btn-edit {
    @apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500;
}

.custom-grid .action-btn-delete {
    @apply bg-red-600 text-white hover:bg-red-700 focus:ring-red-500;
}


.custom-grid .e-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.custom-grid .e-headercell,
.custom-grid .e-rowcell {
    border-left: none !important;
    border-top: none !important;
}


.grid-container {
    @apply mx-4 mt-6 sm:mx-6;
}


@media (max-width: 640px) {
    .custom-grid .e-gridheader .e-headercell,
    .custom-grid .e-gridcontent .e-rowcell {
        @apply px-2 py-2 text-xs;
    }

    .custom-grid .action-btn {
        @apply px-2 py-1 text-xs;
    }
}

.e-default {
    padding: 0px 20px 0px 20px;
}

.e-treeview .e-fullrow {
    height: 55px !important;
}

.e-fullrow:hover {
    background: none !important;
    transition: background-color 0.2s ease;
    height: 55px !important;
}

.e-list-item .e-active {

    border-left: 3px solid #009b61;
}

.e-fullrow {
    display: none !important;
}

.e-treeview .e-ul {
    padding: 0 0 0 12px !important;
}

.e-float-text .e-label-top {
    display: none !important;
}

.tags-container {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.view-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.view-btn.active {
    background-color: #c22920;
    border-color: #c22920;
    color: white;
}

.diagram-container {
    padding: 16px;
}

.diagram-viewport {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.control-btn {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.node-group:hover .node-actions {
    opacity: 1 !important;
}

.node-text {
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.node-description {
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.node-actions circle {
    transition: all 0.2s ease;
}


.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-edit {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.action-btn-edit:hover {
    background-color: #bfdbfe;
}

.action-btn-delete {
    background-color: #fee2e2;
    color: #dc2626;
}

.action-btn-delete:hover {
    background-color: #fecaca;
}

.custom-grid .e-headercell {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.e-footer-content .e-btn.e-primary.e-flat:not([DISABLED]):not(.e-success):not(.e-danger):not(.e-warning):not(.e-info) {
    background-color: #009b61 !important;
    color: white !important;
    border-color: #009b61 !important;
}

.e-treeview {
    min-height: 100px;
}

.e-diagram-userhandle-circle {
    cursor: pointer !important;
}

.e-grid td.e-rowcell.e-focus.e-focused {
    box-shadow: none;

}

.e-grid th.e-headercell.e-focus.e-focused {

    box-shadow: none;
}

.file-drop-zone .file-drop-zone-overlay {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.file-drop-zone.file-drop-zone-active {
    border-color: #009b61;
    background-color: #fef2f2;
}

.file-drop-zone.file-drop-zone-active .file-drop-zone-overlay {
    opacity: 1;
}

.upload-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.upload-indicator.minimized {
    height: 60px;
    transform: scale(0.95);
}

.upload-indicator.minimized .upload-content {
    opacity: 0;
    transform: translateY(-10px);
}

.upload-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.upload-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-counter {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.upload-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.upload-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-progress {
    padding: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #009b61 0%, #e74c3c 50%, #009b61 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%);
    background-size: 16px 16px;
    animation: progress-stripes 1s linear infinite;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s ease-in-out infinite;
}

.progress-percentage {
    font-weight: 600;
    font-size: 14px;
    color: #009b61;
    min-width: 40px;
    text-align: right;
}

.upload-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 0 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.upload-list::-webkit-scrollbar {
    width: 4px;
}

.upload-list::-webkit-scrollbar-track {
    background: transparent;
}

.upload-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.upload-item {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.upload-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.file-progress {
    font-weight: 600;
    font-size: 12px;
    color: #009b61;
    margin-left: 12px;
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 16px 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}


@media (max-width: 480px) {
    .upload-indicator {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
    }
}


@media (prefers-color-scheme: dark) {
    .upload-indicator {
        background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .upload-header {
        background: linear-gradient(90deg, #34495e 0%, #2c3e50 100%);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .upload-counter {
        color: #ecf0f1;
    }

    .upload-label {
        color: #bdc3c7;
    }

    .action-btn {
        background: rgba(52, 73, 94, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
    }

    .action-btn:hover {
        background: rgba(52, 73, 94, 1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .progress-bar {
        background: linear-gradient(90deg, #34495e 0%, #2c3e50 100%);
    }

    .upload-item {
        background: rgba(52, 73, 94, 0.3);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .file-name {
        color: #ecf0f1;
    }

    .e-btn.e-flat.e-primary:disabled, .e-btn.e-flat.e-primary.e-disabled, .e-css.e-btn.e-flat.e-primary:disabled, .e-css.e-btn.e-flat.e-primary.e-disabled {
        background: #af7979 !important;
        box-shadow: none;
        color: white;
    }
}

.e-btn.e-flat.e-primary:disabled, .e-btn.e-flat.e-primary.e-disabled, .e-css.e-btn.e-flat.e-primary:disabled, .e-css.e-btn.e-flat.e-primary.e-disabled {
    background: #af7979 !important;
    box-shadow: none;
    color: white;
}

.e-list-text {
    width: 95%;
}

/* ==========================================================================
   Modern TreeView Redesign
   ========================================================================== */

.e-treeview {
    /* --- Variables de Tema (¡Modifica aquí para cambiar el look!) --- */
    --bg-color: #ffffff; /* Color de fondo del contenedor */
    --text-color: #374151; /* Color de texto por defecto (Gris 800) */
    --icon-color: #9ca3af; /* Color de los iconos (Gris 400) */
    --border-color: #1B1A1A; /* Color de los bordes sutiles (Gris 200) */
    --guide-line-color: #d1d5db; /* Color de las líneas del árbol (Gris 300) */

    --hover-bg-color: #091509; /* Fondo al pasar el ratón (Gris 50) */

    --active-bg-color: #142711; 
    --active-text-color: #058f56; /* Color de texto e icono activo (Azul 700) */
    --active-guide-color: #07ba70; /* Color de la línea guía activa (Azul 400) */

    --indentation: 24px; /* Espacio de sangría por nivel */
    --base-radius: 8px; /* Radio de los bordes redondeados */
    --transition-speed: 0.2s; /* Velocidad de las transiciones */

    font-family: system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--base-radius);
    padding: 8px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    color: var(--text-color);
}

/* --- Estructura de la Lista --- */
.e-treeview .e-list-parent,
.e-treeview .e-list-item {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.e-treeview .e-text-content {
    display: flex;
    align-items: center;
    min-height: 38px;
    width: 100%;
    padding: 4px 8px;
    border-radius: calc(var(--base-radius) - 2px);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
    user-select: none;
}

/* --- Estado Hover --- */
.e-treeview .e-list-item:not(.e-active):hover > .e-text-content {
    background-color: var(--hover-bg-color);
}

.e-treeview .e-list-item.e-active > .e-text-content,
.e-treeview .e-list-item[aria-selected='true'] > .e-text-content {
    background-color: var(--active-bg-color);
    color: var(--active-text-color);
    font-weight: 500;
}

.e-treeview .e-list-item::before,
.e-treeview .e-list-item::after {
    content: '';
    position: absolute;
    background-color: var(--guide-line-color);
    transition: background-color var(--transition-speed) ease;
    z-index: 49;
}

/* Línea Vertical */
.e-treeview .e-list-item::before {
    left: calc(var(--indentation) / 2);
    top: 0;
    width: 1px;
    height: 100%;
}

/* Línea Horizontal */
.e-treeview .e-list-item::after {
    left: calc(var(--indentation) / 2);
    top: 19px; /* Mitad de la altura mínima (38px / 2) */
    width: calc(var(--indentation) / 2);
    height: 1px;
}

/* Ajuste para el último item de una lista */
.e-treeview .e-list-item:last-child::before {
    height: 19px;
}

/* Ocultar líneas para el nivel raíz */
.e-treeview .e-level-0::before,
.e-treeview .e-level-0::after {
    display: none;
}

/* --- Sangría por Nivel (Indentation) --- */
.e-treeview .e-level-1 > .e-text-content {
    padding-left: var(--indentation);
}

.e-treeview .e-level-2 > .e-text-content {
    padding-left: calc(var(--indentation) * 2);
}

.e-treeview .e-level-3 > .e-text-content {
    padding-left: calc(var(--indentation) * 3);
}

.e-treeview .e-level-4 > .e-text-content {
    padding-left: calc(var(--indentation) * 4);
}

/* ... y así sucesivamente para más niveles */

/* Posicionamiento de las líneas guía por nivel */
.e-treeview .e-level-2::before,
.e-treeview .e-level-2::after {
    left: calc(var(--indentation) + (var(--indentation) / 2));
}

.e-treeview .e-level-3::before,
.e-treeview .e-level-3::after {
    left: calc(var(--indentation) * 2 + (var(--indentation) / 2));
}

.e-treeview .e-level-4::before,
.e-treeview .e-level-4::after {
    left: calc(var(--indentation) * 3 + (var(--indentation) / 2));
}

/* ... y así sucesivamente */

/* --- Icono de Expandir/Contraer (Chevron) --- */
.e-treeview .e-icons.interaction {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.e-treeview .e-icons.interaction::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--icon-color);
    border-bottom: 2px solid var(--icon-color);
    transform: rotate(-45deg);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

/* Chevron en estado expandido */
.e-treeview .e-list-item[aria-expanded='true'] > .e-text-content .e-icons.interaction {
    transform: rotate(90deg);
}

/* --- Iconos de Archivo/Carpeta --- */
.e-treeview .e-list-icon {
    margin-right: 6px;
    font-size: 18px;
    color: var(--icon-color);
    transition: color var(--transition-speed) ease;
    filter: none; /* Eliminamos las sombras */
}

/* --- Colores de los Iconos y Líneas en estado activo --- */
.e-treeview .e-list-item.e-active > .e-text-content .e-list-icon,
.e-treeview
.e-list-item.e-active
> .e-text-content
.e-icons.interaction::before {
    color: var(--active-text-color); /* Para iconos de fuente */
    border-color: var(--active-text-color); /* Para el chevron */
}

.e-treeview .e-list-item.e-active::before,
.e-treeview .e-list-item.e-active::after {
    background-color: var(--active-guide-color);
    /* Efecto sutil para la línea activa */
    box-shadow: 0 0 5px -1px var(--active-guide-color);
}

/* --- Limpieza de estilos residuales --- */
.e-treeview .e-fullrow {
    display: none !important; /* Generalmente no es necesario con este enfoque */
}

.e-treeview .e-list-item:focus {
    outline: none; /* Se maneja con el estado .e-active o .e-focused si lo tienes */
}

/* Para un enfoque de accesibilidad, añade un anillo de foco visible */
.e-treeview .e-list-item > .e-text-content:focus-visible {
    outline: 2px solid var(--active-text-color);
    outline-offset: 2px;
}

/* --- Animaciones (opcional) --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.e-treeview .e-list-item {
    animation: fadeIn 0.3s ease-out forwards;
}


@keyframes headerShine {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.e-default {
    padding: 0px !important;
}

.e-gridheader {
    padding: 0px !important;
}


.pager-page-numbers-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0 0.5rem !important;
}


.pager-page-number-button {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    color: #4b5563 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pager-page-number-button:hover {
    color: #dc2626 !important;
    background-color: #fef2f2 !important;
}


.pager-active-page-button {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background-color: rgb(191 51 36) !important;
    color: white !important;
    background-image: none !important;
    background-color: rgb(191, 51, 36) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.pager-page-size-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}


.pager-page-size-select {
    appearance: none !important;
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.pager-page-size-select:hover {
    border-color: #d1d5db !important;
}

.pager-page-size-select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
}


.pager-dropdown-icon {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    pointer-events: none !important;
}


.pager-dropdown-svg {
    width: 1rem !important;
    height: 1rem !important;
    color: #9ca3af !important;
}


.pager-page-size-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    margin-right: 0.25rem !important;
}


.pager-right-info {
    display: flex !important;
    align-items: center !important;
}


.pager-info-container {
    background-image: none !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.25rem !important;
    display: flex !important;
    align-items: center !important;
}


.pager-page-info-text {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #cb210f !important;
}


.pager-separator {
    font-size: 0.875rem !important;
    color: #fca5a5 !important;
    margin: 0 0.25rem !important;
}


.pager-counter-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #ef4444 !important;
}


.relative {
    position: relative;
}

.pager-navigation-button:hover:not(:disabled) {
    color: white;
    background-image: none !important;
    background-color: rgb(191, 51, 36) !important;
    transform: scale(1.05);
}

.prose{
    color: white;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.prose thead {
    background-color: #f3f4f6;
}

.prose th, .prose td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    text-align: left;
}

.prose th {
    font-weight: 600;
    color: #374151;
}

.prose td {
    color: #1f2937;
    background-color: #ffffff;
}


.prose tbody tr + tr {
    border-top: 1px solid #e5e7eb;
}


.prose tbody tr:hover {
    background-color: #f9fafb;
}

.zoom-controls {
    position: absolute;
    display: flex;
    gap: 6px;
    z-index: 100;
    left: 16px;
}

.zoom-btn {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.zoom-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s;
}

.zoom-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.zoom-btn:hover:before {
    left: 100%;
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
}

.zoom-in {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.zoom-in:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.zoom-out {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

.zoom-out:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.reset-zoom {
    background: linear-gradient(135deg, #2196F3 0%, #0d47a1 100%);
}

.reset-zoom:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}


@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        gap: 4px;
        padding: 4px;
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
    }
}


@media (prefers-color-scheme: dark) {
    .zoom-controls {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}
.e-treeview .e-list-item div.e-icons:not(.e-icons-spinner).e-icon-expandable::before, .e-treeview .e-list-item div.e-icons:not(.e-icons-spinner).e-icon-collapsible::before{
    content:""!important;
}
.nav-link-modern {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-modern:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link-modern:hover::before {
    opacity: 1;
}

.nav-link-modern.active-modern {
    color: white;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.nav-link-modern.active-modern::before {
    opacity: 0;
}

/* Dropdown select options styling */
#language-select option {
    background-color: #1a1a1a;
    color: white;
}

/* Profile indicator pulse animation */
@keyframes pulse-ring {
     0% {
         box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
     }
     70% {
         box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
     }
     100% {
         box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
     }
 }

#profile-button:hover {
    animation: pulse-ring 1.5s ease-in-out;
}

 .typing-indicator-modern {
     display: inline-flex;
     align-items: center;
     gap: 4px;
 }

.typing-indicator-modern span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(34, 197, 94);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator-modern span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator-modern span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes typing-bounce {
     0%, 80%, 100% {
         transform: scale(0.8);
         opacity: 0.5;
     }
     40% {
         transform: scale(1);
         opacity: 1;
     }
 }

/* Scrollbar styling */
.scrollbar-thin::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slide-in-from-bottom-3 {
     from {
         opacity: 0;
         transform: translateY(12px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

.animate-in {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fade-in;
}

.slide-in-from-bottom-3 {
    animation-name: slide-in-from-bottom-3;
}

.slide-in-from-bottom-6 {
    animation-name: slide-in-from-bottom-6;
}

.slide-in-from-top-2 {
    animation-name: slide-in-from-top-2;
}

@keyframes fade-in {
     from { opacity: 0; }
     to { opacity: 1; }
 }

@keyframes slide-in-from-bottom-6 {
     from {
         opacity: 0;
         transform: translateY(24px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

@keyframes slide-in-from-top-2 {
     from {
         opacity: 0;
         transform: translateY(-8px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes blob {
      0% { transform: translate(0px, 0px) scale(1); }
      33% { transform: translate(30px, -50px) scale(1.1); }
      66% { transform: translate(-20px, 20px) scale(0.9); }
      100% { transform: translate(0px, 0px) scale(1); }
  }

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Zoom in animation */
@keyframes zoom-in-95 {
     from {
         opacity: 0;
         transform: scale(0.95);
     }
     to {
         opacity: 1;
         transform: scale(1);
     }
 }

.zoom-in-95 {
    animation: zoom-in-95 0.2s ease-out;
}

/* Fade in animation */
@keyframes fade-in {
     from { opacity: 0; }
     to { opacity: 1; }
 }

.fade-in {
    animation: fade-in 0.2s ease-out;
}

/* Dark multiselect styling */
.custom-multiselect-dark .e-multi-select-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
}

.custom-multiselect-dark .e-multi-select-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.custom-multiselect-dark .e-multi-select-wrapper.e-input-focus {
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.custom-multiselect-dark .e-input-group-icon {
    color: rgb(34, 197, 94);
}

.custom-multiselect-dark .e-chips {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(34, 197, 94);
}

.custom-multiselect-dark .e-chips .e-chips-close::before {
    color: rgb(34, 197, 94);
}

/* Scrollbar for dark theme */
.scrollbar-thin::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thumb-white\/10::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.scrollbar-thumb-white\/10::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
 .relevance-bar {
     border-radius: 9999px;
     transition: width 0.5s ease-out;
 }

.custom-multiselect .e-list-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
    transition: all 0.15s ease !important;
}

.custom-multiselect .e-list-item:hover {
    background-color: #f0fdf4 !important;
}

.custom-multiselect .e-list-item .e-frame {
    margin-right: 10px !important;
    margin-bottom: 0 !important;
}

.custom-multiselect .e-list-item .e-list-text {
    display: inline !important;
    line-height: normal !important;
    font-weight: 500 !important;
}

.custom-multiselect .e-list-item .e-check {
    vertical-align: middle !important;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #10b981;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: 1s blink infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: .2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
     50% {
         opacity: 1;
         transform: scale(1.2);
     }
 }

@keyframes fade-in {
     from {
         opacity: 0;
     }
     to {
         opacity: 1;
     }
 }

@keyframes slide-in-from-bottom-3 {
     from {
         opacity: 0;
         transform: translateY(12px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

@keyframes slide-in-from-bottom-6 {
     from {
         opacity: 0;
         transform: translateY(24px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }
@keyframes slide-in-from-top-2 {
     from {
         opacity: 0;
         transform: translateY(-8px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

@keyframes zoom-in-95 {
     from {
         opacity: 0;
         transform: scale(0.95);
     }
     to {
         opacity: 1;
         transform: scale(1);
     }
 }

.animate-in {
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fade-in;
}

.slide-in-from-bottom-3 {
    animation-name: slide-in-from-bottom-3;
}

.slide-in-from-bottom-6 {
    animation-name: slide-in-from-bottom-6;
}

.slide-in-from-top-2 {
    animation-name: slide-in-from-top-2;
}

.zoom-in-95 {
    animation-name: zoom-in-95;
}

.duration-200 {
    animation-duration: 200ms;
}

.duration-300 {
    animation-duration: 300ms;
}

/* Auto-expanding textarea */
#myTextarea {
    overflow-y: auto;
    field-sizing: content;
}

/* Smooth scrollbar */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}