@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --atp-bg: #0a0c10;
    --atp-bg-elevated: #111419;
    --atp-sidebar: #0d1016;
    --atp-card: #141820;
    --atp-border: rgba(255, 255, 255, 0.07);
    --atp-border-strong: rgba(255, 255, 255, 0.11);
    --atp-text: #eef1f6;
    --atp-muted: #8892a4;
    --atp-accent: #ff0033;
    --atp-accent-soft: rgba(255, 0, 51, 0.12);
    --atp-accent-glow: rgba(255, 0, 51, 0.28);
    --atp-success: #10b981;
    --atp-warning: #f59e0b;
    --atp-danger: #ef4444;
    --atp-radius: 12px;
    --atp-radius-sm: 8px;
    --atp-sidebar-w: 272px;
    --atp-topbar-h: 64px;
    --atp-footer-h: 52px;
    --atp-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.admin-body {
    margin: 0;
    background: var(--atp-bg);
    color: var(--atp-text);
    font-family: var(--atp-font);
    font-size: 0.9375rem;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* —— App shell —— */
.admin-app {
    min-height: 100vh;
    display: flex;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s;
}

body.sidebar-open .admin-overlay {
    display: block;
    opacity: 1;
}

/* —— Sidebar —— */
.admin-sidebar {
    width: var(--atp-sidebar-w);
    flex-shrink: 0;
    background: var(--atp-sidebar);
    border-right: 1px solid var(--atp-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-brand {
    padding: 1.35rem 1.15rem 1.15rem;
    border-bottom: 1px solid var(--atp-border);
}

.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.admin-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ff1a47, #cc0028);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--atp-accent-glow);
}

.admin-brand-text strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.admin-brand-text small {
    display: block;
    color: var(--atp-muted);
    font-size: 0.7rem;
    margin-top: 2px;
    line-height: 1.35;
}

.admin-nav {
    padding: 1rem 0.65rem;
    flex: 1;
}

.admin-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--atp-muted);
    padding: 0 0.85rem;
    margin-bottom: 0.45rem;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--atp-muted);
    border-radius: var(--atp-radius-sm);
    margin-bottom: 0.15rem;
    padding: 0.62rem 0.85rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar .nav-link .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.15s;
}

.admin-sidebar .nav-link .nav-icon i {
    font-size: 1.05rem;
}

.admin-sidebar .nav-link:hover {
    color: var(--atp-text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar .nav-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background: var(--atp-accent-soft);
}

.admin-sidebar .nav-link.active .nav-icon {
    background: rgba(255, 0, 51, 0.2);
    color: #ff4d6d;
}

.admin-sidebar .nav-link.active .nav-icon i {
    color: #ff4d6d;
}

.admin-sidebar-footer {
    padding: 1rem 1rem 1.15rem;
    border-top: 1px solid var(--atp-border);
    margin-top: auto;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--atp-card);
    border: 1px solid var(--atp-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #ff4d6d;
}

.admin-user-info {
    min-width: 0;
    flex: 1;
}

.admin-user-info strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-info span {
    display: block;
    font-size: 0.7rem;
    color: var(--atp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.52rem;
    border-radius: var(--atp-radius-sm);
    border: 1px solid var(--atp-border);
    background: transparent;
    color: var(--atp-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.admin-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* —— Main shell —— */
.admin-shell {
    flex: 1;
    min-width: 0;
    margin-left: var(--atp-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* —— Topbar —— */
.admin-topbar {
    height: var(--atp-topbar-h);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--atp-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.admin-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius-sm);
    background: var(--atp-card);
    color: var(--atp-text);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.admin-menu-btn:hover {
    background: var(--atp-bg-elevated);
    border-color: var(--atp-border-strong);
}

.admin-topbar-titles {
    min-width: 0;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--atp-text);
}

.admin-breadcrumb a {
    color: var(--atp-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.admin-breadcrumb a:hover {
    color: var(--atp-text);
}

.admin-breadcrumb .sep {
    font-size: 0.65rem;
    color: var(--atp-muted);
    opacity: 0.6;
}

.admin-page-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--atp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar-end {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.topbar-action {
    width: 38px;
    height: 38px;
    border-radius: var(--atp-radius-sm);
    border: 1px solid var(--atp-border);
    background: var(--atp-card);
    color: var(--atp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.15s;
}

.topbar-action:hover {
    color: var(--atp-text);
    border-color: var(--atp-border-strong);
    background: var(--atp-bg-elevated);
}

/* —— Main content —— */
.admin-main {
    flex: 1;
    padding: 1.5rem;
}

/* —— Footer —— */
.admin-footer {
    border-top: 1px solid var(--atp-border);
    background: var(--atp-sidebar);
    min-height: var(--atp-footer-h);
}

.admin-footer-inner {
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-footer-left,
.admin-footer-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--atp-text);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-brand i {
    color: var(--atp-accent);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--atp-muted);
}

.admin-footer-right a {
    font-size: 0.75rem;
    color: var(--atp-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
}

.admin-footer-right a:hover {
    color: var(--atp-text);
}

.footer-version {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--atp-muted);
    background: var(--atp-card);
    border: 1px solid var(--atp-border);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* —— Alerts —— */
.alert-atp {
    border-radius: var(--atp-radius-sm);
    border: 1px solid transparent;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.alert-atp-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

.alert-atp-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.alert-atp-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

.alert-atp .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.45;
    margin-left: auto;
}

/* —— Cards —— */
.card {
    background: var(--atp-card);
    border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius);
    color: var(--atp-text);
}

.card-header-atp {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--atp-border);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.card-header-atp i {
    color: var(--atp-muted);
    font-size: 1rem;
}

.card-body { padding: 1.2rem; }

/* Bootstrap claro → tema escuro (evita blocos brancos) */
.list-group,
.list-group-item {
    background-color: transparent;
    border-color: var(--atp-border);
    color: var(--atp-text);
}

.list-group-item {
    background-color: var(--atp-card);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--atp-bg-elevated);
    color: var(--atp-text);
}

.list-group-item.active,
.list-group-item-action.active {
    background-color: var(--atp-accent-soft);
    border-color: rgba(255, 0, 51, 0.35);
    color: #fff;
    z-index: 1;
}

.list-group-flush > .list-group-item {
    border-width: 0 0 1px;
}

.list-group-flush > .list-group-item:last-child {
    border-bottom-width: 0;
}

.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--atp-text);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--atp-text);
    --bs-table-border-color: var(--atp-border);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-bg: transparent;
}

.form-select option {
    background: var(--atp-bg);
    color: var(--atp-text);
}

/* Settings form — colunas compactas, altura equilibrada */
.admin-settings-form {
    max-width: 960px;
}

.admin-settings-form > [class*="col-"] {
    min-width: 0;
}

.admin-settings-form .card {
    width: 100%;
}

.admin-settings-actions {
    margin-top: 0.25rem;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--atp-card);
    border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius);
    padding: 1.1rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--stat-color, var(--atp-accent));
    opacity: 0.75;
}

.stat-card--red { --stat-color: #ff0033; }
.stat-card--blue { --stat-color: #3b82f6; }
.stat-card--purple { --stat-color: #8b5cf6; }
.stat-card--green { --stat-color: #10b981; }

.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--stat-color, var(--atp-accent));
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--atp-muted);
    font-weight: 500;
}

.stat-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0.15rem;
}

.stat-card-value.is-on { color: var(--atp-success); }
.stat-card-value.is-off { color: var(--atp-muted); }

/* Checklist */
.checklist-grid { display: grid; gap: 0.55rem; }

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--atp-bg-elevated);
    border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius-sm);
}

.checklist-status {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.checklist-status.ok {
    background: rgba(16, 185, 129, 0.12);
    color: var(--atp-success);
}

.checklist-status.pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--atp-warning);
}

.checklist-text {
    flex: 1;
    font-size: 0.875rem;
}

.checklist-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ff4d6d;
    text-decoration: none;
    white-space: nowrap;
}

.checklist-action:hover { color: var(--atp-accent); }

.hint-box {
    background: var(--atp-card);
    border: 1px solid var(--atp-border);
    border-radius: var(--atp-radius);
    padding: 1rem 1.2rem;
    font-size: 0.875rem;
    color: var(--atp-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.hint-box > i {
    color: var(--atp-accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.hint-box a {
    color: var(--atp-text);
    font-weight: 600;
    text-decoration: none;
}

.hint-box a:hover { color: #ff4d6d; }

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.status-pill.ok {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.status-pill.fail {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.badge-short {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.28em 0.6em;
    border-radius: 6px;
}

.badge-video {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.28em 0.6em;
    border-radius: 6px;
}

/* Forms */
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    background: var(--atp-bg);
    border: 1px solid var(--atp-border-strong);
    border-radius: var(--atp-radius-sm);
    color: var(--atp-text);
    font-size: 0.875rem;
    padding: 0.52rem 0.8rem;
}

.form-control:focus, .form-select:focus {
    background: var(--atp-bg);
    border-color: var(--atp-accent);
    color: var(--atp-text);
    box-shadow: 0 0 0 3px var(--atp-accent-soft);
}

.form-text { color: var(--atp-muted) !important; font-size: 0.78rem; }

.form-check-input {
    background-color: var(--atp-bg);
    border-color: var(--atp-border-strong);
}

.form-check-input:checked {
    background-color: var(--atp-accent);
    border-color: var(--atp-accent);
}

code {
    font-size: 0.8rem;
    background: rgba(255, 0, 51, 0.08);
    color: #ff8fa3;
    padding: 0.12rem 0.38rem;
    border-radius: 5px;
}

/* Buttons */
.btn {
    border-radius: var(--atp-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(145deg, #ff1a47, #cc0028);
    border: none;
    box-shadow: 0 3px 12px var(--atp-accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #ff3355, #e6002f);
}

.btn-outline-light {
    border-color: var(--atp-border-strong);
    color: var(--atp-text);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--atp-border-strong);
    color: #fff;
}

.btn-outline-light.active,
.btn-outline-light:active,
.btn-check:checked + .btn-outline-light {
    background: var(--atp-accent-soft) !important;
    border-color: rgba(255, 0, 51, 0.45) !important;
    color: #fff !important;
    box-shadow: none;
}

.btn-title-option {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.45;
    padding: 0.75rem 1rem;
    height: auto !important;
    min-height: auto;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Tables */
.table { color: var(--atp-text); font-size: 0.875rem; margin-bottom: 0; }

.table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--atp-muted);
    border-bottom-color: var(--atp-border);
    padding: 0.7rem 1rem;
    background: var(--atp-bg-elevated);
}

.table tbody td {
    padding: 0.7rem 1rem;
    border-bottom-color: var(--atp-border);
    vertical-align: middle;
}

.table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.text-muted { color: var(--atp-muted) !important; }
hr { border-color: var(--atp-border); opacity: 1; }

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--atp-muted);
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.65rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(255, 0, 51, 0.14), transparent 60%),
        var(--atp-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--atp-card);
    border: 1px solid var(--atp-border);
    border-radius: calc(var(--atp-radius) + 2px);
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--atp-border);
}

.auth-card-header .admin-brand-icon {
    margin: 0 auto 1rem;
}

.auth-card-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.auth-card-body { padding: 1.75rem 2rem 2rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .admin-shell {
        margin-left: 0;
    }

    .admin-menu-btn {
        display: inline-flex;
    }

    .admin-topbar {
        padding: 0 1rem;
    }

    .admin-main {
        padding: 1rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-footer-inner {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar-end {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-sub {
        display: none;
    }

    .footer-copy {
        display: none;
    }
}

/* —— Modal confirmação —— */
.atp-modal {
    background: var(--atp-card);
    border: 1px solid var(--atp-border-strong);
    border-radius: var(--atp-radius);
    color: var(--atp-text);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.atp-modal .modal-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.atp-modal .modal-body p {
    color: var(--atp-muted);
    line-height: 1.6;
}

/* —— Overlay publicação —— */
.atp-publishing-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 7, 10, 0.82);
    backdrop-filter: blur(6px);
}

.atp-publishing-overlay[hidden] {
    display: none !important;
}

body.atp-busy {
    overflow: hidden;
}

.atp-publishing-card {
    width: 100%;
    max-width: 420px;
    background: var(--atp-card);
    border: 1px solid var(--atp-border-strong);
    border-radius: calc(var(--atp-radius) + 2px);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.atp-publishing-icon {
    margin-bottom: 1rem;
}

.atp-publishing-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.atp-publishing-text {
    color: var(--atp-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.atp-publishing-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.atp-publishing-progress .progress-bar {
    border-radius: 999px;
}

.atp-publishing-hint {
    font-size: 0.75rem;
    color: var(--atp-muted);
    margin: 0;
}

/* —— File input personalizado —— */
.atp-file-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.atp-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.atp-file-input-btn {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.atp-file-input-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--atp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atp-file-input-name.has-file {
    color: var(--atp-text);
    font-weight: 500;
}
