:root {
    --primary: #4f46e5;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --accent: #10b981;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--primary); }

.nav-links button {
    background: none; border: none; font-weight: 600; 
    margin-left: 1.5rem; cursor: pointer; color: #64748b;
}

.view { display: none; padding: 2rem 5%; animation: fadeIn 0.4s ease; }
.view.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

.card {
    background: white; padding: 2.5rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); max-width: 800px; margin: auto;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input {
    padding: 0.8rem; border: 1px solid #e2e8f0; border-radius: 10px;
    font-family: inherit; font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary); color: white; border: none;
    padding: 1rem 2rem; border-radius: 12px; font-weight: 700;
    cursor: pointer; transition: 0.3s; margin-top: 1rem;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1; transition: .4s; border-radius: 24px;
}
input:checked + .slider { background-color: var(--accent); }
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider:before { transform: translateX(26px); }

.toggle-area { 
    display: flex; align-items: center; gap: 15px; 
    margin: 1.5rem 0; padding: 1rem; background: #f1f5f9; border-radius: 12px;
}

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th { text-align: left; padding: 1rem; background: #f1f5f9; }
td { padding: 1rem; border-bottom: 1px solid #f1f5f9; }

.hidden { display: none; }
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); align-items:center; justify-content:center; }