/* Flash message component styles for APDEarn
	 Provides animated, dismissible alerts used by APDEarn.showMessage / SessionManager flash
*/

.flash-message {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 16px 0;
	padding: 12px 16px;
	border-radius: 6px;
	color: #fff;
	font-family: inherit;
	box-shadow: 0 6px 18px rgba(16,24,40,0.08);
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 9999;
}

.flash-message .container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.flash-message i.fa {
	font-size: 18px;
	opacity: 0.95;
}

.flash-message .flash-message-content {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.25;
}

.flash-message .flash-subtitle {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	opacity: 0.92;
}

.flash-message .close-flash {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

/* Variants */
.flash-info {
	background: linear-gradient(90deg, #2b6cb0, #2c7be5);
}

.flash-success {
	background: linear-gradient(90deg, #16a34a, #22c55e);
}

.flash-error,
.flash-danger {
	background: linear-gradient(90deg, #dc2626, #ef4444);
}

.flash-warning {
	background: linear-gradient(90deg, #d97706, #f59e0b);
	color: #111;
}

/* Small screens: keep it compact */
@media (max-width: 640px) {
	.flash-message {
		padding: 10px 12px;
		border-radius: 0;
	}
	.flash-message .flash-message-content { font-size: 13px; }
}

/* When removed via JS we fade it out (transition already handled) */
.flash-message.hidden {
	opacity: 0 !important;
	transform: translateY(-6px) !important;
	pointer-events: none;
}

/* Ensure close button icon looks good */
.flash-message .close-flash i.fa {
	font-size: 14px;
}

/* Confirmation overlay (used by APDEarn.showConfirm) */
.confirm-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2,6,23,0.6);
	z-index: 10000;
	padding: 20px;
}

.confirm-box {
	background: #fff;
	color: #0f172a;
	padding: 18px;
	border-radius: 10px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 12px 40px rgba(2,6,23,0.35);
}

.confirm-title {
	margin: 0 0 8px 0;
	font-size: 18px;
}

.confirm-message {
	font-size: 14px;
	margin-bottom: 16px;
}

.confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.btn--danger {
	background: linear-gradient(90deg,#ef4444,#dc2626);
	color: #fff;
	border: 0;
	padding: 8px 12px;
	border-radius: 6px;
}

.btn--outline {
	background: transparent;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	padding: 8px 12px;
	border-radius: 6px;
}
