body {
	background-image: linear-gradient(95.2deg, rgba(173, 252, 234, 1) 26.8%, rgba(192, 229, 246, 1) 64%);
}

text {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 18px;
	pointer-events: none;
}

.listContentRow {
	border-bottom: 1px solid #797979;
	border-top-style: hidden;
	background-color: #ffffff63;
}

.btn-sm {
	margin: 2px;
}

@media only screen and (max-width: 600px) {
	.btn-sm {
		font-size: 12px;
	}
}

/* ===== MAIN INPUT CARD ===== */

.gm-main-card {
	background: rgba(255, 255, 255, 0.75);
	border-radius: 18px;
	box-shadow: 0 6px 28px rgba(60, 80, 180, 0.11);
	padding: 28px 24px 24px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	margin-bottom: 20px;
}

.gm-main-card > p {
	color: #555;
	font-size: 0.97rem;
	margin-bottom: 14px;
}

/* ===== SETTINGS SECTION ===== */

#settingsSection {
	background: rgba(245, 247, 255, 0.8);
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 16px 20px 20px;
	margin-top: 16px;
	text-align: left;
}
#settingsSection h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #555;
	margin-bottom: 12px;
}
#createGroupsBtn {
	margin-top: 14px;
}

/* ===== ACTION BAR (results page buttons) ===== */

.gm-action-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 28px;
	padding-bottom: 24px;
}
.gm-action-bar .btn {
	min-width: 140px;
}

/* ===== GROUP CARDS ===== */

.groups-container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	justify-content: center;
	padding: 8px 0 4px;
	width: 100%;
}

.group-card {
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	flex: 1 1 160px;
	max-width: 220px;
	min-width: 140px;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
	animation: gc-pop 0.32s ease both;
}
.group-card:nth-child(2) {
	animation-delay: 0.05s;
}
.group-card:nth-child(3) {
	animation-delay: 0.1s;
}
.group-card:nth-child(4) {
	animation-delay: 0.15s;
}
.group-card:nth-child(5) {
	animation-delay: 0.2s;
}
.group-card:nth-child(6) {
	animation-delay: 0.25s;
}
.group-card:nth-child(n + 7) {
	animation-delay: 0.28s;
}

@keyframes gc-pop {
	from {
		opacity: 0;
		transform: scale(0.88) translateY(14px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.group-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.group-card-header {
	padding: 11px 16px;
	font-weight: 700;
	font-size: 0.93rem;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.group-card-body {
	background: #fff;
	padding: 6px 16px 20px;
}

.group-member {
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.92rem;
	color: #2d2d2d;
	text-align: left;
}
.group-member:last-child {
	border-bottom: none;
}
.group-member i {
	font-size: 0.75rem;
	opacity: 0.45;
	flex-shrink: 0;
}

.group-member[draggable='true'] {
	cursor: grab;
	transition:
		background 0.12s ease,
		padding-left 0.12s ease;
	border-radius: 6px;
}
.group-member[draggable='true']:hover {
	background: #f0f4ff;
	padding-left: 8px;
}
.group-member.gm-dragging {
	opacity: 0.35;
	cursor: grabbing;
}
.group-card-body.gm-drag-over {
	background: #f0f4ff;
	outline: 2px dashed #4361ee;
	outline-offset: -4px;
	border-radius: 0 0 14px 14px;
}

/* Color variants — 6 colours cycling */
.gc-0 {
	border-top: 3px solid #4361ee;
}
.gc-0 .group-card-header {
	background: linear-gradient(135deg, #4361ee, #3151d9);
}

.gc-1 {
	border-top: 3px solid #7209b7;
}
.gc-1 .group-card-header {
	background: linear-gradient(135deg, #7209b7, #5e08a0);
}

.gc-2 {
	border-top: 3px solid #0096c7;
}
.gc-2 .group-card-header {
	background: linear-gradient(135deg, #0096c7, #0077b6);
}

.gc-3 {
	border-top: 3px solid #f77f00;
}
.gc-3 .group-card-header {
	background: linear-gradient(135deg, #f77f00, #e06c00);
}

.gc-4 {
	border-top: 3px solid #e63946;
}
.gc-4 .group-card-header {
	background: linear-gradient(135deg, #e63946, #c1121f);
}

.gc-5 {
	border-top: 3px solid #2a9d8f;
}
.gc-5 .group-card-header {
	background: linear-gradient(135deg, #2a9d8f, #21867a);
}

/* Add this style for the celebration title */
#questionTextContainer {
	position: fixed;
	top: 22%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 9999; /* Ensure it's above other elements */
}

#questionTextContainer {
	font-size: 36px;
	font-family: 'Arial', sans-serif;
	color: #ff5722;
	text-shadow: 2px 2px 4px #333;
	background-color: #3861b1;
	color: white;
	border-radius: 6px;
	padding: 10px 20px 10px 20px;
	/*display:inline-block;*/
}

/* Star rating panel */

#ratingSection {
	background: rgba(255, 248, 225, 0.85);
	border: 1px solid #ffe08a;
	border-radius: 12px;
	padding: 12px 16px;
}

.rating-section-header {
	font-weight: 600;
	font-size: 0.9rem;
	color: #7a5c00;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.student-rating-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px solid #f5e9a0;
}

.student-rating-row:last-child {
	border-bottom: none;
}

.student-rating-name {
	font-size: 0.9rem;
	color: #333;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 12px;
}

.star-rating {
	display: flex;
	gap: 4px;
	flex-shrink: 0;
}

.star-btn {
	font-size: 1.1rem;
	color: #f59e0b;
	cursor: pointer;
	transition: transform 0.1s ease;
}

.star-btn:hover {
	transform: scale(1.2);
}
