/* ============================================================
   Uniform buttons for the whole application.
   One base shape/typography (Inter, 16px, 600 weight, 10px radius)
   plus brand colour variants. Applies to Bootstrap buttons,
   SweetAlert2 dialogs (e.g. the Break Reminder), the instruction
   modal, Colorbox actions and modal footers.
   ============================================================ */

.btn,
#startGame,
#submitanswer,
#gameOver,
#showNext,
#href_page_back,
.swal2-container .swal2-modal .swal2-styled,
#cNext,
.instruction-modal-overlay .instruction-modal-footer .btn,
.modal .modal-footer .btn{
	font-family: 'Inter', Verdana, sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	padding: 11px 22px !important;
	border-radius: 10px !important;
	min-height: 46px !important;
	min-width: 120px !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
}

/* Primary / confirm (teal brand) */
.btn-primary,
.btn-success,
#startGame,
#submitanswer,
#gameOver,
#showNext,
#cNext,
.swal2-container .swal2-modal .swal2-confirm{
	background-color: #1976d2 !important;
	border-color: #1976d2 !important;
	color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
#startGame:hover,
#startGame:focus,
#submitanswer:hover,
#gameOver:hover,
#showNext:hover,
#cNext:hover,
.swal2-container .swal2-modal .swal2-confirm:hover{
	background-color: #0d47a1 !important;
	border-color: #0d47a1 !important;
	color: #ffffff !important;
}

/* Secondary / cancel (outline teal) */
.btn-default,
.btn-secondary,
#href_page_back,
.swal2-container .swal2-modal .swal2-cancel{
	background-color: #ffffff !important;
	border-color: #1976d2 !important;
	color: #1976d2 !important;
}
.btn-default:hover,
.btn-default:focus,
#href_page_back:hover,
.swal2-container .swal2-modal .swal2-cancel:hover{
	background-color: #e3f2fd !important;
	color: #0d47a1 !important;
}

/* Destructive */
.btn-danger{
	background-color: #C62828 !important;
	border-color: #C62828 !important;
	color: #ffffff !important;
}
.btn-danger:hover,
.btn-danger:focus{
	background-color: #a91f1f !important;
	border-color: #a91f1f !important;
	color: #ffffff !important;
}

/* ---------- SweetAlert2 "loading" state ----------
   The rules above force a solid shape/size with !important on every
   .swal2-styled button. SweetAlert's loading spinner is drawn by shrinking
   the confirm button to a rotating ring, so those rules must not apply while
   the dialog is busy (e.g. "Yes, Log me out"). Restore the spinner here. */
.swal2-container .swal2-modal .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-confirm{
	min-width: 0 !important;
	min-height: 0 !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	margin: 7.5px 30px !important;
	border: 4px solid #1976d2 !important;
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
	border-radius: 100% !important;
	background-color: transparent !important;
	color: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	vertical-align: top;
	animation: rotate-loading 1.5s linear 0s infinite normal !important;
	-webkit-animation: rotate-loading 1.5s linear 0s infinite normal !important;
}
/* Keep the cancel button quiet while the confirm action is in progress. */
.swal2-container .swal2-modal .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-cancel{
	opacity: .55 !important;
}

/* ---------- Remaining in-game action buttons ---------- */
#insertData,
#ansQuestion,
#nextBtn,
#nextBtnConveyor,
#clueButton,
#btnShowClue,
#shop_more,
#back,
.back_{
	font-family: 'Inter', Verdana, sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	padding: 11px 22px !important;
	border-radius: 10px !important;
	min-height: 46px !important;
	min-width: 120px !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
}
/* Primary-looking game buttons → teal */
#insertData,
#ansQuestion,
#nextBtn,
#nextBtnConveyor,
#clueButton,
#btnShowClue,
#shop_more{
	background-color: #1976d2 !important;
	border-color: #1976d2 !important;
	color: #ffffff !important;
}
/* Back → secondary (outline) */
#back,
.back_{
	background-color: #ffffff !important;
	border-color: #1976d2 !important;
	color: #1976d2 !important;
}

/* ---------- Game level buttons (mySchedule) ---------- */
/* NOTE: the level buttons keep their score-based colours (pink < 80%,
   blue >= 80%) which are defined in assets/css/mySchedule.css. Only the
   shared typography/shape is applied here so the colour coding still works. */
.btn-w{
	font-family: 'Inter', Verdana, sans-serif !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
}
