/* ===== Dashboard Styles - Credential Manager ===== */
/* Componentizado a partir de dashboard_template.py - Mantendo TODOS os estilos originais */

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

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a0a0f;
    --bg-primary: #0f1117;
    --bg-secondary: #161a23;
    --bg-card: #1c2029;
    --bg-hover: #252a36;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --accent-info: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d3548;
    --border-light: #3d4558;
    --nav-height: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 50%, #16213e 100%);
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo span {
    font-size: 3rem;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-error);
    color: var(--accent-error);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* ===== MAIN APP ===== */
.app-container {
    display: none;
}

.app-container.active {
    display: block;
}

/* ===== NAV TOP ===== */
.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand span {
    font-size: 1.5rem;
}

.nav-brand h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: none;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent);
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-stats {
    display: flex;
    gap: 1rem;
}

.nav-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.nav-stat .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-green { background: var(--accent-success); }
.dot-yellow { background: var(--accent-warning); }
.dot-red { background: var(--accent-error); }

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 180px;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
    color: var(--accent-error);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: var(--nav-height);
    padding: 1.5rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 0.99rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.79rem 0.99rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.card-header h2 {
    font-size: 0.76rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-body {
    padding: 0.99rem;
}

/* ===== GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

@media (max-width: 1200px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
}

.btn-success { background: var(--accent-success); color: white; }
.btn-warning { background: var(--accent-warning); color: black; }
.btn-danger { background: var(--accent-error); color: white; }
.btn-info { background: var(--accent-info); color: white; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: white;
}

/* ===== ACTION BUTTONS (Table) ===== */
.action-btns {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.login { background: linear-gradient(135deg, #f59e0b, #d97706); }
.action-btn.view { background: linear-gradient(135deg, #6366f1, #818cf8); }
.action-btn.refresh { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.action-btn.mfa { background: linear-gradient(135deg, #22c55e, #4ade80); }
.action-btn.edit { background: linear-gradient(135deg, #64748b, #94a3b8); }
.action-btn.delete { background: linear-gradient(135deg, #ef4444, #f87171); }
.action-btn.import { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.action-btn.logs { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* Tooltip */
.action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.6rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    margin-bottom: 4px;
}

.action-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== SCROLLABLE CARD ===== */
.card-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.card-scroll::-webkit-scrollbar {
    width: 6px;
}

.card-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.card-scroll::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.card-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== COMPACT ACCOUNT LIST ===== */
.account-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.68rem 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
}

.account-compact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s;
}

.account-compact:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%);
}

.account-compact:hover::before {
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

.account-compact:last-child {
    border-bottom: none;
}

.account-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.18rem 0.36rem;
    border-radius: 4px;
    min-width: 22px;
    text-align: center;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    flex: 1;
    min-width: 0;
}

.account-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.77rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-active { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-needs_mfa { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-error, .status-expired { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-needs_login { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

/* ===== GRADIENT BUTTONS ===== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-gradient-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-gradient-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-gradient-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-gradient-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-gradient-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ===== STYLED ACTION BUTTONS (UNIFORM SIZE) ===== */
.action-btn-group {
    display: flex;
    gap: 0.36rem;
    flex-wrap: nowrap;
}

.action-btn-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.27rem;
    min-width: 77px;
    padding: 0.41rem 0.63rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn-styled:hover {
    transform: translateY(-1px);
}

.action-btn-styled.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.action-btn-styled.primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.action-btn-styled.success {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.action-btn-styled.success:hover {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.action-btn-styled.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.action-btn-styled.warning:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.action-btn-styled.info {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.action-btn-styled.info:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.action-btn-styled.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.action-btn-styled.purple:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.action-btn-styled.gray {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35);
}

.action-btn-styled.gray:hover {
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.5);
}

.action-btn-styled.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.action-btn-styled.danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ===== SCREENSHOT MODAL ===== */
.screenshot-thumb {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

.screenshot-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.screenshot-full img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
}

/* ===== LOG HISTORY ===== */
.log-entry {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.log-action {
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 100px;
}

.log-action.login_started { color: var(--accent-info); }
.log-action.mfa_required { color: var(--accent-warning); }
.log-action.mfa_approved { color: var(--accent-success); }
.log-action.mfa_error { color: var(--accent-error); }
.log-action.cookies_updated { color: var(--accent); }

.log-message {
    color: var(--text-secondary);
    flex: 1;
}

.log-screenshot {
    flex-shrink: 0;
}

/* ===== INPUTS ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== TABLE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.table tr:hover td {
    background: var(--bg-hover);
}

.table-row-hover {
    transition: all 0.2s ease;
    position: relative;
}

.table-row-hover:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
}

.table-row-hover:hover td:first-child {
    box-shadow: inset 3px 0 0 0 var(--accent);
}

.email-cell {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.timestamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--accent-success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.badge-error { background: rgba(239, 68, 68, 0.15); color: var(--accent-error); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-info); }
.badge-muted { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

/* ===== STAT BOX ===== */
.stat-box {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.stat-value {
    font-size: 1.76rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ===== SECTION ===== */
.section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== MFA ALERT ===== */
.mfa-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mfa-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-warning);
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin: 1rem 0;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

/* ===== COOKIE BOX ===== */
.cookie-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cookie-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.cookie-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    word-break: break-all;
    color: var(--text-secondary);
    max-height: 60px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 6px;
}

/* ===== ALERTS LIST ===== */
.alert-item {
    padding: 0.35rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.22rem;
    border-left: 3px solid var(--accent-warning);
    font-size: 0.66rem;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item.error { border-left-color: var(--accent-error); }
.alert-item.success { border-left-color: var(--accent-success); }
.alert-item.info { border-left-color: var(--accent); }

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0.75rem;
}

.tab {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ===== LOADING ===== */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== ANIMAÇÕES DO CARD FUTURISTA ===== */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.8;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes corner-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(0, 0);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-10%, 10%);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* ===== ACTION BUTTONS ===== */
.action-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

.toast.success { border-left: 4px solid var(--accent-success); }
.toast.error { border-left: 4px solid var(--accent-error); }
.toast.warning { border-left: 4px solid var(--accent-warning); }
.toast.info { border-left: 4px solid var(--accent-info); }

/* ===== PROGRESS MODAL ===== */
.progress-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.progress-modal.active {
    display: flex;
}

.progress-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    min-width: 350px;
    max-width: 500px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.progress-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.progress-steps {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-step.active {
    color: var(--accent);
}

.progress-step.done {
    color: var(--accent-success);
}

.progress-step.error {
    color: var(--accent-error);
}

.step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.progress-step.pending .step-icon {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.progress-step.active .step-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    animation: pulse 1.5s infinite;
}

.progress-step.done .step-icon {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-success);
}

.progress-step.error .step-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-error);
}

.progress-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
}

.progress-result.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.progress-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.progress-result.mfa {
    display: block;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.result-mfa-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-warning);
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin: 1rem 0;
}

.progress-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== CONFIRM MODAL ===== */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.confirm-modal.active {
    display: flex;
}

.confirm-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    animation: zoomIn 0.2s ease-out;
}

.confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.confirm-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== API DOCUMENTATION ===== */
.api-endpoint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(45, 53, 72, 0.5);
    flex-wrap: wrap;
}

.api-endpoint:last-child {
    border-bottom: none;
}

.api-get, .api-post, .api-put, .api-delete {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    min-width: 36px;
    text-align: center;
}

.api-get {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-success);
}

.api-post {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.api-put {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-info);
}

.api-delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-error);
}

.api-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: auto;
}
