/* Conversor de Imagens - Estilo Otimizado e Padronizado (Layout Corrigido) */
:root {
  --bg-color: #121212; --bg-secondary: #1a1a1a; --bg-card: #1f1f1f; --gold: #e2b64d; --gold-hover: #f0c969; --gold-light: rgba(226, 182, 77, 0.1); --white: #ffffff; --text-color: #e5e5e5; --text-secondary: #aaaaaa; --success: #4caf50; --error: #f44336; --border-radius: 16px; --border-radius-small: 8px; --transition: all 0.3s cubic-bezier(0.4, 0.2, 1); --shadow: 0 4px 20px rgba(0, 0, 0, 0.3); --border: 1px solid rgba(255, 255, 255, 0.1); --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-hover));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-color); font-family: "Poppins", sans-serif; line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: rgba(26, 26, 26, 0.95); backdrop-filter: blur(20px); padding: 20px 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(226, 182, 77, 0.2); }
.header-content, .logo-section, .logo-link, .breadcrumb a { display: flex; align-items: center; }
.header-content { justify-content: space-between; gap: 20px; }
.logo-link { gap: 12px; text-decoration: none; color: var(--text-color); transition: var(--transition); }
.logo-link:hover { color: var(--gold); transform: scale(1.05); }
.logo { height: 50px; } .logo-text { font-size: 18px; font-weight: 600; }
.breadcrumb a { gap: 8px; color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: var(--border-radius-small); border: var(--border); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); background: var(--gold-light); border-color: var(--gold); }
main { flex: 1; padding: 40px 0; }
.hero-section { text-align: center; margin-bottom: 40px; }
.hero-content h1 { font-size: 32px; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.hero-content h1 i { margin-right: 8px; }
.hero-description { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Estrutura do Conversor */
.converter-section { margin: 40px 0; }
.converter-container { background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow); border: var(--border); padding: 40px; }
.converter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.controls-area h2, .results-area h2 { color: var(--gold); font-size: 20px; margin-bottom: 20px; }
.drop-zone { border: 2px dashed var(--gold); border-radius: var(--border-radius); padding: 30px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--gold-light); }
.drop-zone:hover, .drop-zone.dragover { background: var(--bg-secondary); border-color: var(--gold-hover); }
.drop-zone i { font-size: 2.5rem; color: var(--gold); margin-bottom: 10px; }
.drop-zone .browse-text { color: var(--gold); font-weight: 600; }
.files-list-wrapper { margin-top: 20px; }
.files-list { max-height: 200px; overflow-y: auto; padding-right: 10px; }
.file-item { display: flex; align-items: center; gap: 15px; padding: 10px; background: var(--bg-secondary); border: var(--border); border-radius: var(--border-radius-small); margin-bottom: 10px; }
.file-preview { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.file-info { flex-grow: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info small { display: block; color: var(--text-secondary); }
.btn-remove-file { background: none; border: none; color: var(--text-secondary); font-size: 1rem; cursor: pointer; transition: var(--transition); }
.btn-remove-file:hover { color: var(--error); }
.btn-clear { background: var(--bg-secondary); border: var(--border); color: var(--text-color); padding: 8px 15px; border-radius: var(--border-radius-small); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 15px; width: 100%; }
.btn-clear:hover { border-color: var(--gold); color: var(--gold); }
.settings-group { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.setting-item label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); }
.setting-item select, .setting-item input[type="range"] { width: 100%; padding: 10px; background: var(--bg-secondary); border: var(--border); color: var(--text-color); border-radius: var(--border-radius-small); }
.quality-setting.hidden { display: none; }
.results-display { background: var(--bg-secondary); border: var(--border); border-radius: var(--border-radius); min-height: 400px; padding: 20px; overflow-y: auto; }
.placeholder-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-secondary); }
.placeholder-content i { font-size: 3rem; margin-bottom: 15px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.result-item { background: var(--bg-card); padding: 10px; border-radius: var(--border-radius-small); text-align: center; }
.result-item img { max-width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.result-item p { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; word-break: break-all; }
.btn-download-single { background: var(--success); color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: var(--transition); }
.btn-download-single:hover { opacity: 0.8; }
.result-actions { margin-top: 20px; }
.download-actions { display: flex; gap: 15px; }
.btn-convert, .btn-download-all { width: 100%; padding: 12px; border: none; border-radius: var(--border-radius-small); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-convert { background: var(--gradient-gold); color: var(--bg-secondary); }
.btn-convert:disabled { background: var(--text-secondary); cursor: not-allowed; }
.btn-download-all { background: var(--success); color: white; flex-grow: 2; /* Faz o botão de download ser maior */ }
.download-actions .btn-clear { margin-top: 0; flex-grow: 1; }

/* Seção de Informações e FAQ */
.info-section { margin: 60px 0; }
.info-container h2 { color: var(--gold); font-size: 24px; text-align: center; margin-bottom: 20px; }
.info-container > p { text-align: center; color: var(--text-secondary); max-width: 700px; margin: 0 auto 30px; }
.faq-grid { display: flex; flex-direction: column; gap: 15px; }
.faq-item details { background: var(--bg-card); border: var(--border); border-radius: var(--border-radius-small); transition: background-color 0.3s; }
.faq-item details:hover { background-color: var(--bg-secondary); }
.faq-item summary { padding: 15px 20px; cursor: pointer; font-weight: 500; color: var(--text-color); position: relative; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { transition: transform 0.3s ease; }
.faq-item details[open] summary i { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 15px; color: var(--text-secondary); }
.faq-item strong { color: var(--text-color); }

/* Rodapé */
footer { background: rgba(26, 26, 26, 0.95); padding: 30px 0; border-top: 1px solid rgba(226, 182, 77, 0.2); margin-top: auto; text-align: center; }
footer p { color: var(--text-secondary); font-size: 14px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-hover); }

/* Responsividade */
@media (max-width: 992px) { .converter-grid { grid-template-columns: 1fr; align-items: stretch; } .results-area { border-top: 1px solid var(--border); padding-top: 30px; } }
@media (max-width: 600px) { .hero-content h1 { font-size: 28px; } .settings-group { grid-template-columns: 1fr; } }