:root {
	--bni-red:       #CC0000;
	--bni-dark-red:  #8B0000;
	--bni-light-red: #FF4444;
	--white:         #FFFFFF;
	--off-white:     #F8F4F4;
	--gray-100:      #F5F5F5;
	--gray-200:      #E8E8E8;
	--gray-600:      #666666;
	--gray-800:      #222222;
	--shadow:        0 4px 20px rgba(0,0,0,0.15);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: var(--off-white);
	color: var(--gray-800);
	min-height: 100vh;
}

/* Navigation */
.navbar {
	background: var(--bni-red);
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	box-shadow: var(--shadow);
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--white);
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.navbar-brand img {
	height: 36px;
}

.navbar-brand span {
	font-size: 1.5rem;
}

.nav-links {
	display: flex;
	gap: 8px;
}

.nav-link {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
	background: rgba(255,255,255,0.2);
	color: var(--white);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.1s, opacity 0.2s, box-shadow 0.2s;
	text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
	background: var(--bni-red);
	color: var(--white);
	box-shadow: 0 2px 8px rgba(204,0,0,0.35);
}

.btn-primary:hover:not(:disabled) {
	background: var(--bni-dark-red);
	box-shadow: 0 4px 14px rgba(204,0,0,0.45);
}

.btn-secondary {
	background: var(--gray-200);
	color: var(--gray-800);
}

.btn-secondary:hover:not(:disabled) { background: #d8d8d8; }

.btn-danger {
	background: transparent;
	color: var(--bni-red);
	border: 1.5px solid var(--bni-red);
}

.btn-danger:hover:not(:disabled) {
	background: var(--bni-red);
	color: var(--white);
}

.btn-sm {
	padding: 5px 12px;
	font-size: 0.8rem;
}

/* Modal */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.modal-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.modal {
	background: var(--white);
	border-radius: 16px;
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	transform: scale(0.92);
	transition: transform 0.25s;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.modal-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--bni-red);
}

.modal-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--gray-600);
	padding: 4px 8px;
	border-radius: 6px;
	line-height: 1;
}

.modal-close:hover { background: var(--gray-100); }

/* Forms */
.form-group {
	margin-bottom: 1rem;
}

.form-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gray-600);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid var(--gray-200);
	border-radius: 8px;
	font-size: 0.95rem;
	background: var(--white);
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.form-input:focus {
	outline: none;
	border-color: var(--bni-red);
	box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 1.5rem;
}

/* Metrics grid */
.metrics-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.metric-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.metric-label {
	font-size: 0.72rem;
	color: var(--gray-600);
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

.metric-input {
	width: 100%;
	text-align: center;
	padding: 6px 4px;
	border: 1.5px solid var(--gray-200);
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
}

.metric-input:focus {
	outline: none;
	border-color: var(--bni-red);
	box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

.metrics-section-title {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--bni-red);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
	margin-top: 1rem;
}
