/* ================= Shared ================= */
.gcp-btn {
	display: inline-block;
	border: none;
	padding: 11px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gcp-btn-primary { background: linear-gradient(90deg,#0b1f45,#1e5bb8); color: #fff; box-shadow: 0 6px 16px rgba(11,31,69,0.25); }
.gcp-btn-primary:hover { transform: translateY(-2px); }
.gcp-btn-outline { background: transparent; color: #0b1f45; border: 2px solid #0b1f45; }
.gcp-btn-outline:hover { background: #0b1f45; color: #fff; }
.gcp-btn-small { padding: 7px 14px; font-size: 12px; }
.gcp-btn-block { width: 100%; text-align: center; }
.gcp-link { background: none; border: none; color: #1e5bb8; cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
.gcp-link:hover { text-decoration: underline; }

/* ================= Login ================= */
.gcp-login-wrapper {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	font-family: 'Segoe UI', Arial, sans-serif;
}
.gcp-login-box {
	background: #fff;
	max-width: 420px;
	width: 100%;
	padding: 40px 34px;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(11,31,69,0.18);
	border-top: 6px solid #f5a623;
}
.gcp-login-brand { text-align: center; margin-bottom: 26px; }
.gcp-login-brand h2 { color: #0b1f45; font-size: 20px; margin: 0 0 4px; letter-spacing: 0.5px; }
.gcp-login-brand p { color: #6b7280; margin: 0; font-size: 14px; }
.gcp-field { margin-bottom: 18px; }
.gcp-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.gcp-field input, .gcp-field select, .gcp-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #dbe3f0;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s ease;
}
.gcp-field input:focus, .gcp-field select:focus, .gcp-field textarea:focus { border-color: #1e5bb8; }
.gcp-login-note { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 18px; }
.gcp-alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.gcp-alert-error { background: #fff1f0; color: #b32d2e; border: 1px solid #ffccc7; }

/* ================= Dashboard ================= */
.gcp-dashboard { font-family: 'Segoe UI', Arial, sans-serif; max-width: 1100px; margin: 20px auto; color: #1a1a1a; }
.gcp-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg,#0b1f45,#1e5bb8);
	padding: 22px 28px;
	border-radius: 14px;
	color: #fff;
	margin-bottom: 22px;
	flex-wrap: wrap;
	gap: 14px;
}
.gcp-dash-header h2 { margin: 0 0 4px; font-size: 22px; }
.gcp-centre-code-badge { margin: 0; background: rgba(255,255,255,0.15); display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; }
.gcp-dash-header .gcp-btn-outline { border-color: #fff; color: #fff; }
.gcp-dash-header .gcp-btn-outline:hover { background: #fff; color: #0b1f45; }

.gcp-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.gcp-tab-btn {
	background: #f0f3f9;
	border: none;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	color: #374151;
	transition: all 0.15s ease;
}
.gcp-tab-btn.active, .gcp-tab-btn:hover { background: linear-gradient(90deg,#0b1f45,#1e5bb8); color: #fff; }

.gcp-tab-panel { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.gcp-panel-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.gcp-panel-toolbar h3 { margin: 0; color: #0b1f45; }

.gcp-entry-form { background: #f7f9fd; border: 1px solid #e2e8f5; border-radius: 12px; padding: 22px; margin-bottom: 24px; }
.gcp-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcp-field-wide { grid-column: span 3; }
.gcp-photo-preview { width: 90px; height: 90px; border: 2px dashed #c3c4c7; border-radius: 6px; margin-bottom: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
.gcp-photo-preview img { max-width: 100%; max-height: 100%; }
.gcp-form-actions { margin-top: 20px; display: flex; gap: 10px; }

.gcp-subjects-editor { margin: 20px 0; }
.gcp-subjects-editor > label { display: block; font-weight: 700; color: #0b1f45; margin-bottom: 10px; }
.gcp-subject-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 8px; align-items: center; }
.gcp-subject-row input { padding: 9px 12px; border: 1.5px solid #dbe3f0; border-radius: 6px; font-size: 13px; }
.gcp-subj-remove { background: #fff1f0; color: #b32d2e; border: none; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 16px; }

.gcp-table-wrap { overflow-x: auto; }
.gcp-list-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gcp-list-table th { background: #0b1f45; color: #fff; padding: 12px 10px; text-align: left; }
.gcp-list-table td { padding: 10px; border-bottom: 1px solid #eef1f8; }
.gcp-list-table tr:hover { background: #f7f9fd; }
.gcp-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; }
.gcp-empty { text-align: center; color: #9ca3af; padding: 24px !important; }

/* ================= Modal ================= */
.gcp-modal-overlay { position: fixed; inset: 0; background: rgba(11,31,69,0.6); z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.gcp-modal-box { background: #f0f3f9; border-radius: 14px; padding: 20px; max-width: 700px; width: 100%; position: relative; }
.gcp-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; cursor: pointer; color: #374151; }

@media (max-width: 782px) {
	.gcp-form-grid { grid-template-columns: 1fr; }
	.gcp-field-wide { grid-column: span 1; }
	.gcp-subject-row { grid-template-columns: 1fr 1fr; }
}
