/* ============================================================
   VOULUTAR — Design System Premium
   Paleta: Crimson/Coral + Preto Profundo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    /* Brand */
    --accent:           #E63946;
    --accent-hover:     #CC2F3C;
    --accent-light:     #FF6B6B;
    --accent-glow:      rgba(230, 57, 70, 0.22);
    --accent-glow-lg:   rgba(230, 57, 70, 0.12);

    /* Sidebar */
    --sidebar-bg:       #0D0D14;
    --sidebar-surface:  #16161F;
    --sidebar-border:   rgba(255,255,255,0.06);
    --sidebar-text:     #8A8A9A;
    --sidebar-hover:    rgba(255,255,255,0.06);
    --sidebar-active:   rgba(230, 57, 70, 0.15);
    --sidebar-active-text: #FF6B6B;

    /* Content */
    --bg:               #F4F5F8;
    --surface:          #FFFFFF;
    --surface-2:        #F9FAFB;
    --border:           #E8EAF0;
    --border-hover:     #D0D3E0;

    /* Text */
    --text:             #111118;
    --text-2:           #4B4D63;
    --text-3:           #8A8C9E;

    /* Status */
    --status-success:   #10B981;
    --status-warning:   #F59E0B;
    --status-danger:    #EF4444;
    --status-info:      #6366F1;

    /* Shadows */
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
    --shadow-accent: 0 4px 20px var(--accent-glow);

    /* Radii */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-full: 9999px;

    /* Sidebar width */
    --sidebar-w: 260px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    margin: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Layout Shell ──────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-right: 1px solid var(--sidebar-border);
}

/* Logo Area */
.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: var(--shadow-accent);
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-logo-badge {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent-glow);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(230, 57, 70, 0.25);
    margin-left: auto;
}

.sidebar-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 12px 0;
    padding: 11px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.035);
}

.sidebar-identity-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(230,57,70,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.sidebar-identity-copy {
    min-width: 0;
}

.sidebar-identity-copy strong,
.sidebar-identity-copy span,
.sidebar-identity-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-identity-copy strong {
    color: #fff;
    font-size: 12px;
    font-weight: 650;
}

.sidebar-identity-copy span {
    margin-top: 3px;
    color: var(--accent-light);
    font-size: 10.5px;
    font-weight: 650;
}

.sidebar-identity-copy small {
    margin-top: 4px;
    color: var(--sidebar-text);
    font-size: 10px;
}

.sidebar-identity-copy i {
    margin-right: 3px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 12px 20px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sidebar-text);
    padding: 16px 8px 6px;
    opacity: 0.7;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}

.sidebar-link .link-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link:hover .link-icon {
    background: rgba(255,255,255,0.1);
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
}

.sidebar-link.active .link-icon {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-light);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* Close button mobile */
.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
}

/* Bottom of sidebar */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-footer .sidebar-link {
    margin-bottom: 0;
}

/* ── Main Content ───────────────────────────────────────────── */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    padding: 6px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    line-height: 1;
}

.topbar-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-breadcrumb span {
    color: var(--text-3);
    font-weight: 400;
}

.topbar-spacer { flex: 1; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: none;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    font-size: 15px;
}

.topbar-icon-btn:hover {
    background: var(--bg);
    border-color: var(--border-hover);
    color: var(--text);
}

/* User menu */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-menu-btn:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    z-index: 200;
}

.user-dropdown a, .user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.12s;
    font-weight: 500;
}

.user-dropdown a:hover, .user-dropdown button:hover {
    background: var(--bg);
}

.user-dropdown .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.user-dropdown .danger { color: var(--accent); }
.user-dropdown .danger:hover { background: rgba(230,57,70,0.07); }

/* ── Page Content ───────────────────────────────────────────── */
.page-content {
    padding: 28px 28px 40px;
    flex: 1;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-3);
    margin: 4px 0 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card-saas {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-saas:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card-saas-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    color: inherit;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon-red    { background: rgba(230, 57, 70, 0.1);  color: var(--accent); }
.stat-icon-green  { background: rgba(16, 185, 129, 0.1); color: var(--status-success); }
.stat-icon-blue   { background: rgba(99, 102, 241, 0.1); color: var(--status-info); }
.stat-icon-amber  { background: rgba(245, 158, 11, 0.1); color: var(--status-warning); }

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-top: 2px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 16px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.17s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    border-color: transparent;
    color: var(--text-3);
}

.btn-danger:hover {
    background: rgba(230, 57, 70, 0.08);
    color: var(--accent);
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-sm);
    justify-content: center;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    appearance: none;
}

.form-control:hover { border-color: var(--border-hover); }
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-3); }

.form-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 5px;
}

/* Input group */
.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    flex: 1;
}

.input-group .input-group-btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--border);
    border-left: 0;
    background: var(--bg);
    padding: 0 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-3);
    transition: background 0.15s;
    font-size: 14px;
}

.input-group .input-group-btn:hover {
    background: var(--border);
    color: var(--text);
}

/* File upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.file-upload-area:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.03);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-premium {
    width: 100%;
    border-collapse: collapse;
}

.table-premium th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-premium td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--text);
}

.table-premium tbody tr:last-child td {
    border-bottom: none;
}

.table-premium tbody tr {
    transition: background 0.12s;
}

.table-premium tbody tr:hover {
    background: var(--surface-2);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-draft    { background: rgba(139,141,163,0.1); color: #8B8DA3; border: 1px solid rgba(139,141,163,0.2); }
.badge-active   { background: rgba(16,185,129,0.1);  color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.badge-upcoming { background: rgba(99,102,241,0.1);  color: #6366F1; border: 1px solid rgba(99,102,241,0.2); }
.badge-closed   { background: rgba(239,68,68,0.1);   color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }

/* Belt badges */
.belt-branca  { background: #f5f5f5;   color: #555;   border: 1px solid #ddd; }
.belt-azul    { background: #dbeafe;   color: #1d4ed8; border: 1px solid #93c5fd; }
.belt-roxa    { background: #ede9fe;   color: #7c3aed; border: 1px solid #c4b5fd; }
.belt-marrom  { background: #fef3c7;   color: #92400e; border: 1px solid #fcd34d; }
.belt-preta   { background: #1f2937;   color: #f9fafb; border: 1px solid #374151; }

/* ── Avatar ──────────────────────────────────────────────────── */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #E8EAF0 0%, #D0D3E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-3);
    flex-shrink: 0;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-3);
    margin: 0 auto 20px;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-3);
    margin: 0 0 24px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Flash Messages ──────────────────────────────────────────── */
.flash-success, .flash-error, .flash-warning, .flash-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid;
}

.flash-success { background: rgba(16,185,129,0.08); color: #065F46; border-color: rgba(16,185,129,0.2); }
.flash-error   { background: rgba(239,68,68,0.08);  color: #991B1B; border-color: rgba(239,68,68,0.2);  }
.flash-warning { background: rgba(245,158,11,0.08); color: #92400E; border-color: rgba(245,158,11,0.2); }
.flash-info    { background: rgba(99,102,241,0.08); color: #3730A3; border-color: rgba(99,102,241,0.2);  }

.message.success { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-bottom: 20px; background: rgba(16,185,129,0.08); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.message.error   { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-bottom: 20px; background: rgba(239,68,68,0.08);  color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.pagination li a:hover {
    background: var(--bg);
    border-color: var(--border);
}

.pagination li.active a,
.pagination li.current a {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination li.disabled span {
    color: var(--text-3);
    cursor: default;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.35s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in { animation: fadeIn 0.25s ease both; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }

/* ── LOGIN Layout ────────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: flex;
}

.login-art {
    flex: 0 0 46%;
    background: var(--sidebar-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.login-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 30% 20%, rgba(230, 57, 70, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 60%);
}

.login-art-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.login-art-logo {
    position: absolute;
    top: 40px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.login-art-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.login-art-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-art-content {
    position: relative;
    z-index: 2;
}

.login-art-tagline {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.login-art-tagline span {
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-art-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    max-width: 340px;
}

.login-art-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-art-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.login-art-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--accent);
    flex-shrink: 0;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--bg);
}

.login-form-box {
    width: 100%;
    max-width: 400px;
}

.login-form-box h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.login-form-box p {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 32px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-art { display: none; }
    .login-form-side { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 100;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .topbar-toggle { display: flex; }
    .sidebar-close-btn { display: block; }

    .page-content { padding: 20px 16px 32px; }

    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }

    /* Breadcrumb: truncar em mobile para evitar overflow */
    .topbar-breadcrumb {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        font-size: 12px;
    }

    /* Topbar: padding reduzido e gap menor */
    .topbar { padding: 0 12px; gap: 8px; }
}


@media (max-width: 480px) {
    .page-header { flex-direction: column; align-items: flex-start; }
}
.pub-flash-success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: green;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-flash-error {
    background: rgba(230,57,70,0.12);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #FF8A8A;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media print {
    .admin-footer {
        display: none !important;
    }
}