:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); }

/* Layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: white; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 2rem; }

/* Nav */
.nav-item { padding: 0.8rem 1.5rem; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.8rem; transition: 0.2s; }
.nav-item:hover, .nav-item.active { background: #eef2ff; color: var(--primary); border-right: 3px solid var(--primary); }
.nav-logo { font-size: 1.4rem; font-weight: 800; padding: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }

/* Components */
.card { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.btn { padding: 0.6rem 1.2rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 500; transition: 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }

.input-group { margin-bottom: 1rem; }
.input-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.input { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

/* Badges */
.badge { padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.badge-high { background: #d1fae5; color: #065f46; }
.badge-mid { background: #fef3c7; color: #92400e; }
.badge-low { background: #fee2e2; color: #991b1b; }

/* Toast */
.toast { position: fixed; bottom: 20px; right: 20px; background: #1f2937; color: white; padding: 1rem; border-radius: 6px; display: none; animation: slideIn 0.3s; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Loader */
.skeleton { background: #e5e7eb; height: 20px; margin-bottom: 0.5rem; border-radius: 4px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Utilities */
.hidden { display: none; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.text-right { text-align: right; }