/* ========================================
   ALERT MODAL STYLES
   ======================================== */

/* Modal Overlay */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal-overlay.active {
	display: flex;
	opacity: 1;
}

/* Modal Container */
.modal-container {
	background: var(--white, #ffffff);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-width: 420px;
	width: 90%;
	padding: 30px;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s ease;
	position: relative;
	text-align: center;
}

.modal-overlay.active .modal-container {
	transform: scale(1) translateY(0);
}

/* Modal Icon */
.modal-icon {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 20px;
}

.modal-icon.error {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

.modal-icon.warning {
	background: rgba(255, 193, 7, 0.1);
	color: #ffc107;
}

.modal-icon.success {
	background: rgba(25, 135, 84, 0.1);
	color: #198754;
}

.modal-icon.info {
	background: rgba(26, 167, 255, 0.1);
	color: #3498db;
}

.modal-icon i {
	font-size: 2rem;
}

/* Modal Content */
.modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dark, #2c3e50);
	margin-bottom: 10px;
}

.modal-message {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 25px;
}

/* Modal Buttons */
.modal-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.modal-btn {
	padding: 10px 25px;
	border-radius: 6px;
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.modal-btn-primary {
	background: #3498db;
	color: #ffffff;
}

.modal-btn-primary:hover {
	background: #2980b9;
}

.modal-btn-secondary {
	background: #ecf0f1;
	color: #2c3e50;
}

.modal-btn-secondary:hover {
	background: #d5dbdb;
}

.modal-btn-danger {
	background: #dc3545;
	color: #ffffff;
}

.modal-btn-danger:hover {
	background: #bb2d3b;
}

/* Feedback Modal Specific Styles */
.feedback-modal {
	text-align: left;
}

.feedback-modal .modal-icon {
	margin-bottom: 15px;
}

.feedback-modal .modal-title {
	text-align: center;
	margin-bottom: 25px;
}

.feedback-modal .form-group {
	margin-bottom: 20px;
}

.feedback-modal .form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 8px;
}

.feedback-modal .form-group .required {
	color: #dc3545;
}

.feedback-modal .form-group input,
.feedback-modal .form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 0.95rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
}

.feedback-modal .form-group input:focus,
.feedback-modal .form-group textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.feedback-modal .form-group textarea {
	min-height: 120px;
	resize: vertical;
}

.feedback-modal .modal-actions {
	margin-top: 25px;
}

#feedback-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Close Button */
.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	color: #999;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 5px;
	transition: color 0.2s ease;
	line-height: 1;
}

.modal-close:hover {
	color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 575px) {
	.modal-container {
		padding: 25px 20px;
		max-width: 95%;
	}
	
	.modal-icon {
		width: 55px;
		height: 55px;
	}
	
	.modal-icon i {
		font-size: 1.5rem;
	}
	
	.modal-title {
		font-size: 1.1rem;
	}
	
	.modal-message {
		font-size: 0.85rem;
	}
	
	.modal-actions {
		flex-direction: column;
	}
	
	.modal-btn {
		width: 100%;
	}
}

/* Animation */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.modal-overlay,
	.modal-container {
		transition: none;
	}
}
