*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0f172a;--bg2: #1e293b;--bg3: #334155;--border: #334155;--text: #f1f5f9;--text2: #94a3b8;--primary: #3b82f6;--primary-h: #2563eb;--green: #22c55e;--red: #ef4444;--yellow: #f59e0b;--purple: #a855f7;--radius: 10px;--shadow: 0 4px 24px rgba(0,0,0,.4)}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;min-height:100vh}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--bg3);border-radius:3px}.layout{display:flex;min-height:100vh}.sidebar{width:220px;min-width:220px;background:var(--bg2);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:0;position:fixed;top:0;left:0;bottom:0;z-index:100}.sidebar-logo{padding:20px 16px 16px;font-size:15px;font-weight:700;color:var(--text);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}.sidebar-nav{padding:12px 0;flex:1}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 16px;color:var(--text2);cursor:pointer;border-radius:0;transition:all .15s;border:none;background:none;width:100%;text-align:left;font-size:13.5px;text-decoration:none}.nav-item:hover{background:var(--bg3);color:var(--text)}.nav-item.active{background:#3b82f626;color:var(--primary);font-weight:600}.nav-item .badge{margin-left:auto;background:var(--red);color:#fff;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:700}.sidebar-footer{padding:12px 16px;border-top:1px solid var(--border);color:var(--text2);font-size:12px}.main-content{margin-left:220px;flex:1;display:flex;flex-direction:column;min-height:100vh}.topbar{background:var(--bg2);border-bottom:1px solid var(--border);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50}.topbar-title{font-size:16px;font-weight:600}.topbar-actions{display:flex;gap:8px;align-items:center}.page{padding:24px}.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.card-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.card-title{font-weight:600;font-size:14px}.card-body{padding:20px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}.stat-card .val{font-size:28px;font-weight:700}.stat-card .lbl{color:var(--text2);font-size:12px;margin-top:2px}.stat-card.ok .val{color:var(--green)}.stat-card.ko .val{color:var(--red)}.stat-card.warn .val{color:var(--yellow)}.stat-card.info .val{color:var(--primary)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{background:var(--bg3);padding:10px 14px;text-align:left;color:var(--text2);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}td{padding:10px 14px;border-top:1px solid var(--border);vertical-align:middle}tr:hover td{background:#ffffff08}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.badge-ok{background:#22c55e26;color:var(--green)}.badge-ko{background:#ef444426;color:var(--red)}.badge-warn{background:#f59e0b26;color:var(--yellow)}.badge-info{background:#3b82f626;color:var(--primary)}.badge-gray{background:#94a3b81a;color:var(--text2)}.badge-crit{background:#ef444433;color:#fca5a5}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:7px;border:none;cursor:pointer;font-size:13px;font-weight:500;transition:all .15s;text-decoration:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-h)}.btn-ghost{background:transparent;color:var(--text2);border:1px solid var(--border)}.btn-ghost:hover{background:var(--bg3);color:var(--text)}.btn-danger{background:#ef444426;color:var(--red)}.btn-danger:hover{background:#ef444440}.btn-sm{padding:4px 10px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.form-group{margin-bottom:16px}label{display:block;font-size:12px;color:var(--text2);margin-bottom:5px;font-weight:500}input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=time],select,textarea{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:7px;color:var(--text);padding:8px 12px;font-size:13px;outline:none;transition:border-color .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary)}textarea{resize:vertical;min-height:80px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row.cols3{grid-template-columns:1fr 1fr 1fr}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:200;padding:20px}.modal{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;box-shadow:var(--shadow)}.modal-lg{max-width:900px}.modal-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal-title{font-weight:600;font-size:15px}.modal-body{padding:20px;overflow-y:auto;flex:1}.modal-footer{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.progress-bar{height:6px;background:var(--bg3);border-radius:3px;overflow:hidden}.progress-fill{height:100%;border-radius:3px;transition:width .3s}.progress-ok{background:var(--green)}.progress-warn{background:var(--yellow)}.progress-crit{background:var(--red)}.sites-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.site-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:16px;cursor:pointer;transition:border-color .15s}.site-card:hover{border-color:var(--primary)}.site-card.ko{border-left:3px solid var(--red)}.site-card.ok{border-left:3px solid var(--green)}.site-card.warn{border-left:3px solid var(--yellow)}.dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.dot-ok{background:var(--green);box-shadow:0 0 8px var(--green)}.dot-ko{background:var(--red);box-shadow:0 0 8px var(--red)}.dot-gray{background:var(--text2)}.dot-warn{background:var(--yellow)}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mb-4{margin-bottom:16px}.text-sm{font-size:12px}.text-muted{color:var(--text2)}.text-green{color:var(--green)}.text-red{color:var(--red)}.text-yellow{color:var(--yellow)}.w-full{width:100%}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.spin{animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.page-header h1{font-size:20px;font-weight:700}.alert-bar{padding:10px 16px;border-radius:7px;font-size:13px;margin-bottom:12px}.alert-bar.error{background:#ef444426;color:#fca5a5;border:1px solid rgba(239,68,68,.3)}.alert-bar.success{background:#22c55e26;color:#86efac;border:1px solid rgba(34,197,94,.3)}.empty-state{text-align:center;padding:48px;color:var(--text2)}.empty-state .icon{font-size:48px;margin-bottom:12px}@media(max-width:820px){.layout{display:block}.sidebar{position:static;width:100%;min-width:0;height:auto}.sidebar-nav{display:flex;overflow-x:auto;padding:8px}.nav-item{width:auto;white-space:nowrap;border-radius:7px}.sidebar-footer{display:none}.main-content{margin-left:0}.page{padding:16px}.page-header{align-items:stretch;flex-direction:column;gap:12px}.page-header .flex{flex-wrap:wrap}.page-header input,.page-header select{width:100%!important}.form-row,.form-row.cols3,.grid-2,.grid-3{grid-template-columns:1fr}.modal{max-height:94vh}}
