/* Minimal, modern, admissions-style theme inspired by IBA/NU portals */
:root {
	--brand-primary: #0a3d62;
	--brand-accent: #1e90ff;
	--brand-tdap: #0b5ea8;
	--text: #1f2937;
	--muted: #6b7280;
	--bg: #f7fafc;
	--card: #ffffff;
	--danger: #d90429;
	--success: #0f9d58;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
	color: var(--text);
	background: var(--bg);
}

.app-header {
	background: linear-gradient(135deg, #6b46c1, #8b5cf6, #a855f7);
	color: #fff;
	padding: 20px 0;
	box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.header-inner { display: flex; align-items: center; gap: 16px; }
.header-inner img { height: 48px; width: auto; }
.header-title { font-size: 20px; font-weight: 600; }
.header-sub { font-size: 13px; opacity: 0.9; }

.app-shell { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 24px 0 40px; }
.card { background: var(--card); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sidebar { padding: 16px; }
.sidebar h3 { margin: 0 0 12px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; margin-bottom: 6px; color: var(--text); }
.steps li.active { background: #e8f1fb; color: var(--brand-tdap); font-weight: 600; }
.steps .badge { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 999px; background: #eef2f7; font-size: 12px; }
.steps li.active .badge { background: var(--brand-tdap); color: #fff; }

.content { padding: 20px; }
.content h2 { margin: 0 0 8px; font-size: 22px; }
.content p.lead { margin: 0 0 20px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="date"], input[type="file"], select, textarea {
	padding: 12px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}
textarea { min-height: 110px; }

.actions { display: flex; justify-content: space-between; margin-top: 16px; }
.btn { appearance: none; border: none; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: 14px; }
.btn-primary { background: var(--brand-tdap); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-tdap); border: 1px solid var(--brand-tdap); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #e5e7eb; padding: 10px 8px; text-align: left; }
.table th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.notice { padding: 12px 14px; border-radius: 8px; background: #f1f5f9; color: var(--text); }
.notice.success { background: #e7f6ee; color: #0b6e4f; }
.notice.error { background: #fdecea; color: var(--danger); }

/* Alert styles */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid; }
.alert-danger { background: #fdecea; color: var(--danger); border-left-color: var(--danger); }
.alert-success { background: #e7f6ee; color: #0b6e4f; border-left-color: #0b6e4f; }

/* Required field styling */
label:has(+ input[required]), label:has(+ select[required]), label:has(+ textarea[required]) {
	color: var(--text);
	font-weight: 500;
}

/* Error state for form fields */
input:invalid, select:invalid, textarea:invalid {
	border-color: var(--danger);
	box-shadow: 0 0 0 1px var(--danger);
}

/* Date input specific styling */
input[type="date"]:invalid {
	background-color: #fef2f2;
}

/* Small text styling */
small {
	font-size: 12px;
	line-height: 1.4;
	margin-top: 2px;
}

/* Required field indicator */
label:has(+ input[required])::after, 
label:has(+ select[required])::after, 
label:has(+ textarea[required])::after {
	content: " *";
	color: var(--danger);
	font-weight: bold;
}

/* Footer styles */
.app-footer {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	padding: 30px 0;
	margin-top: 40px;
}

.footer-content {
	text-align: center;
}

.footer-line {
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--brand-tdap), #8b5cf6);
	margin: 0 auto 20px;
	border-radius: 2px;
}

.footer-content p {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
	font-weight: 500;
}

/* Welcome page styles */
.welcome-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	padding: 40px 0;
}

.welcome-content {
	text-align: center;
	max-width: 600px;
	width: 100%;
}

.welcome-content h2 {
	font-size: 32px;
	margin-bottom: 16px;
	color: var(--brand-primary);
	font-weight: 700;
}

.welcome-content .lead {
	font-size: 18px;
	margin-bottom: 40px;
	color: var(--muted);
	line-height: 1.6;
}

.welcome-form {
	margin-bottom: 40px;
}

.welcome-form .form-row {
	margin-bottom: 24px;
}

.welcome-form label {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 8px;
}

.welcome-form input[type="email"] {
	font-size: 16px;
	padding: 16px 20px;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 400px;
}

.welcome-form input[type="email"]:focus {
	border-color: var(--brand-tdap);
	box-shadow: 0 0 0 3px rgba(11, 94, 168, 0.1);
	outline: none;
}

.form-actions {
	margin-top: 32px;
}

.btn-large {
	padding: 16px 32px;
	font-size: 18px;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.btn-large:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(11, 94, 168, 0.3);
}

.welcome-info {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 14px;
}

.info-icon {
	font-size: 20px;
}

@media (max-width: 900px) {
	.app-shell { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
}


