:root {
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	--warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
	--glass-bg: rgba(255, 255, 255, 0.15);
	--glass-border: rgba(255, 255, 255, 0.18);
	--text-dark: #2d3748;
	--text-light: #ffffff;
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
	--font-primary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, sans-serif;
}

body {
	font-family: var(--font-primary);
	background: linear-gradient(45deg, #f0f9ff, #e0f2fe, #f0fdf4, #fef3c7);
	background-size: 400% 400%;
	animation: gradientBG 15s ease infinite;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Card Styles */
.glass-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: var(--shadow-xl);
	overflow: hidden;
}

/* Button Styles */
.btn-gradient {
	background: var(--primary-gradient);
	border: none;
	border-radius: 12px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	color: white;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-gradient::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.5s ease;
}

.btn-gradient:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover::before {
	left: 100%;
}

/* Form Styles */
.form-control-modern {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
	transition: all 0.3s ease;
	background: white;
}

.form-control-modern:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

/* Alert Styles */
.alert-modern {
	border-radius: 12px;
	border: none;
	padding: 14px 16px;
	background: linear-gradient(135deg, #fee, #fdd);
	color: #dc3545;
	font-weight: 500;
	border-left: 4px solid #dc3545;
}

/* Animation Classes */
.shake {
	animation: shake 0.5s ease;
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-5px);
	}
	75% {
		transform: translateX(5px);
	}
}

.float {
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Table Styles */
.table-modern {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.table-modern thead th {
	background: var(--primary-gradient);
	color: white;
	border: none;
	padding: 16px;
	font-weight: 600;
}

.table-modern tbody tr:hover {
	background-color: rgba(102, 126, 234, 0.05);
}

/* Navigation Styles */
.nav-glass {
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--glass-border);
}

/* Card Grid */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	padding: 24px;
}

/* Dashboard Stats */
.stat-card {
	background: white;
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--shadow-lg);
	transition: all 0.3s ease;
	border-top: 4px solid transparent;
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-xl);
}

.stat-card.primary {
	border-color: #667eea;
}
.stat-card.success {
	border-color: #43e97b;
}
.stat-card.warning {
	border-color: #fa709a;
}
.stat-card.info {
	border-color: #38f9d7;
}

.stat-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
}

.stat-icon.primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
}
.stat-icon.success {
	background: linear-gradient(135deg, #43e97b, #38f9d7);
	color: white;
}
.stat-icon.warning {
	background: linear-gradient(135deg, #fa709a, #fee140);
	color: white;
}
.stat-icon.info {
	background: linear-gradient(135deg, #38f9d7, #667eea);
	color: white;
}

/* Responsive */
@media (max-width: 768px) {
	.card-grid {
		grid-template-columns: 1fr;
	}

	.stat-card {
		padding: 20px;
	}
}

/* Loading Spinner */
.spinner-modern {
	width: 50px;
	height: 50px;
	border: 3px solid rgba(102, 126, 234, 0.1);
	border-radius: 50%;
	border-top-color: #667eea;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #667eea, #764ba2);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #764ba2, #667eea);
}
