/* =====================================================
   TransferPro - Estilos publicos
   Paleta: Indigo (#4f46e5) + Ciano (#22d3ee) + neutros (slate)
   ===================================================== */
:root {
    --tp-primary: #4f46e5;
    --tp-primary-dark: #4338ca;
    --tp-accent: #22d3ee;
    --tp-dark: #0f172a;
    --tp-muted: #64748b;
    --tp-border: #e2e8f0;
    --tp-bg: #f1f5f9;
    --tp-radius: 18px;
    --tp-shadow: 0 24px 55px -28px rgba(15, 23, 42, .45);
}

* { scroll-behavior: smooth; }

body.tp-public {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(79, 70, 229, .14), transparent 60%),
        radial-gradient(1000px 500px at -10% 110%, rgba(34, 211, 238, .14), transparent 55%),
        var(--tp-bg);
    color: var(--tp-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Navbar ---------- */
.navbar {
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, .82) !important;
}
.tp-brand {
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--tp-dark);
    transition: transform .2s ease;
}
.tp-brand:hover { transform: translateY(-1px); }
.tp-brand i { color: var(--tp-primary); }
.tp-logo-img { max-height: 38px; max-width: 200px; object-fit: contain; }

/* ---------- Hero ---------- */
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tp-primary-dark);
    background: rgba(79, 70, 229, .1);
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 999px;
}
.tp-hero-title {
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.tp-gradient-text {
    background: linear-gradient(100deg, var(--tp-primary), var(--tp-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tp-hero-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 34rem;
}

/* ---------- Lista de recursos ---------- */
.tp-feature-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .9rem;
    color: #334155;
    font-weight: 500;
}
.tp-feature-ico {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--tp-border);
    color: var(--tp-primary);
    font-size: 1.1rem;
    box-shadow: 0 6px 16px -10px rgba(79, 70, 229, .5);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tp-feature-list li:hover .tp-feature-ico {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 22px -12px rgba(79, 70, 229, .7);
}

/* ---------- Card principal ---------- */
.tp-card {
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background: #ffffff;
    box-shadow: var(--tp-shadow);
    position: relative;
    overflow: hidden;
}
.tp-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-accent));
}

/* ---------- Dropzone ---------- */
.tp-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 2.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}
.tp-dropzone:hover { border-color: var(--tp-primary); background: #eef2ff; }
.tp-dropzone.dragover {
    border-color: var(--tp-primary);
    background: #eef2ff;
    transform: scale(1.01);
}
.tp-dropzone-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(79, 70, 229, .1);
    color: var(--tp-primary);
    font-size: 1.8rem;
    transition: transform .2s ease;
}
.tp-dropzone:hover .tp-dropzone-ring { transform: translateY(-3px); }
.tp-dropzone.dragover .tp-dropzone-ring { animation: tpPulse 1.1s ease-in-out infinite; }
@keyframes tpPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .35); }
    50%      { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
}

/* ---------- Lista de arquivos selecionados ---------- */
.tp-file-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    background: #fff;
    margin-bottom: .5rem;
    animation: tpFadeUp .3s ease both;
}
.tp-file-item .bi:first-child { font-size: 1.4rem; color: var(--tp-primary); }
.tp-file-name { font-size: .9rem; font-weight: 600; word-break: break-all; }
.tp-file-size { font-size: .78rem; color: var(--tp-muted); }

/* ---------- Nota informativa (dias fixos) ---------- */
.tp-note {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: #3730a3;
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .15);
    border-radius: 10px;
    padding: .7rem .9rem;
}
.tp-note i { font-size: 1.05rem; }

/* ---------- Inputs ---------- */
.tp-card .form-control,
.tp-card .form-select {
    border-radius: 10px;
    border-color: var(--tp-border);
    transition: border-color .15s, box-shadow .15s;
}
.tp-card .form-control:focus,
.tp-card .form-select:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .18);
}

/* ---------- Progresso ---------- */
.tp-progress-wrap { display: none; }
.tp-progress-wrap .progress { border-radius: 999px; background: #eef2ff; }
.tp-progress-wrap .progress-bar {
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-accent));
    border-radius: 999px;
    transition: width .25s ease;
}

/* ---------- Botao principal ---------- */
.btn-tp {
    background: linear-gradient(100deg, var(--tp-primary), var(--tp-primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding-block: .7rem;
    box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .8);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-tp:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(79, 70, 229, .9);
    filter: brightness(1.05);
}
.btn-tp:disabled { opacity: .55; box-shadow: none; }

.btn-outline-primary { border-radius: 10px; }

/* ---------- Resultado ---------- */
.tp-success-ico {
    width: 72px; height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
    font-size: 2.4rem;
    animation: tpPop .4s cubic-bezier(.18, .89, .32, 1.28) both;
}
@keyframes tpPop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.tp-codigo {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--tp-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #eef2ff;
    border: 1px dashed rgba(79, 70, 229, .3);
    border-radius: 12px;
    padding: .6rem 0;
}
.tp-link-box {
    background: #f8fafc;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    font-family: ui-monospace, monospace;
    font-size: .85rem;
    word-break: break-all;
}

.tp-footer { color: var(--tp-muted); font-size: .85rem; }

/* ---------- Animacao de entrada ---------- */
.tp-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: tpFadeUp .6s ease forwards;
    animation-delay: var(--tp-delay, 0s);
}
@keyframes tpFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .tp-reveal { animation: none; opacity: 1; transform: none; }
    * { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 575.98px) {
    .tp-card { border-radius: 14px; }
    .tp-card.p-4 { padding: 1.25rem !important; }
    .tp-hero-title { font-size: 2rem; }
    .tp-dropzone { padding: 1.75rem 1rem; }
}
