/* ═══════════════════════════════════════════════════
   ferramentas.css — InfoTins
═══════════════════════════════════════════════════ */

/* ── GRID DE FERRAMENTAS ──────────────────────────── */
.ferramentas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}
.ferramenta-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s;
}
.ferramenta-card:hover {
    border-color: #27c93f;
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.ferramenta-em-breve { opacity: 0.5; cursor: default; }
.ferramenta-em-breve:hover { transform: none; border-color: rgba(255,255,255,0.12); box-shadow: none; }
.ferramenta-icon { position: relative; display: inline-block; width: fit-content; }
.ferramenta-icon i { font-size: 2.4em; color: #27c93f; }
.badge-online, .badge-em-breve {
    position: absolute; top: -6px; right: -10px;
    font-size: 0.6em; padding: 2px 7px; border-radius: 20px;
    font-weight: 700; text-transform: uppercase;
}
.badge-online   { background: #27c93f; color: #000; }
.badge-em-breve { background: #555;    color: #ccc; }
.ferramenta-card h3 { color: #fff; font-size: 1.15em; margin: 0; }
.ferramenta-card p  { color: #aaa; font-size: 0.9em; line-height: 1.6; margin: 0; flex: 1; }
.ferramenta-tags    { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-ferramenta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; background: #27c93f; color: #000;
    font-weight: 700; border-radius: 30px; text-decoration: none;
    font-size: 0.9em; transition: all 0.3s; margin-top: auto; width: fit-content;
}
.btn-ferramenta:hover { background: #1fa832; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39,201,63,0.4); color: #000; }
.btn-ferramenta-disabled {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; background: rgba(255,255,255,0.07); color: #666;
    border-radius: 30px; font-size: 0.9em; cursor: not-allowed; margin-top: auto; width: fit-content;
}
.ferramentas-footer-note {
    display: flex; align-items: center; gap: 14px;
    background: rgba(77,166,255,0.08); border: 1px solid rgba(77,166,255,0.2);
    border-radius: 12px; padding: 20px 25px; color: #aaa; font-size: 0.95em;
}
.ferramentas-footer-note i { font-size: 1.5em; color: #4da6ff; flex-shrink: 0; }
.ferramentas-footer-note p { margin: 0; }
.ferramentas-footer-note a { color: #4da6ff; font-weight: 600; text-decoration: none; }
.ferramentas-footer-note a:hover { color: #80c6ff; }

/* ── BACK LINK TOP ────────────────────────────────── */
.back-link-top {
    display: inline-flex; align-items: center; gap: 6px;
    color: #888; font-size: 0.9em; text-decoration: none; margin-bottom: 12px; transition: color 0.2s;
}
.back-link-top:hover { color: #27c93f; }

/* ── CONVERSOR LAYOUT ─────────────────────────────── */
.conversor-layout { display: grid; grid-template-columns: 1fr 300px; gap: 35px; align-items: start; }

/* ── UPLOAD CARD ──────────────────────────────────── */
.upload-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.upload-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 40px 20px; border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px; margin: 12px; cursor: pointer; transition: all 0.3s; text-align: center;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: #27c93f; background: rgba(39,201,63,0.05); }
.upload-zone.drag-over { transform: scale(1.01); }
.upload-icon { font-size: 3em; color: #27c93f; }
.upload-zone h3 { color: #fff; margin: 0; font-size: 1.1em; }
.upload-zone p  { color: #888; margin: 0; font-size: 0.9em; }
.btn-upload {
    padding: 10px 24px; background: transparent; border: 2px solid #27c93f;
    color: #27c93f; font-weight: 700; border-radius: 30px; cursor: pointer;
    font-size: 0.9em; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
}
.btn-upload:hover { background: #27c93f; color: #000; }
.file-preview {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: rgba(39,201,63,0.08); border-top: 1px solid rgba(39,201,63,0.2);
}
.file-preview-icon { font-size: 1.8em; color: #27c93f; flex-shrink: 0; }
.file-preview-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.file-name { color: #fff; font-weight: 600; font-size: 0.9em; word-break: break-all; }
.file-size { color: #888; font-size: 0.8em; }
.btn-remove-file {
    background: rgba(255,80,80,0.15); border: 1px solid rgba(255,80,80,0.3); color: #ff6b6b;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.85em;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0;
}
.btn-remove-file:hover { background: rgba(255,80,80,0.3); }

/* ── OR DIVIDER ───────────────────────────────────── */
.or-divider { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: #555; font-size: 0.85em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }

/* ── TEXTAREA CARD ────────────────────────────────── */
.textarea-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.textarea-card label { display: block; color: #aaa; font-size: 0.88em; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.textarea-card label i { color: #27c93f; margin-right: 6px; }
.textarea-card textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #e0e0e0; font-family: 'Courier New', monospace;
    font-size: 0.82em; padding: 14px; resize: vertical; line-height: 1.5;
    transition: border-color 0.3s; box-sizing: border-box;
}
.textarea-card textarea:focus { outline: none; border-color: #27c93f; }

/* ── OPTIONS CARD ─────────────────────────────────── */
.options-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
.options-card h4 { color: #aaa; font-size: 0.88em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.options-card h4 i { color: #27c93f; margin-right: 6px; }
.options-row { display: flex; gap: 20px; flex-wrap: wrap; }
.option-group { display: flex; flex-direction: column; gap: 6px; }
.option-group label { color: #888; font-size: 0.82em; }
.option-group select {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: #fff; padding: 9px 14px; font-size: 0.9em;
    cursor: pointer; transition: border-color 0.3s; min-width: 220px;
}
.option-group select:focus { outline: none; border-color: #27c93f; }

/* ── BOTÃO CONVERTER ──────────────────────────────── */
.btn-converter {
    width: 100%; padding: 16px; background: linear-gradient(135deg, #27c93f, #1fa832);
    color: #000; font-weight: 800; font-size: 1.05em; border: none; border-radius: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.3s; margin-bottom: 20px;
}
.btn-converter:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(39,201,63,0.4); }
.btn-converter:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── PROGRESS ─────────────────────────────────────── */
.progress-wrap { margin-bottom: 20px; }
.progress-bar-track { background: rgba(255,255,255,0.08); border-radius: 30px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #27c93f, #4dff6e); border-radius: 30px; width: 0%; transition: width 0.4s ease; }
.progress-label { color: #888; font-size: 0.85em; text-align: center; margin: 0; }

/* ── RESULT CARDS ─────────────────────────────────── */
.result-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92em; }
.result-card.success { background: rgba(39,201,63,0.1); border: 1px solid rgba(39,201,63,0.3); color: #ccc; }
.result-card.error   { background: rgba(255,80,80,0.1);  border: 1px solid rgba(255,80,80,0.3);  color: #ccc; }
.result-card i { font-size: 1.4em; flex-shrink: 0; margin-top: 2px; }
.result-card.success i { color: #27c93f; }
.result-card.error   i { color: #ff6b6b; }
.result-card strong { color: #fff; display: block; margin-bottom: 4px; }
.result-card p      { margin: 0; line-height: 1.5; }

/* ── SIDEBAR ──────────────────────────────────────── */
.conversor-sidebar { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 22px; }
.info-card h4 { color: #fff; font-size: 0.95em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.info-card h4 i { color: #27c93f; }
.info-card p { color: #aaa; font-size: 0.88em; line-height: 1.6; margin: 0; }
.how-to-list { padding-left: 18px; margin: 0; color: #aaa; font-size: 0.88em; line-height: 1.8; }
.how-to-list strong { color: #fff; }
.support-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.support-list li { color: #aaa; font-size: 0.88em; display: flex; align-items: center; gap: 8px; }
.support-list li i { color: #27c93f; font-size: 0.9em; }
.cta-sidebar { background: rgba(39,201,63,0.08); border: 1px solid rgba(39,201,63,0.25); border-radius: 14px; padding: 22px; text-align: center; }
.cta-sidebar p { color: #aaa; font-size: 0.88em; margin: 0 0 14px; line-height: 1.5; }

/* ── RESPONSIVO ───────────────────────────────────── */
@media (max-width: 900px) {
    .conversor-layout { grid-template-columns: 1fr; }
    .conversor-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
    .conversor-sidebar { grid-template-columns: 1fr; }
    .ferramentas-grid  { grid-template-columns: 1fr; }
    .upload-zone { padding: 28px 14px; }
    .options-row { flex-direction: column; }
    .option-group select { min-width: unset; width: 100%; }
}
