:root { --primary: #6366f1; --primary-dark: #4f46e5; --accent: #8b5cf6; --bg-dark: #0f172a; --bg-light: #f1f5f9; --surface: #ffffff; --text-main: #0f172a; --text-muted: #64748b; --border: #e2e8f0; --success: #10b981; --danger: #ef4444; --radius: 16px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
html, body { background: var(--bg-light); color: var(--text-main); min-height: 100vh; margin: 0; font-size: 16px; overflow-x: hidden; }
.hidden { display: none !important; }
.login-wrapper { position: fixed; inset: 0; z-index: 9999; background: radial-gradient(circle at top right, #4f46e5, #0f172a); display: flex; align-items: center; justify-content: center; }
.login-box { background: rgba(255, 255, 255, 0.98); padding: 3rem; width: 100%; max-width: 420px; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); text-align: center; }
.logo-icon { width: 64px; height: 64px; background: var(--primary); color: white; font-size: 1.75rem; display: flex; align-items: center; justify-content: center; border-radius: 16px; margin: 0 auto 1.5rem; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); }
.login-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.login-header p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.5rem; }
input, select { width: 100%; padding: 0.9rem 1rem; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; outline: none; background: white; transition: 0.2s; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.custom-select-wrapper { position: relative; }
.custom-select-wrapper i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
select { appearance: none; cursor: pointer; }
.btn-login { width: 100%; background: var(--primary-dark); color: white; border: none; padding: 1.1rem; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-login:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn-login:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }
.error-text { color: var(--danger); font-size: 0.95rem; margin-top: 1rem; min-height: 1.2rem; font-weight: 500; }
.app-layout { display: flex; min-height: 100vh; width: 100%; position: relative; }
.sidebar { width: 300px; background: var(--bg-dark); color: white; display: flex; flex-direction: column; padding: 2rem; gap: 2rem; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.brand i { color: var(--primary); font-size: 1.5rem; }
.user-card { background: rgba(255, 255, 255, 0.08); padding: 1.2rem; border-radius: 16px; display: flex; align-items: center; gap: 15px; border: 1px solid rgba(255, 255, 255, 0.1); }
.user-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.user-meta h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.user-meta span { font-size: 0.85rem; opacity: 0.7; display: block; }
.menu { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.menu-item { padding: 1rem 1.2rem; border-radius: 12px; cursor: pointer; color: #94a3b8; display: flex; align-items: center; gap: 15px; transition: 0.2s; font-weight: 600; text-decoration: none; font-size: 1rem; }
.menu-item:hover { background: rgba(255,255,255,0.05); color: white; }
.menu-item.active { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); }
.logout-area button { width: 100%; background: none; border: 2px solid rgba(239, 68, 68, 0.3); color: #f87171; padding: 1rem; border-radius: 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.logout-area button:hover { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; }
.content { flex: 1; background: var(--bg-light); display: flex; flex-direction: column; min-width: 0; height: auto; }
.top-header { height: 90px; padding: 0 3rem; display: flex; align-items: center; justify-content: space-between; }
.top-header h2 { font-size: 2rem; font-weight: 800; color: var(--text-main); letter-spacing: -1px; }
.date-badge { background: white; padding: 0.6rem 1.2rem; border-radius: 50px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); box-shadow: var(--shadow); }
.view-container { padding: 0 3rem 2rem; flex: 1; overflow: visible; }
.app-footer { padding: 2rem 3rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); background: var(--bg-light); line-height: 1.5; margin-top: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.kpi-card { background: white; padding: 2rem; border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.8rem; position: relative; overflow: hidden; border: 1px solid white; }
.kpi-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; }
.kpi-value { font-size: 3.5rem; font-weight: 800; color: var(--bg-dark); line-height: 1; }
.kpi-card::after { content:''; position: absolute; bottom: 0; left: 0; height: 6px; width: 100%; }
.kpi-card.blue::after { background: var(--primary); }
.kpi-card.green::after { background: var(--success); }
.kpi-card.red::after { background: var(--danger); }
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 1200px) { .charts-row { grid-template-columns: 1fr; } }
.panel { background: white; padding: 2rem; border-radius: 24px; box-shadow: var(--shadow); height: 100%; border: 1px solid white; display: flex; flex-direction: column; }
.panel h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--bg-dark); font-weight: 700; }
.activity-list { display: flex; flex-direction: column; gap: 1rem; max-height: 400px; overflow-y: auto; flex: 1; }
.activity-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--bg-light); border-radius: 16px; font-size: 0.95rem; }
.audit-card { background: white; border-radius: 24px; padding: 3rem; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto; }
.section-head { font-size: 1.1rem; font-weight: 800; color: var(--primary); text-transform: uppercase; margin: 3rem 0 1.5rem; border-bottom: 2px solid var(--bg-light); padding-bottom: 0.8rem; letter-spacing: 0.5px; }
.section-head:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.grid-2 label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 0.6rem; }
.param-item { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem; background: white; border: 1px solid var(--border); border-radius: 16px; transition: 0.2s; }
.param-item:hover { border-color: var(--primary); background: #f8faff; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1); }
.param-item.is-fatal { border-left: 6px solid var(--danger); background: #fff5f5; }
.param-label strong { display: block; font-size: 1rem; color: var(--text-main); }
.param-label small { font-size: 0.85rem; color: var(--text-muted); }
.fatal-tag { background: var(--danger); color: white; padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-left: 8px; }
.radio-group { display: flex; align-items: center; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--text-main); font-size: 0.95rem; user-select: none; }
.radio-label input[type="radio"] { appearance: none; width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 50%; margin: 0; display: grid; place-content: center; transition: 0.2s; background: white; }
.radio-label input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; transform: scale(0); transition: 0.2s; background: white; }
.radio-label input[type="radio"]:checked { border-color: var(--primary); background: var(--primary); box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4); }
.radio-label input[type="radio"]:checked::before { transform: scale(1); }
.table-responsive { background: white; border-radius: 20px; box-shadow: var(--shadow); overflow-x: auto; width: 100%; border: 1px solid var(--border); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { background: #f8fafc; padding: 1.2rem; text-align: left; font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 1.2rem; border-bottom: 1px solid var(--border); color: var(--text-main); font-size: 1rem; font-weight: 500; }
tr:hover { background: #f8fafc; }
.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; }
.badge.pass { background: #dcfce7; color: #166534; }
.badge.fail { background: #fee2e2; color: #991b1b; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 0.8rem 1.5rem; font-weight: 600; cursor: pointer; border-radius: 12px; }
.btn-ghost:hover { background: var(--bg-light); border-color: var(--text-muted); }
.btn-icon { width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.2s; }
.btn-delete { background: #fee2e2; color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: white; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-card { background: white; width: 550px; border-radius: 28px; padding: 2.5rem; box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3); animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-header h3 { font-size: 1.6rem; font-weight: 800; }
.modal-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }
.multi-select { height: 120px; padding: 0.5rem; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.cs-card { background: white; padding: 2.5rem; border-radius: 24px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border); transition: 0.3s; }
.cs-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.cs-icon { width: 80px; height: 80px; background: #e0e7ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.cs-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--bg-dark); }
.cs-card p { color: var(--text-muted); line-height: 1.6; }