@charset "utf-8";
/* CSS Document */
/* CSS do Sistema de Áudio */
.inline-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin: 20px 0;
    position: relative;
}

.inline-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.inline-button.active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.reading-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 1.5s infinite;
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
    max-width: 350px;
    width: calc(100vw - 60px);
    transform: translateY(500px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.audio-controls.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.controls-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.controls-header small {
    width: 100%;
    margin-top: 5px;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.control-btn {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.control-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    background-color: rgba(255,255,255,0.1);
    padding: 2px;
    border-radius: 8px;
}

.setting-item label {
    display: block;
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

select, input[type="range"] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: none;
}

.status {
    background-color: rgba(255,255,255,0.2);
    color: yellow;
    padding: 4px;
    border-radius: 2px;
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .audio-controls {
        right: 10px;
        left: 10px;
        width: auto;
    }
}
/* Reduz altura do header */
.controls-header {
    padding: 2px 4px !important;
    margin-bottom: 4px !important;
}

.controls-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.controls-header br {
    display: none !important;
}

/* Remove mensagem "Lendo: ..." */
#currentContent {
    display: none !important;
}

/* Reduz espaçamento entre botões */
.button-group {
    gap: 5px !important;
    margin-bottom: 10px !important;
}

.control-btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* Reduz altura dos controles de configuração */
.settings {
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.setting-item {
    margin-bottom: 8px !important;
}

.setting-item label {
    font-size: 13px !important;
    margin-bottom: 3px !important;
}

/* Reduz MUITO a altura do volume */
.setting-item.compact {
    margin-bottom: 5px !important;
}

.setting-item.compact label {
    margin-bottom: 2px !important;
}

#volumeRange {
    height: 4px !important;
    margin: 3px 0 !important;
}

/* Reduz altura do range de velocidade também (opcional) */
#rateRange {
    height: 4px !important;
    margin: 3px 0 !important;
}

/* Reduz espaçamento do select */
#voiceSelect {
    padding: 5px !important;
    font-size: 13px !important;
}

/* Reduz altura do status */
.status {
    padding: 6px 10px !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* Remove espaços extras do painel todo */
.audio-controls {
    padding: 10px 15px !important;
}
.area-audio {
  background-color: #feffff;
  border: 2px solid #2196f3;
  padding: 20px;
  border-radius: 8px;
}