.gjcm-front-wrap, .gjcm-front-wrap * { box-sizing: border-box; }
.gjcm-front-wrap {
	font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	max-width: 1100px;
	margin: 30px auto;
	padding: 0 16px;
	color: #1e1b2e;
}

.gjcm-login-card {
	max-width: 380px; margin: 60px auto; background: #fff; border-radius: 18px;
	padding: 32px; box-shadow: 0 10px 40px rgba(20,20,50,0.08); text-align: center;
}
.gjcm-login-card h2 { background: linear-gradient(135deg,#6366f1,#a855f7); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.gjcm-login-card input[type=text], .gjcm-login-card input[type=password] {
	width: 100%; padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px;
}
.gjcm-login-card input[type=submit] {
	background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none;
	padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; width: 100%;
}

.gjcm-front-header {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	border-radius: 18px; padding: 26px 28px; color: #fff; margin-bottom: 26px;
	box-shadow: 0 10px 30px rgba(99,102,241,0.25);
}
.gjcm-front-header h2 { margin: 0 0 4px; font-size: 22px; }
.gjcm-front-header p { margin: 0; opacity: .92; font-size: 14px; }
.gjcm-front-header strong { font-weight: 700; }

.gjcm-front-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
	font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; font-family: inherit;
}
.gjcm-front-btn-light { background: rgba(255,255,255,0.2); color: #fff; }
.gjcm-front-btn-light:hover { background: rgba(255,255,255,0.32); color: #fff; }
.gjcm-front-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; width: 100%; margin-top: 6px; }
.gjcm-front-btn-primary:hover { opacity: .92; color: #fff; }

.gjcm-front-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}

.gjcm-task-card {
	background: #fff; border-radius: 16px; padding: 20px; border: 1px solid #f0f0f5;
	box-shadow: 0 1px 3px rgba(20,20,50,0.05), 0 8px 24px rgba(20,20,50,0.04);
}
.gjcm-task-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gjcm-task-type {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
	padding: 4px 10px; border-radius: 20px; background: #ede9fe; color: #7c3aed;
}
.gjcm-type-excel { background: #dcfce7; color: #16a34a; }
.gjcm-type-powerpoint { background: #fee2e2; color: #dc2626; }
.gjcm-type-pdf { background: #fef3c7; color: #d97706; }
.gjcm-task-deadline { font-size: 12px; color: #6b7280; font-weight: 500; }
.gjcm-overdue { color: #dc2626; font-weight: 700; }
.gjcm-task-card h3 { margin: 0 0 8px; font-size: 16px; }
.gjcm-task-desc { font-size: 13.5px; color: #4b5563; margin: 0 0 14px; line-height: 1.6; }

.gjcm-attachment-link {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
	color: #6366f1; text-decoration: none; background: #ede9fe; padding: 6px 12px; border-radius: 20px;
	margin-bottom: 14px;
}
.gjcm-attachment-link:hover { background: #ddd6fe; color: #4f46e5; }
.gjcm-attachment-link .dashicons { font-size: 15px; width: 15px; height: 15px; }

.gjcm-submit-form textarea {
	width: 100%; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 8px 10px;
	font-family: inherit; font-size: 13px; margin: 10px 0; resize: vertical;
}
.gjcm-file-input {
	width: 100%; padding: 8px; border: 1.5px dashed #c7c7f5; border-radius: 10px; background: #fafaff; font-size: 13px;
}
.gjcm-form-msg { font-size: 13px; margin-top: 8px; font-weight: 600; }
.gjcm-form-msg.success { color: #16a34a; }
.gjcm-form-msg.error { color: #dc2626; }

.gjcm-submitted-box {
	background: #f8fafc; border-radius: 12px; padding: 14px; margin-top: 4px; font-size: 13.5px;
}
.gjcm-submitted-box p { margin: 0 0 6px; }
.gjcm-submitted-box .dashicons { color: #16a34a; vertical-align: middle; }
.gjcm-grade { font-weight: 700; color: #6366f1; }
.gjcm-feedback { color: #4b5563; font-style: italic; }
.gjcm-pending-note { color: #d97706; font-weight: 600; }
.gjcm-resubmit-btn { width: auto; margin-top: 8px; padding: 7px 14px; font-size: 12px; }

.gjcm-empty { grid-column: 1/-1; text-align: center; color: #9ca3af; padding: 40px 0; }

.gjcm-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #f0f0f5; }
.gjcm-tab-btn {
	background: none; border: none; padding: 10px 18px; font-family: inherit; font-size: 14px;
	font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.gjcm-tab-btn:hover { color: #6366f1; }
.gjcm-tab-btn.gjcm-tab-active { color: #6366f1; border-bottom-color: #6366f1; }

.gjcm-results-table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid #f0f0f5; box-shadow: 0 1px 3px rgba(20,20,50,0.05); }
.gjcm-results-table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.gjcm-results-table th {
	text-align: left; padding: 12px 14px; color: #6b7280; font-weight: 600;
	font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid #f0f0f5;
}
.gjcm-results-table td { padding: 13px 14px; border-bottom: 1px solid #f5f5fa; }
.gjcm-results-table tr:last-child td { border-bottom: none; }

.gjcm-result-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.gjcm-rs-pending { background: #fef3c7; color: #d97706; }
.gjcm-rs-reviewed { background: #dcfce7; color: #16a34a; }
.gjcm-rs-late { background: #fee2e2; color: #dc2626; }

/* Leaderboard (student dashboard) */
.gjcm-leaderboard-rank { font-weight: 700; color: #6366f1; white-space: nowrap; }
.gjcm-leaderboard-top { background: #fbfaff; }
.gjcm-leaderboard-top:nth-child(1) .gjcm-leaderboard-rank { color: #d97706; }

@media (max-width: 600px) {
	.gjcm-front-header { flex-direction: column; align-items: flex-start; }
}
