/**
 * FRAS - Custom Styles
 * Additional styles to complement Tailwind CSS
 */

select {
	-webkit-appearance: none; /* For Chrome, Safari, Opera */
	-moz-appearance: none; /* For Firefox */
	appearance: none; /* Standard property */
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Loading spinner */
.spinner {
	border: 2px solid #f3f3f3;
	border-top: 2px solid #3498db;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Face recognition camera styles */
.camera-container {
	position: relative;
	display: inline-block;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.camera-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.face-detection-box {
	position: absolute;
	border: 2px solid #10b981;
	border-radius: 4px;
	background: rgba(16, 185, 129, 0.1);
}

.face-detection-label {
	position: absolute;
	background: #10b981;
	color: white;
	padding: 2px 6px;
	font-size: 12px;
	border-radius: 2px;
	top: -20px;
	left: 0;
}

/* Alert styles */
.alert {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-weight: 500;
}

.alert-success {
	background-color: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.alert-error {
	background-color: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #ef4444;
}

.alert-warning {
	background-color: #fef3c7;
	color: #92400e;
	border-left: 4px solid #f59e0b;
}

.alert-info {
	background-color: #dbeafe;
	color: #1e40af;
	border-left: 4px solid #3b82f6;
}

/* Custom styles that are NOT covered by Tailwind build */

/* Responsive utilities - only for specific overrides not covered by Tailwind */

/* Animations */
.fade-in {
	animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide-in {
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}

/* Loading states - custom implementations */
.loading {
	pointer-events: none;
	opacity: 0.6;
}

.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #ccc;
	border-top-color: #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
