/* ==================== ÍCONE FLUTUANTE ==================== */
.tts-floating-icon {
    transition: all 0.3s ease !important;
}

.tts-floating-icon:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6) !important;
}

/* ==================== TOOLTIP DE SELEÇÃO ==================== */
.tts-tooltip {
    animation: ttsPulse 2s infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes ttsPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
    }
}

/* ==================== PAINEL ==================== */
.tts-panel {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: ttsFadeIn 0.3s ease;
}

@keyframes ttsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tts-panel button {
    transition: all 0.2s ease !important;
}

.tts-panel button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.tts-panel button:active {
    transform: translateY(0) !important;
}

/* ==================== SLIDERS ==================== */
.tts-panel input[type="range"] {
    accent-color: #0d6efd;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
}

.tts-panel input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* ==================== BARRA DE PROGRESSO ==================== */
.tts-progress-bar {
    transition: width 0.3s ease !important;
    border-radius: 2px;
}

/* ==================== BOTÃO DE SELEÇÃO FLUTUANTE ==================== */
.tts-sel-btn {
    animation: ttsFadeIn 0.2s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tts-sel-btn:hover {
    background: #0b5ed7 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* ==================== RESPONSIVO PARA MOBILE ==================== */
@media (max-width: 768px) {
    .tts-floating-icon {
        bottom: 20px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }

    .tts-panel {
        bottom: 80px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: 350px !important;
        padding: 15px !important;
    }

    .tts-tooltip {
        font-size: 13px !important;
        padding: 10px 15px !important;
        top: 10px !important;
        left: 5% !important;
        right: 5% !important;
        transform: none !important;
        width: 90% !important;
    }

    .tts-sel-btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    .tts-panel button {
        font-size: 13px !important;
        padding: 8px !important;
    }
}

/* ==================== RESPONSIVO PARA TELAS MUITO PEQUENAS ==================== */
@media (max-width: 400px) {
    .tts-floating-icon {
        bottom: 15px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }

    .tts-panel {
        bottom: 70px !important;
        right: 5px !important;
        left: 5px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .tts-tooltip {
        font-size: 11px !important;
        padding: 8px 12px !important;
        top: 5px !important;
    }
}