/* ============================================================
   GYMMEESTER SCHOLENPORTAAL - Frontend CSS
   ============================================================
   Past in de Betheme thema-stijl. Wordt alleen geladen op
   pagina's met [gm_login], [gm_dashboard] of [gm_docent].
   ============================================================ */


/* === PORTAL: BETHEME SUBHEADER OVERRIDE === */

.gm-portal-page #Subheader {
	padding: 0px 0px 60px 0px;
}

/* === PORTAL: BASIS & LAYOUT === */

.gm-portal {
	padding: 40px 0 60px;
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.gm-portal *,
.gm-portal *::before,
.gm-portal *::after {
	box-sizing: border-box;
}

.gm-portal .section_wrapper {
	display: block;
}

.gm-portal h3 {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #1a1a1a;
}

.gm-portal h4 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	color: #1a1a1a;
}

.gm-portal h5 {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #666;
}

.gm-portal p {
	margin-bottom: 15px;
	color: #777;
	font-size: 15px;
}


/* === PORTAL: MELDINGEN === */

.gm-portal-message {
	padding: 16px 22px;
	border-radius: 8px;
	margin: 20px 0px;
	font-size: 14px;
	line-height: 1.6;
}

.gm-portal-message a {
	text-decoration: underline;
	font-weight: 600;
}

.gm-portal-error {
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	color: #991b1b;
}

.gm-portal-warning {
	background: #fffbeb;
	border-left: 4px solid #f59e0b;
	color: #92400e;
}

.gm-portal-info {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	color: #1e40af;
}

.gm-portal-success {
	background: #f0fdf4;
	border-left: 4px solid #22c55e;
	color: #166534;
}


/* === PORTAL: KAARTEN === */

.gm-portal-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 44px 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-portal-card-header {
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	text-align: center;
}

.gm-portal-card-header h3 {
	margin-bottom: 8px;
	font-size: 24px;
}

.gm-portal-card-header p {
	margin-bottom: 0;
	font-size: 14px;
}


/* === PORTAL: KNOPPEN === */

.gm-btn {
	display: inline-block;
	padding: 11px 28px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.2px;
	text-decoration: none !important;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gm-btn-primary {
	background: #f29102;
	color: #fff !important;
	border-color: #f29102;
	box-shadow: 0 2px 6px rgba(242, 145, 2, 0.3);
}

.gm-btn-primary:hover {
	background: #d97e00;
	border-color: #d97e00;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(242, 145, 2, 0.4);
	transform: translateY(-1px);
}

.gm-btn-outline {
	background: transparent;
	color: #555 !important;
	border-color: rgba(0, 0, 0, 0.15);
}

.gm-btn-outline:hover {
	border-color: #1b336e;
	color: #1b336e !important;
	background: rgba(27, 51, 110, 0.04);
}

.gm-btn-small {
	padding: 8px 20px;
	font-size: 13px;
	border-radius: 6px;
}

.gm-btn-download {
	background: #fef5e7;
	color: #f29102 !important;
	border-color: #fde0a8;
}

.gm-btn-download:hover {
	background: #f29102;
	color: #fff !important;
	border-color: #f29102;
}


/* === PORTAL: LOGIN FORMULIER === */

.gm-portal-login {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.gm-login-card {
	max-width: 440px;
	width: 100%;
	margin: 0 auto;
}

.gm-login-form .gm-form-group {
	margin-bottom: 20px;
}

.gm-login-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.gm-login-form input[type="text"],
.gm-login-form input[type="password"] {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #333 !important;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
	transition: all 0.2s ease;
}

.gm-login-form input[type="text"]:focus,
.gm-login-form input[type="password"]:focus {
	outline: none;
	border-color: #1b336e;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(27, 51, 110, 0.12);
}

.gm-form-remember {
	margin-bottom: 24px !important;
}

.gm-form-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 14px;
	color: #666;
	cursor: pointer;
}

.gm-form-remember input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
}

.gm-login-form .gm-btn {
	width: 100%;
	text-align: center;
	padding: 13px 28px;
	font-size: 16px;
}


/* === PORTAL: DASHBOARD HEADER === */

.gm-portal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 36px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-portal-header-left h3 {
	margin-bottom: 4px;
	font-size: 22px;
}

.gm-portal-header-left p {
	margin-bottom: 0;
	font-size: 14px;
}

.gm-portal-stats {
	display: flex;
	gap: 24px;
	margin-top: 8px;
}

.gm-portal-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #888;
}

.gm-portal-stat strong {
	font-size: 18px;
	font-weight: 700;
	color: #f29102;
}


/* === PORTAL: DOCENTEN GRID === */

.gm-docenten-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gm-docent-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-docent-card:hover {
	border-color: rgba(242, 145, 2, 0.3);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.gm-docent-card-link {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	text-decoration: none !important;
	color: inherit !important;
}

.gm-docent-card-avatar {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gm-docent-card-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gm-docent-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e8edf5, #c8d1e6);
	color: #1b336e;
	font-size: 24px;
	font-weight: 700;
}

.gm-docent-card-info {
	flex: 1;
	min-width: 0;
}

.gm-docent-card-name {
	margin-bottom: 3px !important;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
}

.gm-docent-card-role {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 4px;
}

.gm-docent-card-docs {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #aaa;
	background: #f5f5f5;
	padding: 2px 10px;
	border-radius: 20px;
}

.gm-docent-card-arrow {
	flex-shrink: 0;
	font-size: 22px;
	color: #ddd;
	transition: all 0.2s ease;
}

.gm-docent-card:hover .gm-docent-card-arrow {
	color: #f29102;
	transform: translateX(4px);
}


/* === PORTAL: BREADCRUMB === */

.gm-portal-breadcrumb {
	margin-bottom: 28px;
}

.gm-portal-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: #1b336e !important;
	text-decoration: none !important;
	padding: 6px 14px;
	background: #e8edf5;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.gm-portal-breadcrumb a:hover {
	color: #fff !important;
	background: #1b336e;
}


/* === PORTAL: DOCENTPROFIEL === */

.gm-docent-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
	padding: 44px 36px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	margin-bottom: 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-docent-profile-avatar {
	flex-shrink: 0;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gm-docent-profile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gm-docent-profile-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e8edf5, #c8d1e6);
	color: #1b336e;
	font-size: 52px;
	font-weight: 700;
}

.gm-docent-profile-info {
	flex: 1;
	width: 100%;
}

.gm-docent-profile-info h3 {
	margin-bottom: 6px;
	font-size: 24px;
}

.gm-docent-profile-role {
	display: inline-block;
	padding: 3px 14px;
	background: linear-gradient(135deg, #e8edf5, #c8d1e6);
	color: #1b336e;
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	margin-bottom: 16px;
	letter-spacing: 0.3px;
}

.gm-docent-profile-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
}

.gm-meta-item {
	font-size: 14px;
	color: #555;
	display: flex;
	align-items: center;
	gap: 6px;
}

.gm-meta-item strong {
	color: #333;
	font-weight: 600;
}


/* === PORTAL: DOCUMENTEN === */

.gm-docent-documents {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 12px;
	padding: 32px 36px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-docent-documents h4 {
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 24px;
}

.gm-doc-category {
	margin-bottom: 28px;
}

.gm-doc-category:last-child {
	margin-bottom: 0;
}

.gm-doc-category-title {
	font-size: 12px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px !important;
	padding-left: 2px;
}

.gm-doc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gm-doc-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	transition: all 0.2s ease;
}

.gm-doc-item:hover {
	background: #fff;
	border-color: rgba(242, 145, 2, 0.25);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gm-doc-icon {
	flex-shrink: 0;
}

.gm-icon-pdf,
.gm-icon-img {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.gm-icon-pdf {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.gm-icon-img {
	background: #eff6ff;
	color: #3b82f6;
	border: 1px solid #bfdbfe;
}

.gm-doc-info {
	flex: 1;
	min-width: 0;
}

.gm-doc-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	word-break: break-word;
	margin-bottom: 2px;
}

.gm-doc-meta {
	display: block;
	font-size: 12px;
	color: #999;
}

.gm-doc-actions {
	flex-shrink: 0;
}


/* === PORTAL: TABBLADEN === */

.gm-tabs {
	margin-top: 0;
}

.gm-tabs-nav {
	display: flex;
	gap: 4px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	padding: 8px 8px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-tab-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #888 !important;
	text-decoration: none !important;
	border-radius: 8px 8px 0 0;
	border: 1px solid transparent;
	border-bottom: none;
	transition: all 0.2s ease;
	position: relative;
	background: transparent;
}

.gm-tab-link:hover {
	color: #555 !important;
	background: #f8f8f8;
}

.gm-tab-link.gm-tab-active {
	color: #1b336e !important;
	background: #fff;
	border-color: rgba(0, 0, 0, 0.07);
}

.gm-tab-link.gm-tab-active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background: #f29102;
	border-radius: 3px 3px 0 0;
}

.gm-tab-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.5;
}

.gm-tab-active .gm-tab-icon {
	opacity: 0.8;
}

.gm-tab-icon-docenten {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b336e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.gm-tab-icon-facturen {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b336e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='12' y1='18' x2='12' y2='12'/%3E%3Cline x1='9' y1='15' x2='15' y2='15'/%3E%3C/svg%3E");
}

.gm-tab-icon-documenten {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b336e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.gm-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #f29102;
	border-radius: 10px;
	line-height: 1;
}

.gm-tab-content {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 28px 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}


/* === PORTAL: SCHOOL DOCUMENTEN LIJST === */

.gm-school-doc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}


/* === PORTAL: ONGELEZEN DOCUMENTEN === */

.gm-doc-unread {
	background: #fffbf0;
	border-color: rgba(242, 145, 2, 0.25);
	box-shadow: 0 0 0 1px rgba(242, 145, 2, 0.08);
}

.gm-doc-unread:hover {
	border-color: rgba(242, 145, 2, 0.4);
}

.gm-doc-new-badge {
	display: inline-block;
	padding: 1px 8px;
	margin-left: 8px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #f29102;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	vertical-align: middle;
	line-height: 1.6;
}

.gm-portal-stat-unread strong {
	color: #f29102;
}


/* === PORTAL: RESPONSIVE === */

@media (max-width: 1024px) {

	.gm-docenten-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {

	.gm-portal {
		padding: 20px 0 40px;
	}

	.gm-portal-card {
		padding: 28px 22px;
		border-radius: 10px;
	}

	.gm-tabs-nav {
		flex-direction: column;
		gap: 2px;
		padding: 6px 6px 0;
		border-radius: 10px 10px 0 0;
	}

	.gm-tab-link {
		padding: 12px 16px;
		border-radius: 6px 6px 0 0;
		font-size: 13px;
	}

	.gm-tab-content {
		padding: 20px 16px;
		border-radius: 0 0 10px 10px;
	}

	.gm-portal-header {
		flex-direction: column;
		gap: 16px;
		padding: 22px 20px;
		text-align: center;
	}

	.gm-portal-header-right {
		width: 100%;
	}

	.gm-portal-header-right .gm-btn {
		width: 100%;
		text-align: center;
	}

	.gm-portal-stats {
		justify-content: center;
	}

	.gm-docenten-grid {
		grid-template-columns: 1fr;
	}

	.gm-docent-profile {
		padding: 28px 22px;
	}

	.gm-docent-profile-avatar {
		width: 120px;
		height: 120px;
	}

	.gm-docent-profile-meta {
		flex-direction: column;
		gap: 10px;
	}

	.gm-docent-documents {
		padding: 24px 20px;
	}

	.gm-doc-item {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 16px;
	}

	.gm-doc-actions {
		width: 100%;
	}

	.gm-doc-actions .gm-btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {

	.gm-portal h3 {
		font-size: 22px;
	}

	.gm-login-card {
		margin: 0 -10px;
	}

	.gm-docent-card-link {
		padding: 16px 18px;
	}
}
