/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    color: #fff !important;
    min-height: 100vh;
}

body {
    background: #000000;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== CONTAINER PRINCIPAL E HEADER ===== */
.container {
    max-width: 900px;
    width: 100%;
    min-height: auto;
    background: #000000;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20.8px;
    padding: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-top: -25px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.title {
    font-size: 50px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1px;
}

.subtitle {
    font-size: 18.2px;
    color: #888;
}

/* ===== SEÇÕES E TÍTULOS ===== */
.section {
    margin-bottom: 20.2px;
}

.section-title {
    font-size: 15px;
    color: #f9cd08;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.diamond {
    background: none;
    -webkit-text-fill-color: #00bfff; /* blue */
    animation: diamondPulse 4s infinite;
}

@keyframes diamondPulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 5px #00bfff;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px #00bfff, 0 0 30px #00bfff;
    }
    100% {
        opacity: 0.8;
        text-shadow: 0 0 5px #00bfff;
    }
}

.shine {
    background: none;
    -webkit-text-fill-color: #ffd700;
    animation: shineGold 2s infinite;
}

@keyframes shineGold {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 2;
    }
    100% {
        opacity: 0.6;
    }
}
/* ===== TOGGLE CARDS ===== */
.card-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 22px;
    border: 0.5px solid rgba(255, 107, 53, 0.3);
    margin-top: -15px;
}

.toggle-section {
    margin-bottom: 15px;
}

.toggle-section:last-child {
    margin-bottom: 0;
}

.section-label {
    color: #f9cd08;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.toggle-group { /* botoes completo e Parcial */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-card {
    padding: 01px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 05px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toggle-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* 1. REPLACE the existing .toggle-card.active rule around line 200 */
.toggle-card.active {
    background: rgba(255, 107, 53, 0.15) !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3) !important;
}

/* 2. REPLACE the existing .toggle-card.active::before rule around line 210 */
.toggle-card.active::before {
    content: '✓' !important;
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    color: #4efc03 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    background: rgba(255, 107, 53, 0.2) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #ff6b35 !important;
    z-index: 10 !important;
    animation: checkmarkPop 0.3s ease-out !important;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.toggle-card.active .card-icon {
    opacity: 1;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.toggle-card.active .card-title {
    color: #ff6b35;
}

.card-subtitle {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.toggle-card.active .card-subtitle {
    color: #bbb;
}

/* ===== NEON CONTAINERS E DROPDOWNS ===== */
.dropdown-container {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: flex-end;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.dropdown-label {
    font-weight: 600;
    color: #ff6b35;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.dropdown {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ff6b35' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 40px;
}

.dropdown:hover, .dropdown:focus {
    border-color: #ff6b35;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.6),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
    outline: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.neon-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.neon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    animation: neonScan 3s ease-in-out infinite;
}

@keyframes neonScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== SLIDERS E CONTROLES DE VALOR ===== */
.modern-slider {
    margin-bottom: 16px;
    margin-top: 20px;
}

.neon-container .modern-slider {
    margin-top: 24px;
    margin-bottom: 0;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.control-label {
    font-size: 11px;
    color: #ff6b35;
    font-weight: 500;
}

.slider-value {
    color: #ffd700;
    font-size: 11px;
    font-weight: 600;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(255, 107, 53, 0.4) 50%, 
        rgba(255, 215, 0, 0.4) 100%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider-track::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

.slider-track::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

/* ===== CHAT E MENSAGENS ===== */
/* Estilos do chatbox removidos - agora estão em chatbox.css */

/* #minha-historia removido - agora está em chatbox.css */

/* .chat-messages removido - agora está em chatbox.css */

/* .msg-wrap removido - agora está em chatbox.css */

/* .msg removido - agora está em chatbox.css */

/* .msg.bot e .msg.user removidos - agora estão em chatbox.css */

/* Todos os estilos restantes do chatbox removidos - agora estão em chatbox.css */

/* Estilos de input e botão do chat removidos - agora estão em chatbox.css */

#download-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

#download-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

/* ===== BOTÕES E ELEMENTOS DE AÇÃO ===== */
.generate-button {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #00ff00;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.6), inset 0 0 30px rgba(0, 255, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
}

@keyframes pulse-neon-warning {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.8), 0 0 10px rgba(255, 107, 53, 0.6), 0 0 15px rgba(255, 107, 53, 0.4);
        border-color: rgba(255, 107, 53, 0.8);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 1), 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.6);
        border-color: rgba(255, 107, 53, 1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.8), 0 0 10px rgba(255, 107, 53, 0.6), 0 0 15px rgba(255, 107, 53, 0.4);
        border-color: rgba(255, 107, 53, 0.8);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.pulse-neon-warning {
    animation: pulse-neon-warning 1.5s infinite;
}

.pulse-green {
    animation: pulse-green 2s infinite;
}

.blocked {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.generate-button:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.2);
}

.send-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#generate-btn-partial {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: pulse 2s infinite;
}

#generate-btn-partial:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

/* ===== ÁREA DE UPLOAD E FORMULÁRIOS PARCIAIS ===== */
.partial-content {
    margin-top: 20px;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-item label {
    font-size: 14px;
    font-weight: 500;
    color: #ff6b35;
}

.upload-input {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
}

.upload-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3), inset 0 0 10px rgba(255, 107, 53, 0.1);
}

.upload-input::file-selector-button {
    background: rgba(255, 107, 53, 0.8);
    color: white;
    border: 1px solid #ff6b35;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.upload-input::file-selector-button:hover {
    background: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* ===== ÁREA DE STATUS E NOTIFICAÇÕES ===== */
/* Status area removed - using only progress bar for status */

.success-message {
    display: none;
}

/* ===== CLASSES UTILITÁRIAS ===== */
.hidden {
    display: none;
}

/* ===== REGRAS ESPECÍFICAS PARA MODO PARCIAL ===== */

body.partial-mode .dropdown-group:has(.dropdown-label:contains("Proporção")) {
    display: none !important;
}

/* Alternativa usando seletores mais específicos */
.partial-mode .voice-controls-section {
    display: none !important;
}

.partial-mode .aspect-ratio-dropdown {
    display: none !important;
}

/* ===== ANIMAÇÕES ===== */
@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.toggle-card.active {
    animation: cardActivate 0.3s ease-out;
}

@keyframes cardActivate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ===== MEDIA QUERIES E RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .dropdown-container {
        flex-direction: column;
    }
    
    .dropdown-group {
        min-width: 100%;
    }
    
    .toggle-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .chat-card {
        min-height: 400px;
        max-height: 500px;
    }
    
    .chat-messages {
        max-height: 250px;
    }
}

/* ===== BOTÕES DE AÇÃO DAS MENSAGENS ===== */
.msg-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}

.msg-actions button {
    padding: 6px 12px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    color: #ff6b35;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.1);
}

.msg-actions button:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

/* 4. ADD these new rules at the END of your CSS file: */
/* Button visibility rules */
body.partial-mode #generate-btn {
    display: none !important;
}

body:not(.partial-mode) #generate-btn-partial {
    display: none !important;
}

body.partial-mode #partial-content {
    display: block !important;
}

body:not(.partial-mode) #partial-content {
    display: none !important;
}

/* =============================================== */
/* ADICIONE ESTA REGRA NO FINAL DO SEU STYLE.CSS */
/* =============================================== */

.hidden {
  display: none !important;
}

/* ===== BUTTON STATE STYLES ===== */
.btn-locked {
  background: rgba(255, 0, 0, 0.1) !important;
  border: 2px solid #ff0000 !important;
  color: #ff6666 !important;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.6), inset 0 0 30px rgba(255, 0, 0, 0.2); }
  100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.1); }
}

.btn-ready {
  background: rgba(0, 255, 0, 0.1) !important;
  border: 2px solid #00ff00 !important;
  color: #00ff00 !important;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 0, 0.6), inset 0 0 30px rgba(0, 255, 0, 0.2); }
  100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1); }
}

.btn-processing {
  background: rgba(255, 255, 0, 0.1) !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
  animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
  0% { box-shadow: 0 0 20px rgba(255, 255, 0, 0.3), inset 0 0 20px rgba(255, 255, 0, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 255, 0, 0.6), inset 0 0 30px rgba(255, 255, 0, 0.2); }
  100% { box-shadow: 0 0 20px rgba(255, 255, 0, 0.3), inset 0 0 20px rgba(255, 255, 0, 0.1); }
}

.btn-download {
  background: rgba(0, 100, 255, 0.1) !important;
  border: 2px solid #0066ff !important;
  color: #66aaff !important;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% { box-shadow: 0 0 20px rgba(0, 100, 255, 0.3), inset 0 0 20px rgba(0, 100, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(0, 100, 255, 0.6), inset 0 0 30px rgba(0, 100, 255, 0.2); }
  100% { box-shadow: 0 0 20px rgba(0, 100, 255, 0.3), inset 0 0 20px rgba(0, 100, 255, 0.1); }
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}