/* Session Warning Component Styles */

.session-warning-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.session-warning-dialog {
	background: white;
	border-radius: 8px;
	padding: 2rem;
	max-width: 400px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.warning-icon {
	text-align: center;
	font-size: 3rem;
	margin-bottom: 1rem;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

.session-warning-dialog h2 {
	margin: 0 0 1rem 0;
	color: #d32f2f;
	font-size: 1.5rem;
	text-align: center;
}

.warning-message {
	margin: 1rem 0;
	font-size: 1rem;
	color: #333;
	text-align: center;
}

.warning-message strong {
	color: #d32f2f;
	font-weight: 600;
}

.warning-detail {
	margin: 0.5rem 0 1.5rem 0;
	font-size: 0.9rem;
	color: #666;
	text-align: center;
}

.progress-bar {
	width: 100%;
	height: 4px;
	background-color: #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #d32f2f, #ff9800);
	transition: width 0.3s ease;
}

.button-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.btn {
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-primary {
	background-color: #4CAF50;
	color: white;
}

.btn-primary:hover:not(:disabled) {
	background-color: #45a049;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
	background-color: #f44336;
	color: white;
}

.btn-secondary:hover:not(:disabled) {
	background-color: #da190b;
	box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.warning-footer {
	margin: 0;
	font-size: 0.8rem;
	color: #999;
	text-align: center;
}

/* Responsive design */
@media (max-width: 480px) {
	.session-warning-dialog {
		margin: 1rem;
		max-width: 100%;
	}

	.button-group {
		grid-template-columns: 1fr;
	}
}
