/* Estilos para o Conselheiro Amoroso com IA - Tema Branco */
.conselheiro-amoroso-widget {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(146, 26, 36, 0.15);
    border: 2px solid #f8f9fa;
    color: #333333;
    font-family: 'Arial', sans-serif;
}

.conselheiro-amoroso-widget h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
    color: #921A24;
    text-shadow: none;
}

.conselheiro-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.conselheiro-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #495057;
}

.conselheiro-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    background: #ffffff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.conselheiro-form textarea:focus {
    outline: none;
    border-color: #921A24;
    box-shadow: 0 0 0 3px rgba(146, 26, 36, 0.1);
}

.char-counter {
    text-align: right;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #6c757d;
}

#char-count {
    font-weight: bold;
    color: #28a745;
}

.conselheiro-form button {
    width: 100%;
    padding: 12px 20px;
    background: #921A24;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conselheiro-form button:hover:not(:disabled) {
    background: #7a1620;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 26, 36, 0.3);
}

.conselheiro-form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#timer-display {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    color: #c53030;
}

#timer-countdown {
    font-weight: bold;
    color: #921A24;
    font-size: 18px;
}

.resposta-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: #333;
    box-shadow: 0 5px 15px rgba(146, 26, 36, 0.1);
    border: 1px solid #e9ecef;
}

.resposta-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #921A24;
    font-size: 18px;
    border-bottom: 2px solid #921A24;
    padding-bottom: 8px;
}

.resposta-container p {
    line-height: 1.6;
    font-size: 15px;
    color: #495057;
    margin: 0;
}

.loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.loading p {
    margin: 0;
    font-style: italic;
    color: #6c757d;
}

/* Animação de loading */
.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #921A24;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estados do contador de caracteres */
.char-counter #char-count.warning {
    color: #fd7e14 !important;
}

.char-counter #char-count.danger {
    color: #dc3545 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .conselheiro-amoroso-widget {
        margin: 10px;
        padding: 20px;
    }
    
    .conselheiro-amoroso-widget h3 {
        font-size: 20px;
    }
    
    .conselheiro-form {
        padding: 15px;
    }
    
    .conselheiro-form textarea {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .conselheiro-amoroso-widget {
        margin: 5px;
        padding: 15px;
    }
    
    .conselheiro-amoroso-widget h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .conselheiro-form {
        padding: 12px;
    }
    
    .conselheiro-form button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Melhorias de acessibilidade */
.conselheiro-form textarea:focus,
.conselheiro-form button:focus {
    outline: 2px solid #921A24;
    outline-offset: 2px;
}

/* Animação suave para mudanças de estado */
.conselheiro-amoroso-widget * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

