﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-sf-primary: #BF3324 !important;
    --color-sf-primary-bg-color: #BF3324 !important;
    --color-sf-primary-border-color: #BF3324 !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: #BF3324;
    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: #BF3324;
    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, #BF3324 0%, #fecaca 100%);
    border-radius: 2px;
}

.slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #BF3324;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #BF3324;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #BF3324;
    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: #BF3324;
}

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: #BF3324;
}

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: #BF3324;
    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 Syncfusion Grid Styling */
.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;
}

/* Filter bar styling */
.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-[#bf3324] focus:ring-1 focus:ring-[#bf3324];
}

/* Pager styling */
.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-[#bf3324] bg-[#bf3324] text-white;
}

.custom-grid .e-pager .e-currentitem:hover {
    @apply border-[#a02919] bg-[#a02919];
}

/* Action buttons styling */
.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;
}

/* Remove default Syncfusion borders and backgrounds */
.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 spacing */
.grid-container {
    @apply mx-4 mt-6 sm:mx-6;
}

/* Responsive adjustments */
@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 {
   /* background: #fef2f2 !important;*/
    border-left: 3px solid #bf3324;
}

.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;
}

/* Estilos para botones de acci�n existentes */
.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; /* bg-gray-50 */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
}
.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: #BF3324 !important;
    color: white !important;
    border-color: #BF3324 !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: #bf3324;
    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, #bf3324 0%, #e74c3c 50%, #bf3324 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: #bf3324;
    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: #bf3324;
    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%;
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .upload-indicator {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
    }
}

/* Dark mode support */
@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%;
}

/* Container Enhancement */
.e-treeview {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fb 100%);
    border-radius: 12px;
    padding: 12px;
    box-shadow:
            0 4px 6px -1px rgba(0,0,0,0.1),
            0 2px 4px -1px rgba(0,0,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Base List Styling */
.e-treeview .e-list-parent {
    position: relative;
    margin: 0;
    padding: 0;
}

/* List Item Base - Remove Default Styling */
.e-treeview .e-list-item {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    list-style: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full Row Background */
.e-treeview .e-fullrow {
    background: none !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    transition: border-color 0.2s ease;
    display: block !important;
}

/* Text Content Wrapper */
.e-treeview .e-text-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🌳 TREE LINES - VISUAL HIERARCHY MAGIC */

/* Vertical connector lines */
.e-treeview .e-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
    rgba(191, 51, 36, 0.3) 0%,
    rgba(191, 51, 36, 0.15) 50%,
    rgba(191, 51, 36, 0.3) 100%);
    border-radius: 1px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Horizontal connector lines */
.e-treeview .e-list-item::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg,
    rgba(191, 51, 36, 0.3) 0%,
    rgba(191, 51, 36, 0.1) 100%);
    border-radius: 1px;
    z-index: 1;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Level-specific positioning and styling */

/* Level 0 (Root) - No lines */
.e-treeview .e-level-0::before,
.e-treeview .e-level-0::after {
    display: none;
}

/* Level 1 */
.e-treeview .e-level-1 .e-text-content {
    padding-left: 28px;
}
.e-treeview .e-level-1::before {
    left: 14px;
}
.e-treeview .e-level-1::after {
    left: 14px;
    width: 14px;
}

/* Level 2 */
.e-treeview .e-level-2 .e-text-content {
    padding-left: 52px;
}
.e-treeview .e-level-2::before {
    left: 38px;
}
.e-treeview .e-level-2::after {
    left: 38px;
    width: 14px;
}

/* Level 3 */
.e-treeview .e-level-3 .e-text-content {
    padding-left: 76px;
}
.e-treeview .e-level-3::before {
    left: 62px;
}
.e-treeview .e-level-3::after {
    left: 62px;
    width: 14px;
}

/* Level 4 */
.e-treeview .e-level-4 .e-text-content {
    padding-left: 100px;
}
.e-treeview .e-level-4::before {
    left: 86px;
}
.e-treeview .e-level-4::after {
    left: 86px;
    width: 14px;
}

/* Level 5 */
.e-treeview .e-level-5 .e-text-content {
    padding-left: 124px;
}
.e-treeview .e-level-5::before {
    left: 110px;
}
.e-treeview .e-level-5::after {
    left: 110px;
    width: 14px;
}

/* Level 6 */
.e-treeview .e-level-6 .e-text-content {
    padding-left: 148px;
}
.e-treeview .e-level-6::before {
    left: 134px;
}
.e-treeview .e-level-6::after {
    left: 134px;
    width: 14px;
}

/* Last child styling - truncate vertical line */
.e-treeview .e-list-item:last-child::before {
    bottom: 50%;
}

/* Parent lines continuation for nested items */
.e-treeview .e-level-1 .e-list-parent::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
    rgba(191, 51, 36, 0.2) 0%,
    rgba(191, 51, 36, 0.1) 100%);
    border-radius: 1px;
    z-index: 0;
}

.e-treeview .e-level-2 .e-list-parent::before {
    left: 38px;
}

.e-treeview .e-level-3 .e-list-parent::before {
    left: 62px;
}

/* 🎯 EXPAND/COLLAPSE ICONS */
.e-treeview .e-icons.interaction {
    position: relative;
    z-index: 3;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1.5px solid rgba(191, 51, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
            0 2px 4px rgba(0,0,0,0.1),
            inset 0 1px 0 rgba(255,255,255,0.8);
}

.e-treeview .e-icons.interaction:hover {
    background: linear-gradient(135deg, #bf3324 0%, #e63123 100%);
    border-color: #bf3324;
    color: white;
    transform: scale(1.1);
    box-shadow:
            0 4px 8px rgba(191, 51, 36, 0.3),
            inset 0 1px 0 rgba(255,255,255,0.2);
}

.e-treeview .e-icons.interaction::before {
    font-size: 10px;
    font-weight: bold;
}

/* 📁 FOLDER & FILE ICONS */
.e-treeview .e-list-icon {
    position: relative;
    z-index: 3;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.e-treeview .e-list-icon.folder {
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.e-treeview .e-list-icon.file-icon {
    color: #6b7280;
    filter: drop-shadow(0 1px 2px rgba(107, 114, 128, 0.2));
}

.e-treeview .e-list-icon.pdf {
    color: #dc2626;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

/* 📝 LIST TEXT CONTENT */
.e-treeview .e-list-text > div.flex {
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    margin-right: 12px;
}
.e-treeview .e-list-item:hover > .e-text-content > .e-list-text > div.flex {
    background-color: #f8f9fa; /* A very light gray */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.08);
}
/* Your custom content styling */
.e-treeview .e-list-text .flex {
    padding: 4px 8px;
}
/*.e-treeview .e-list-item:hover .e-list-text .flex {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(191, 51, 36, 0.2);
    transform: translateY(-1px);
    box-shadow:
            0 4px 12px rgba(0,0,0,0.15),
            inset 0 1px 0 rgba(255,255,255,0.8);
}

.e-treeview .e-list-item:hover::before {
    background: linear-gradient(180deg,
    rgba(191, 51, 36, 0.6) 0%,
    rgba(191, 51, 36, 0.3) 50%,
    rgba(191, 51, 36, 0.6) 100%);
    width: 3px;
}

.e-treeview .e-list-item:hover::after {
    background: linear-gradient(90deg,
    rgba(191, 51, 36, 0.6) 0%,
    rgba(191, 51, 36, 0.2) 100%);
    height: 3px;
}*/

/*.e-treeview .e-list-item:hover .e-list-icon {
    transform: scale(1.1);
}

 🌟 ACTIVE/SELECTED STATE 
.e-treeview .e-list-item.e-active .e-fullrow,
.e-treeview .e-list-item[aria-selected="true"] .e-fullrow {
    background: linear-gradient(135deg,
    rgba(191, 51, 36, 0.15) 0%,
    rgba(230, 49, 35, 0.1) 100%);
    border-left: 4px solid #bf3324;
    box-shadow:
            0 4px 12px rgba(191, 51, 36, 0.2),
            inset 0 1px 0 rgba(255,255,255,0.4);
}

.e-treeview .e-list-item.e-active .e-list-text .flex,
.e-treeview .e-list-item[aria-selected="true"] .e-list-text .flex {
    box-shadow: none !important;
}*/

/*.e-treeview .e-list-item.e-active > .e-fullrow,
.e-treeview .e-list-item[aria-selected="true"] > .e-fullrow {
    border-left-color: #BF3324 !important;
}


/* Make the hover effect on a selected item slightly more prominent 
.e-treeview .e-list-item.e-active:hover > .e-text-content > .e-list-text > div.flex,
.e-treeview .e-list-item[aria-selected="true"]:hover > .e-text-content > .e-list-text > div.flex {
    box-shadow: 0 7px 16px -4px rgba(191, 51, 36, 0.3);
    transform: translateY(-3px);
} */

.e-treeview .e-list-item.e-active > .e-text-content > .e-list-text > div.flex,
.e-treeview .e-list-item[aria-selected="true"] > .e-text-content > .e-list-text > div.flex {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px -3px rgba(191, 51, 36, 0.25);
}

.e-treeview .e-list-item.e-active::before,
.e-treeview .e-list-item[aria-selected="true"]::before {
    background: linear-gradient(180deg,
    #bf3324 0%,
    #e63123 50%,
    #bf3324 100%);
    width: 4px;
    box-shadow: 0 0 8px rgba(191, 51, 36, 0.4);
}

.e-treeview .e-list-item.e-active::after,
.e-treeview .e-list-item[aria-selected="true"]::after {
    background: linear-gradient(90deg,
    #bf3324 0%,
    rgba(191, 51, 36, 0.3) 100%);
    height: 4px;
    box-shadow: 0 0 4px rgba(191, 51, 36, 0.3);
}

/* 🎪 EXPANDED STATE ANIMATION */
.e-treeview .e-list-item[aria-expanded="true"] > .e-text-content .e-icons.interaction {
    background: linear-gradient(135deg, #bf3324 0%, #e63123 100%);
    color: white;
    border-color: #bf3324;
    box-shadow:
            0 4px 8px rgba(191, 51, 36, 0.3),
            inset 0 1px 2px rgba(255,255,255,0.2);
}

/* 🏷️ TAG STYLING */
.e-treeview .bg-white.rounded-full {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.8) 100%) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(41, 182, 246, 0.3) !important;
    box-shadow:
            0 2px 4px rgba(41, 182, 246, 0.1),
            inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.e-treeview .bg-white.rounded-full:hover {
    transform: translateY(-1px);
    box-shadow:
            0 4px 8px rgba(41, 182, 246, 0.2),
            inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 🛡️ PERMISSION BADGE */
.e-treeview .bg-gray-100 {
    background: linear-gradient(135deg,
    rgba(249, 250, 251, 0.95) 0%,
    rgba(243, 244, 246, 0.9) 100%) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(209, 213, 219, 0.4) !important;
    box-shadow:
            0 1px 3px rgba(107, 114, 128, 0.1),
            inset 0 1px 0 rgba(255,255,255,0.7);
}

.e-treeview .e-list-item:focus {
    outline: none;
}


/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .e-treeview {
        padding: 8px;
    }

    .e-treeview .e-level-1 .e-text-content { padding-left: 24px; }
    .e-treeview .e-level-2 .e-text-content { padding-left: 44px; }
    .e-treeview .e-level-3 .e-text-content { padding-left: 64px; }

    .e-treeview .e-level-1::before { left: 12px; }
    .e-treeview .e-level-2::before { left: 32px; }
    .e-treeview .e-level-3::before { left: 52px; }

    .e-treeview .e-level-1::after { left: 12px; width: 12px; }
    .e-treeview .e-level-2::after { left: 32px; width: 12px; }
    .e-treeview .e-level-3::after { left: 52px; width: 12px; }

    .e-treeview .e-list-text .flex {
        padding: 6px 12px;
    }
}

/* 🎭 LOADING ANIMATION */
@keyframes treeGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(191, 51, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(191, 51, 36, 0.6);
    }
}

.e-treeview.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    transparent 30%,
    rgba(191, 51, 36, 0.1) 50%,
    transparent 70%);
    animation: treeGlow 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}


@keyframes headerShine {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.e-default {
    padding: 0px !important;
}

.e-gridheader{
    padding: 0px !important;
}

/* Contenedor de números de páginas */
.pager-page-numbers-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0 0.5rem !important;
}

/* Botón de página normal */
.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;
    }

/* Botón de la página activa */
.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;
}

/* Contenedor de selección de tamaño de página */
.pager-page-size-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Selector desplegable */
.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;
}

/* Contenedor del icono desplegable */
.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;
}

/* SVG del icono */
.pager-dropdown-svg {
    width: 1rem !important;
    height: 1rem !important;
    color: #9ca3af !important;
}

/* Etiqueta del selector */
.pager-page-size-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    margin-right: 0.25rem !important;
}

/* Contenedor de información derecha */
.pager-right-info {
    display: flex !important;
    align-items: center !important;
}

/* Contenedor de información */
.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;
}

/* Texto de información de página */
.pager-page-info-text {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #cb210f !important;
}

/* Separador */
.pager-separator {
    font-size: 0.875rem !important;
    color: #fca5a5 !important;
    margin: 0 0.25rem !important;
}

/* Texto del contador */
.pager-counter-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #ef4444 !important;
}

/* Contenedor relativo para el dropdown */
.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);
}

/* Contenedor principal de Markdown */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem; /* text-sm */
}

.prose thead {
    background-color: #f3f4f6; /* bg-gray-100 */
}

.prose th, .prose td {
    border: 1px solid #d1d5db; /* border-gray-300 */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    text-align: left;
}

.prose th {
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
}

.prose td {
    color: #1f2937; /* text-gray-800 */
    background-color: #ffffff; /* bg-white */
}

/* Separador entre filas (como divide-y divide-gray-200) */
.prose tbody tr + tr {
    border-top: 1px solid #e5e7eb; /* divide-gray-200 */
}

/* Opcional: efecto hover para filas */
.prose tbody tr:hover {
    background-color: #f9fafb; /* gris muy claro */
}

.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);
    }

/* Responsive design */
@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        gap: 4px;
        padding: 4px;
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .zoom-controls {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}