* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background:#0f1923; color:#e0e0e0; min-height:100vh; }
.login-body { display:flex; justify-content:center; align-items:center; background:linear-gradient(135deg, #0a1628, #1a2940); }
.login-container { width:100%; max-width:420px; padding:20px; }
.login-card { background:#1a2940; border-radius:12px; padding:40px; box-shadow:0 8px 32px rgba(0,0,0,0.4); border:1px solid #2a3f5f; }
.login-header { text-align:center; margin-bottom:30px; }
.server-icon { font-size:48px; margin-bottom:10px; }
.login-header h1 { font-size:22px; color:#4fc3f7; margin-bottom:5px; }
.login-header p { font-size:13px; color:#8899aa; }
.input-group { margin-bottom:18px; }
.input-group label { display:block; font-size:13px; color:#8899aa; margin-bottom:5px; }
.input-group input { width:100%; padding:12px 14px; border:1px solid #2a3f5f; border-radius:8px; background:#0f1923; color:#e0e0e0; font-size:15px; outline:none; transition:border-color 0.3s; }
.input-group input:focus { border-color:#4fc3f7; }
.btn-login { width:100%; padding:13px; background:#4fc3f7; color:#0a1628; border:none; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; transition:background 0.3s; }
.btn-login:hover { background:#29b6f6; }
.login-error { background:rgba(244,67,54,0.15); color:#f44336; padding:10px; border-radius:6px; margin-bottom:15px; font-size:13px; text-align:center; }
.login-footer { text-align:center; margin-top:20px; font-size:12px; color:#556677; }
.status-dot { display:inline-block; width:8px; height:8px; background:#4caf50; border-radius:50%; margin-right:5px; vertical-align:middle; }
.top-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 24px; background:#1a2940; border-bottom:1px solid #2a3f5f; position:sticky; top:0; z-index:100; }
.top-left { display:flex; align-items:center; gap:12px; }
.top-left h1 { font-size:16px; color:#e0e0e0; font-weight:500; }
.server-icon-small { font-size:20px; }
.top-right { display:flex; align-items:center; gap:15px; }
#clock { font-size:13px; color:#8899aa; }
.badge { padding:4px 12px; border-radius:12px; font-size:11px; font-weight:600; }
.badge-online { background:rgba(76,175,80,0.2); color:#4caf50; border:1px solid rgba(76,175,80,0.4); }
.btn-logout { padding:6px 16px; background:transparent; color:#f44336; border:1px solid #f44336; border-radius:6px; cursor:pointer; font-size:12px; transition:all 0.3s; }
.btn-logout:hover { background:#f44336; color:#fff; }
.dashboard { padding:20px 24px; max-width:1400px; margin:0 auto; }
.card-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:16px; }
.card { background:#1a2940; border-radius:10px; padding:18px; border:1px solid #2a3f5f; }
.card-metric { text-align:center; }
.card-title { font-size:13px; color:#8899aa; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; }
.card-value { font-size:20px; font-weight:600; color:#4fc3f7; }
.card-wide { grid-column:span 2; }
.card-full { grid-column:span 4; }
.progress-container { width:100%; height:8px; background:#0f1923; border-radius:4px; margin-bottom:10px; overflow:hidden; }
.progress-bar { height:100%; background:linear-gradient(90deg, #4caf50, #8bc34a); border-radius:4px; transition:width 0.6s ease; }
.progress-ram { background:linear-gradient(90deg, #2196f3, #03a9f4); }
.progress-bar.warning { background:linear-gradient(90deg, #ff9800, #ffc107); }
.progress-bar.danger { background:linear-gradient(90deg, #f44336, #ff5722); }
.card-detail { display:flex; gap:20px; font-size:13px; color:#8899aa; }
.card-detail strong { color:#e0e0e0; }
.card-table { overflow-x:auto; font-size:13px; }
.card-table table { width:100%; border-collapse:collapse; }
.card-table th { text-align:left; padding:8px 10px; color:#4fc3f7; border-bottom:1px solid #2a3f5f; font-weight:500; font-size:12px; text-transform:uppercase; }
.card-table td { padding:7px 10px; border-bottom:1px solid rgba(42,63,95,0.5); }
.card-table tr:hover { background:rgba(79,195,247,0.05); }
.log-select { background:#0f1923; color:#e0e0e0; border:1px solid #2a3f5f; padding:4px 10px; border-radius:6px; font-size:12px; cursor:pointer; }
.log-content { background:#0a1628; border:1px solid #2a3f5f; border-radius:8px; padding:14px; font-size:12px; font-family:'Fira Code','Consolas',monospace; max-height:400px; overflow-y:auto; line-height:1.6; color:#aab; white-space:pre-wrap; word-break:break-all; }
.status-active { color:#4caf50; font-weight:600; }
.status-inactive { color:#888; }
.status-failed { color:#f44336; font-weight:600; }
.step2-info { text-align:center; margin-bottom:20px; padding:15px; background:rgba(79,195,247,0.1); border-radius:8px; }
.email-icon { font-size:36px; margin-bottom:8px; }
.step2-info p { font-size:13px; color:#8899aa; margin:0; }
.email-masked { color:#4fc3f7; font-weight:600; margin-top:5px !important; }
.code-input { text-align:center; font-size:24px !important; letter-spacing:12px; font-weight:600; }
.resend-container { text-align:center; margin-top:15px; }
.btn-resend { background:transparent; border:none; color:#8899aa; font-size:12px; cursor:pointer; padding:8px; }
.btn-resend:disabled { color:#556677; cursor:not-allowed; }
.btn-resend:not(:disabled) { color:#4fc3f7; }
.nav-back { color:#4fc3f7; text-decoration:none; font-size:18px; margin-right:8px; }
.nav-back:hover { color:#29b6f6; }
.filters { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.filter-group { display:flex; align-items:center; gap:8px; }
.filter-group label { font-size:13px; color:#8899aa; }
.btn-refresh { padding:8px 20px; background:#4fc3f7; color:#0a1628; border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; transition:background 0.3s; }
.btn-refresh:hover { background:#29b6f6; }
.chart-container { position:relative; height:280px; }
.svc-badge { padding:3px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.svc-ssh { background:rgba(79,195,247,0.15); color:#4fc3f7; }
.svc-imap { background:rgba(255,152,0,0.15); color:#ff9800; }
.svc-smtp { background:rgba(156,39,176,0.15); color:#ce93d8; }
.svc-fail2ban { background:rgba(244,67,54,0.15); color:#f44336; }
.ip-clickable { color:#4fc3f7; cursor:pointer; text-decoration:underline; text-decoration-style:dotted; font-family:'Fira Code',monospace; font-size:12px; }
.ip-clickable:hover { color:#29b6f6; background:rgba(79,195,247,0.1); border-radius:3px; padding:1px 4px; }
.geo-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); display:flex; justify-content:center; align-items:center; z-index:1000; }
.geo-modal-content { background:#1a2940; border:1px solid #2a3f5f; border-radius:12px; padding:24px; width:90%; max-width:480px; max-height:90vh; overflow-y:auto; position:relative; }
.geo-modal-close { position:absolute; top:12px; right:16px; font-size:24px; color:#8899aa; cursor:pointer; }
.geo-modal-close:hover { color:#f44336; }
.geo-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid #2a3f5f; }
.geo-flag { font-size:42px; }
.geo-header h3 { color:#4fc3f7; font-size:18px; margin:0; font-family:'Fira Code',monospace; }
.geo-header p { color:#8899aa; font-size:13px; margin:4px 0 0; }
.geo-details { display:flex; flex-direction:column; gap:8px; }
.geo-row { display:flex; justify-content:space-between; font-size:13px; padding:6px 0; border-bottom:1px solid rgba(42,63,95,0.3); }
.geo-row span:first-child { color:#8899aa; }
.geo-row span:last-child { color:#e0e0e0; font-weight:500; }
.ip-manager { margin-top:10px; }
.ip-manager-form { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:15px; }
.ip-input { background:#0f1923; color:#e0e0e0; border:1px solid #2a3f5f; padding:8px 12px; border-radius:6px; font-size:13px; font-family:'Fira Code',monospace; outline:none; width:160px; }
.ip-input:focus { border-color:#4fc3f7; }
.ip-result { padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:15px; }
.ip-result-ok { background:rgba(76,175,80,0.15); color:#4caf50; border:1px solid rgba(76,175,80,0.3); }
.ip-result-err { background:rgba(244,67,54,0.15); color:#f44336; border:1px solid rgba(244,67,54,0.3); }
.ip-banned-list h4 { font-size:13px; color:#8899aa; margin-bottom:10px; font-weight:500; }
.banned-grid { display:flex; flex-wrap:wrap; gap:8px; }
.banned-badge { display:flex; align-items:center; gap:8px; background:rgba(244,67,54,0.1); border:1px solid rgba(244,67,54,0.3); border-radius:6px; padding:6px 10px; }
.banned-ip { font-family:'Fira Code',monospace; font-size:12px; color:#f44336; font-weight:600; }
.banned-jail { font-size:11px; color:#8899aa; background:rgba(42,63,95,0.5); padding:2px 6px; border-radius:4px; }
.btn-unban-mini { background:#4caf50; color:#fff; border:none; border-radius:4px; width:20px; height:20px; font-size:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.btn-unban-mini:hover { background:#66bb6a; }
#geoLoading { text-align:center; padding:40px; color:#8899aa; }
@media (max-width:1024px) { .card-row { grid-template-columns:repeat(2,1fr); } .card-wide,.card-full { grid-column:span 2; } }
@media (max-width:640px) { .card-row { grid-template-columns:1fr; } .card-wide,.card-full { grid-column:span 1; } .top-bar { flex-direction:column; gap:10px; } }
