:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.hidden { display: none !important; }

/* Navbar */
nav {
    background-color: var(--card-bg);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Layouting */
#app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Portal Login */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 5vh;
}

@media (max-width: 768px) {
    .login-container { grid-template-columns: 1fr; }
}

.login-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.login-card h2 { margin-bottom: 0.5rem; color: var(--primary); }
.login-card p { margin-bottom: 1.5rem; color: var(--secondary); font-size: 0.9rem; }

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

#toggle-password {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    font-weight: bold;
}

/* Buttons */
button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary { background: var(--primary); color: white; width: 100%; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-large { background: var(--primary); color: white; padding: 1rem 2rem; font-size: 1.1rem; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; padding: 0.5rem 1rem;}

/* Content Pages */
.content-page {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.nav-buttons button { width: 48%; }

/* Drag and Drop Simulation */
.drag-container { display: flex; gap: 2rem; margin-top: 1rem; }
.draggables, .drop-zones { flex: 1; }
.draggable-item {
    background: var(--primary);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    cursor: grab;
}
.drop-zone {
    border: 2px dashed #cbd5e1;
    min-height: 100px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: #f8fafc;
}
.drop-zone h3 { font-size: 1rem; color: var(--secondary); margin-bottom: 10px;}

/* Evaluation & Dashboard */
.question-card { margin-bottom: 1.5rem; }
.question-card label { display: block; margin: 0.5rem 0; cursor: pointer; }
.score-display h1 { font-size: 4rem; color: var(--primary); }
.error-msg { color: var(--danger); font-size: 0.8rem; margin-top: 0.5rem; }

.table-container { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f1f5f9; }