/* WP Pajzs Monitor – közös stílus (Bootstrap 5 fölé) */
:root {
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --card-border-radius: 16px;
}
body { font-family: var(--bs-font-sans-serif); background-color: #f3f6f9; color: #3f4756; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: #1e293b; font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; transition: all 0.2s; }

.card { border: none; border-radius: var(--card-border-radius); box-shadow: var(--glass-shadow); background: #fff; margin-bottom: 2rem; overflow: hidden; }
.card-header { border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding: 1.25rem 1.5rem; font-weight: 600; }
.card-header.bg-gradient-primary { background: var(--primary-gradient); color: #fff; border-bottom: none; }

.btn { border-radius: 8px; font-weight: 500; padding: 0.6rem 1.2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); transition: all .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); }
.btn-sm { padding: 0.35rem 0.8rem; }
.btn-success { background-color: #10b981; border-color: #10b981; }
.btn-success:hover { background-color: #059669; border-color: #059669; }
.btn-warning { background-color: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background-color: #d97706; border-color: #d97706; color: #fff; }
.btn-outline-primary { border-color: #e2e8f0; color: #64748b; box-shadow: none; }
.btn-outline-primary:hover { background-color: #f8fafc; color: #0da5e9; border-color: #0da5e9; }
.btn-link { box-shadow: none; }
.btn-link:hover { transform: none; box-shadow: none; }

.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 600; background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.5rem; }
.table tbody td { vertical-align: middle; padding: 1.1rem 1.5rem; border-bottom: 1px solid #f1f5f9; font-size: .95rem; }
.table-hover tbody tr:hover { background-color: #f8fafc; }
.table-danger > td { background-color: #fef2f2 !important; }
.table-secondary > td { background-color: #f8fafc !important; }

.badge { padding: .5em .8em; border-radius: 6px; font-weight: 500; font-size: .75rem; letter-spacing: .02em; }
.bg-success { background-color: #dcfce7 !important; color: #166534; }
.bg-danger { background-color: #fee2e2 !important; color: #991b1b; }
.bg-warning { background-color: #fef3c7 !important; color: #92400e; }
.bg-secondary { background-color: #f1f5f9 !important; color: #475569; }
.bg-info { background-color: #e0f2fe !important; color: #075985; }
.badge.band-critical { background: #991b1b !important; color: #fff; }
.badge.band-high { background: #fee2e2 !important; color: #991b1b; }
.badge.band-medium { background: #fef3c7 !important; color: #92400e; }
.badge.band-low { background: #dcfce7 !important; color: #166534; }

.domain-link { font-weight: 600; color: #1e293b; font-size: 1.05rem; }
.domain-link:hover { color: #0d6efd; }
.external-link { color: #cbd5e1; margin-left: 8px; }
.external-link:hover { color: #64748b; }
.key-popup { background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); border-radius: 8px; padding: 12px; position: absolute; z-index: 100; max-width: 360px; font-family: 'Courier New', monospace; word-break: break-all; }
.alert { border: none; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); }
.text-muted { color: #64748b !important; }

.stat-card { transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; cursor: default; }
.stat-value.clickable { cursor: pointer; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 600; }
.stat-details { display: none; }
.stat-details.open { display: block; }

.log-box { max-height: 560px; overflow-y: auto; background-color: #f8fafc; }
.log-item { font-size: .85rem; border-bottom: 1px solid #e2e8f0; padding: 12px; background: #fff; }
.log-date { font-size: .75rem; color: #94a3b8; display: block; margin-bottom: 4px; }
.log-item.ev-danger { background: #fef2f2; border-left: 4px solid #dc2626; }
.log-item.ev-warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.log-item.ev-success { background: #f0fdf4; border-left: 4px solid #16a34a; }

.vuln-details summary { cursor: pointer; list-style: none; font-size: .85rem; color: #0d6efd; font-weight: 600; }
.vuln-details summary::-webkit-details-marker { display: none; }
.vuln-details summary::before { content: '▸ '; }
.vuln-details[open] summary::before { content: '▾ '; }
.vuln-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: .85rem; }
.vuln-list li { padding: 6px 0; border-top: 1px dashed #e2e8f0; }
.vuln-list .cvss { font-weight: 700; font-variant-numeric: tabular-nums; }
.diff-change { background-color: #fffbeb !important; }
.sysinfo dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; font-weight: 600; margin-top: 8px; }
.sysinfo dd { margin: 0; font-weight: 600; color: #1e293b; }
.mono { font-family: 'Courier New', monospace; font-size: .8rem; }

/* Belépő oldal */
body.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0b3182 0%, #0d6efd 55%, #29c6f3 100%); padding: 20px; }
.login-card { background: rgba(255,255,255,.96); border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.2); padding: 2.5rem; width: 100%; max-width: 420px; }
.login-title { font-weight: 700; color: #1e293b; margin-bottom: .5rem; }
.login-subtitle { color: #64748b; font-size: .9rem; margin-bottom: 2rem; }
.login-card .form-control { padding: .75rem 1rem; border-radius: 8px; }
.login-card .btn-primary { padding: .75rem; border-radius: 8px; font-weight: 600; width: 100%; background: var(--primary-gradient); border: none; }
