/* Active State - Forced Green */
.active-format {
    background-color: #10B981 !important;
    /* Security Green */
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1);
    font-weight: 600;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #1a202c;
    /* Slate 900 */
    color: white;
    font-size: 11px;
    font-weight: 500;
    max-width: 180px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    border-radius: 6px;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    animation: tooltipFade 0.2s ease-out forwards;
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a202c;
    margin-bottom: -2px;
    opacity: 0;
    animation: tooltipFade 0.2s ease-out forwards;
}

@keyframes tooltipFade {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Custom Scrollbar for list if needed */
#file-list::-webkit-scrollbar {
    width: 6px;
}

#file-list::-webkit-scrollbar-track {
    background: transparent;
}

#file-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* Loader Animation */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-bottom-color: #0f172a;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.drag-active {
    border-color: #10B981 !important;
    /* Security Green */
    background-color: #ECFDF5 !important;
}

/* Fade in animation for items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item-anim {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Dark Mode Tooltips */
.dark [data-tooltip]:hover::before {
    background-color: #f1f5f9;
    /* Slate 100 */
    color: #0f172a;
    /* Slate 900 */
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
}

.dark [data-tooltip]:hover::after {
    border-top-color: #f1f5f9;
}