:root { --bg: #0c0a09; --bg2: #16120f; --card: #1c1714; --card2: #221b16; --line: #33291f; --txt: #fdf6ef; --muted: #b6a392; --orange: #ff7a18; --orange2: #ffa743; --orange-deep: #e85d04; --glow: rgba(255, 122, 24, .35); --ok: #34d399; --warn: #fbbf24; --err: #fb7185; --radius: 16px; --shadow: 0 10px 40px -10px #000a; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--txt); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.5; overflow: hidden; } /* Fundo animado com brilhos laranja */ body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50vmax 50vmax at 12% -10%, rgba(255,122,24,.18), transparent 60%), radial-gradient(45vmax 45vmax at 110% 10%, rgba(232,93,4,.14), transparent 60%), radial-gradient(40vmax 40vmax at 50% 120%, rgba(255,167,67,.10), transparent 60%); animation: drift 18s ease-in-out infinite alternate; } @keyframes drift { from { transform: translateY(-2%) scale(1); } to { transform: translateY(2%) scale(1.05); } } a { color: var(--orange2); } code { background: #0008; padding: 1px 6px; border-radius: 6px; color: var(--orange2); font-size: .9em; } /* ===== Layout: sidebar + conteudo ===== */ .app { display: grid; grid-template-columns: 252px 1fr; height: 100vh; } .sidebar { background: linear-gradient(180deg, #15100c, #0c0a09); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; gap: 6px; } .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; } .brand .emoji { font-size: 30px; filter: drop-shadow(0 4px 10px var(--glow)); } .brand .name { font-size: 21px; font-weight: 800; letter-spacing: -.3px; } .brand .name b { background: linear-gradient(90deg, var(--orange), var(--orange2)); -webkit-background-clip: text; background-clip: text; color: transparent; } .brand .tag { font-size: 11px; color: var(--muted); margin-top: -2px; } nav { display: flex; flex-direction: column; gap: 4px; } nav button { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; color: var(--muted); border: none; cursor: pointer; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; transition: all .18s ease; } nav button .ico { font-size: 18px; width: 22px; text-align: center; } nav button:hover { background: #ffffff08; color: var(--txt); } nav button.active { background: linear-gradient(90deg, rgba(255,122,24,.18), rgba(255,122,24,.04)); color: var(--txt); box-shadow: inset 3px 0 0 var(--orange); } .sidebar .foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px; border-top: 1px solid var(--line); } .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 6px; animation: pulse 2s infinite; } @keyframes pulse { 50% { opacity: .4; } } .content { overflow-y: auto; padding: 0; } .topbar { position: sticky; top: 0; z-index: 5; /* Fundo sólido semitransparente em vez de backdrop-filter: blur() — o blur numa barra fixa forçava repaint pesado a cada scroll (travava celular/PC fraco). */ background: rgba(12, 10, 9, .94); border-bottom: 1px solid var(--line); padding: 18px 32px; } .topbar h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; } .topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; } main { padding: 28px 32px 60px; max-width: 1080px; } .tab { display: none; } .tab.active { display: block; animation: rise .35s cubic-bezier(.2,.8,.2,1); } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } /* ===== Cards / steps ===== */ .card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; } .card:hover { border-color: #4a3a2a; } .card h3 { font-size: 13px; margin: 0 0 16px; color: var(--orange2); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; } .step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px var(--glow); } .grid { display: grid; gap: 14px; } .grid.cols { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; } .spacer { flex: 1; } label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; } input, select, textarea { width: 100%; background: #0d0a08; color: var(--txt); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,24,.15); } textarea { resize: vertical; min-height: 70px; } input[type=file] { padding: 9px; cursor: pointer; } input[type=checkbox] { width: auto; accent-color: var(--orange); } button.btn { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; border: none; cursor: pointer; padding: 11px 20px; border-radius: 11px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px -4px var(--glow); transition: transform .15s, box-shadow .15s, filter .15s; } button.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -6px var(--glow); filter: brightness(1.06); } button.btn:active { transform: translateY(0); } button.btn.ghost { background: #ffffff0a; border: 1px solid var(--line); color: var(--txt); box-shadow: none; } button.btn.ghost:hover { border-color: var(--orange); background: #ffffff12; } button.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; } button.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; } .chip { display: inline-flex; align-items: center; gap: 7px; background: #0d0a08; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); } .chip.ok { color: var(--ok); border-color: #1f5c46; } .chip.warn { color: var(--warn); border-color: #5c4a1f; } .chip.err { color: var(--err); border-color: #5c2424; } /* ===== Thumbs ===== */ .thumb { position: relative; background: #0d0a08; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 9/16; transition: transform .18s, outline-color .18s; } .thumb:hover { transform: translateY(-3px); } .thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb.sel { outline: 3px solid var(--orange); outline-offset: -1px; } .thumb .tag { position: absolute; top: 7px; left: 7px; font-size: 10.5px; background: #000b; padding: 3px 7px; border-radius: 6px; } .thumb .pick { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: #000a; display: grid; place-items: center; font-size: 12px; opacity: .5; transition: all .15s; } .thumb.sel .pick { background: var(--orange); opacity: 1; } .thumb .name { position: absolute; bottom: 0; left: 0; right: 0; font-size: 11px; padding: 14px 7px 5px; background: linear-gradient(0deg, #000d, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .thumb .del { position: absolute; top: 7px; left: 7px; width: 26px; height: 26px; border-radius: 50%; background: rgba(220,40,70,.85); color: #fff; border: 1px solid #fff4; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1; display: grid; place-items: center; opacity: .9; transition: opacity .15s, background .15s, transform .15s; z-index: 4; box-shadow: 0 2px 8px #0008; } .thumb:hover .del { opacity: 1; } .thumb .del:hover { background: var(--err); transform: scale(1.12); } .thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; background: #0d0a08; } /* ===== Dashboard (Início) ===== */ .grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; } .card.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin: 0; } .card.stat .si { font-size: 26px; line-height: 1; } .card.stat .sv { font-size: 24px; font-weight: 800; line-height: 1; } .card.stat .sl { font-size: 12px; color: var(--muted); margin-top: 4px; } .card.action { cursor: pointer; display: flex; flex-direction: column; gap: 4px; } .card.action:hover { border-color: var(--orange); transform: translateY(-3px); } .card.action .ai { font-size: 30px; } .card.action h4 { margin: 6px 0 0; font-size: 16px; font-weight: 700; } .card.action .cta { color: var(--orange2); font-weight: 700; font-size: 13px; margin-top: 8px; } .presets { flex-wrap: wrap; } .modes { flex-wrap: wrap; } .btn.ghost.sel-mode { border-color: var(--orange); background: rgba(255,122,24,.14); color: var(--txt); box-shadow: inset 0 0 0 1px var(--orange); } /* ===== Player modal (assistir vídeo pronto) ===== */ .modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; } .modal.hide { display: none !important; } .modal-bg { position: absolute; inset: 0; background: #000c; backdrop-filter: blur(4px); } .modal-box { position: relative; z-index: 1; } .modal-box video { max-width: 92vw; max-height: 86vh; border-radius: 14px; border: 1px solid var(--line); background: #000; display: block; box-shadow: var(--shadow); } .modal-close { position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; border-radius: 50%; background: var(--card2); color: var(--txt); border: 1px solid var(--line); cursor: pointer; font-size: 16px; z-index: 2; box-shadow: var(--shadow); } .modal-close:hover { background: var(--err); } .thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #000a; color: #fff; display: grid; place-items: center; font-size: 18px; opacity: .85; pointer-events: none; transition: background .15s, transform .15s; } .thumb:hover .play { opacity: 1; background: var(--orange); transform: translate(-50%,-50%) scale(1.1); } .bar { height: 9px; background: #0d0a08; border-radius: 999px; overflow: hidden; margin: 10px 0; border: 1px solid var(--line); } .bar > div { height: 100%; background: linear-gradient(90deg, var(--orange-deep), var(--orange2)); transition: width .4s ease; background-size: 200% 100%; animation: shimmer 2s linear infinite; } @keyframes shimmer { to { background-position: 200% 0; } } table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); } th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; } tbody tr { transition: background .15s; } tbody tr:hover { background: #ffffff06; } .status-scheduled { color: var(--orange2); } .status-posted { color: var(--ok); } .status-failed { color: var(--err); } .status-posting { color: var(--warn); } .status-canceled { color: var(--muted); } .toast { position: fixed; bottom: 24px; right: 24px; background: var(--card2); border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 14px 20px; border-radius: 12px; box-shadow: 0 16px 40px #000b; max-width: 380px; z-index: 100; animation: slideIn .3s cubic-bezier(.2,.8,.2,1); font-size: 14px; } @keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } } .toast.err { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); } .muted { color: var(--muted); } .note { font-size: 13px; color: var(--muted); background: #0d0a08; border-radius: 11px; padding: 12px 14px; border: 1px solid var(--line); line-height: 1.7; } .hide { display: none !important; } .timeslots { display: flex; gap: 8px; flex-wrap: wrap; } .timeslots input { width: 96px; } /* Hero banner */ .hero { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(255,122,24,.16), rgba(232,93,4,.06)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; } .hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; } .hero p { margin: 0; color: var(--muted); max-width: 620px; } .hero .big { position: absolute; right: -10px; bottom: -20px; font-size: 120px; opacity: .12; } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #3a2e22; border-radius: 999px; border: 2px solid var(--bg); } ::-webkit-scrollbar-thumb:hover { background: var(--orange-deep); } /* Sliders de posicionamento */ input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; padding: 0; background: #0d0a08; border: 1px solid var(--line); border-radius: 999px; margin: 4px 0 8px; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--orange2), var(--orange-deep)); cursor: grab; box-shadow: 0 2px 10px var(--glow); border: 2px solid #fff3; } input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); } #previewCanvas { box-shadow: var(--shadow); } /* Guias passo a passo (accordion) */ .guide { border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; overflow: hidden; background: #ffffff05; transition: border-color .2s; } .guide[open] { border-color: #4a3a2a; } .guide summary { list-style: none; cursor: pointer; padding: 15px 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; } .guide summary::-webkit-details-marker { display: none; } .guide summary .gi { font-size: 22px; } .guide summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; } .guide[open] summary .chev { transform: rotate(180deg); } .guide[open] summary { border-bottom: 1px solid var(--line); } .guide .body { padding: 16px; } .guide ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted); font-size: 13.5px; line-height: 1.9; } .guide ol b { color: var(--txt); } .copy { display: inline-flex; align-items: center; gap: 8px; background: #0d0a08; border: 1px dashed var(--line); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; color: var(--orange2); word-break: break-all; transition: border-color .15s; } .copy:hover { border-color: var(--orange); } /* Lista de workspaces */ .ws-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; cursor: pointer; transition: all .15s; } .ws-item:hover { border-color: #5a4632; } .ws-item.active { border-color: var(--orange); background: rgba(255,122,24,.09); box-shadow: inset 3px 0 0 var(--orange); } .ws-item .star { color: var(--orange2); } /* ==================================================================== MOBILE / TABLET — layout 100% responsivo ==================================================================== */ @media (max-width: 900px) { /* O corpo passa a rolar normalmente (no desktop fica travado) */ html, body { height: auto; overflow: auto; -webkit-text-size-adjust: 100%; } .app { grid-template-columns: 1fr; height: auto; min-height: 100dvh; } /* Barra de navegação: vira uma faixa horizontal fixa no topo, com rolagem lateral por toque. Cada item fica em UMA linha. */ .sidebar { flex-direction: row; align-items: center; gap: 6px; height: auto; padding: 9px 12px; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, #15100c, #120d09); scrollbar-width: none; } .sidebar::-webkit-scrollbar { display: none; } .brand { padding: 0 8px 0 2px; flex-shrink: 0; } .brand .emoji { font-size: 24px; } .brand .name { font-size: 18px; } .brand .tag { display: none; } nav { flex-direction: row; gap: 6px; flex: 1 0 auto; } nav button { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 9px 13px; font-size: 13.5px; border-radius: 10px; gap: 7px; } nav button .ico { font-size: 16px; width: auto; } /* Topo e conteúdo com respiro menor no celular */ .topbar { position: static; padding: 16px 16px 14px; } .topbar h1 { font-size: 19px; } .topbar p { font-size: 12.5px; } main { padding: 18px 16px 96px; max-width: 100%; } .hero { padding: 20px 18px; } .hero h2 { font-size: 19px; } .hero p { font-size: 14px; } .hero .big { font-size: 88px; right: -6px; bottom: -14px; } .card { padding: 18px 15px; } /* Qualquer grade fixa de 2 colunas (formulários da campanha etc.) vira 1 coluna no celular — mesmo quando o estilo está embutido no HTML */ .grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; } .grid.stats { grid-template-columns: 1fr 1fr; } .grid.cols { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } /* Passo 3 do editor: preview (canvas) e controles empilham */ #previewCanvas { width: 100%; max-width: 260px; height: auto; aspect-ratio: 9/16; } /* Inputs e botões dentro de uma linha ocupam a largura toda */ .row > input, .row > select { min-width: 0 !important; } .row .btn { flex: 1 1 auto; } /* Avisos flutuantes não estouram a tela */ .toast { left: 14px; right: 14px; bottom: 14px; max-width: none; } .modal-close { top: 4px; right: 4px; } .modal-box video { max-width: 94vw; max-height: 80vh; } } /* Telas bem estreitas (celulares pequenos) */ @media (max-width: 420px) { body { font-size: 14.5px; } .topbar h1 { font-size: 18px; } .hero h2 { font-size: 18px; } .card h3 { font-size: 12px; } .grid.cols { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } nav button { padding: 8px 11px; font-size: 13px; } }