body {
    background-color: #f9f9f9;
    transition: background-color .3s, color .3s;
}

.input-with-icon {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 68%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
    font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding-left: 40px;
    padding-right: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.filter-separator {
    margin-left: -16px !important; 
    width: calc(100% + 32px) !important;
}

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 17px;
}

/* Animações do Modal de Filtro */
.filter-modal {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.filter-modal.show {
    opacity: 1;
}

.modal-content {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.modal-content.slide-in {
    transform: translateX(0);
}

.modal-content.slide-out {
    transform: translateX(100%);
}

/* Tooltip para cards fullbleed */
.tooltip-fullbleed {
    position: absolute;
    display: none;
    z-index: 100;
    pointer-events: none;
    width: calc(100% - 20px);
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.tooltip-fullbleed.tooltip-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-content {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Seta do tooltip quando está acima do card (tooltip-bottom = seta apontando para baixo) */
.tooltip-fullbleed.tooltip-bottom .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

/* Seta do tooltip quando está abaixo do card (tooltip-top = seta apontando para cima) */
.tooltip-fullbleed.tooltip-top .tooltip-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.95);
}

.tooltip-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

/* Scrollbar personalizada para tooltip */
.tooltip-text::-webkit-scrollbar {
    width: 6px;
}

.tooltip-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tooltip-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.tooltip-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Dark mode support */
.dark .tooltip-content {
    background: rgba(17, 24, 39, 0.95);
}

.dark .tooltip-fullbleed.tooltip-bottom .tooltip-content::after {
    border-top-color: rgba(17, 24, 39, 0.95);
}

.dark .tooltip-fullbleed.tooltip-top .tooltip-content::after {
    border-bottom-color: rgba(17, 24, 39, 0.95);
}