﻿/* ============================================
   MODERN UTILITIES CSS per AppDone
   Aggiungere dopo site.css in _Host.cshtml
   ============================================ */

/* Font Import - Inter per tipografia moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   ANIMAZIONI
   ============================================ */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}

	50% {
		opacity: 0.7;
	}
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fade-in {
	animation: fadeIn 0.3s ease-in;
}

.slide-up {
	animation: slideUp 0.4s ease-out;
}

.slide-in-right {
	animation: slideInRight 0.4s ease-out;
}

.scale-in {
	animation: scaleIn 0.3s ease-out;
}

.pulse {
	animation: pulse 2s infinite;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
	transition: all 0.3s ease;
}

	.hover-lift:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	}

.hover-grow {
	transition: transform 0.2s ease;
}

	.hover-grow:hover {
		transform: scale(1.05);
	}

.hover-glow {
	transition: box-shadow 0.3s ease;
}

	.hover-glow:hover {
		box-shadow: 0 0 20px rgba(25, 118, 210, 0.4);
	}

/* ============================================
   CARD ENHANCEMENTS
   ============================================ */

.card-modern {
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

	.card-modern:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
	}

.card-gradient {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.card-stats {
	background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
	color: white;
	padding: 24px;
	border-radius: 12px;
}

/* ============================================
   BADGES & CHIPS
   ============================================ */

.badge-success {
	background-color: #4CAF50;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
}

.badge-warning {
	background-color: #FF9800;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
}

.badge-error {
	background-color: #F44336;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
}

.badge-info {
	background-color: #2196F3;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-gradient-primary {
	background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	cursor: pointer;
}

	.btn-gradient-primary:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 16px rgba(25, 118, 210, 0.3);
	}

.btn-glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: inherit;
	padding: 10px 24px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

	.btn-glass:hover {
		background: rgba(255, 255, 255, 0.2);
		border-color: rgba(255, 255, 255, 0.3);
	}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

.loading-dots::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% {
		content: '';
	}

	40% {
		content: '.';
	}

	60% {
		content: '..';
	}

	80%, 100% {
		content: '...';
	}
}

/* ============================================
   GLASS MORPHISM
   ============================================ */

.glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
}

.glass-dark {
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 12px;
}

/* ============================================
   SCROLLBAR PERSONALIZZATA
   ============================================ */

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 5px;
}

	::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, 0.3);
	}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* ============================================
   SHADOWS
   ============================================ */

.shadow-soft {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-large {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shadow-colored-primary {
	box-shadow: 0 8px 24px rgba(25, 118, 210, 0.25);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 960px) {
	.hide-on-mobile {
		display: none !important;
	}
}

@media (min-width: 961px) {
	.hide-on-desktop {
		display: none !important;
	}
}

/* ============================================
   TRANSITIONS SMOOTH
   ============================================ */

.transition-all {
	transition: all 0.3s ease;
}

.transition-fast {
	transition: all 0.15s ease;
}

.transition-slow {
	transition: all 0.5s ease;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.gap-2 {
	gap: 8px;
}

.gap-3 {
	gap: 12px;
}

.gap-4 {
	gap: 16px;
}

.gap-6 {
	gap: 24px;
}

.gap-8 {
	gap: 32px;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-gradient {
	background: linear-gradient(135deg, #1976D2 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-balance {
	text-wrap: balance;
}

/* ============================================
   STATUS INDICATORS
   ============================================ */

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
}

	.status-dot.success {
		background-color: #4CAF50;
		box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
	}

	.status-dot.warning {
		background-color: #FF9800;
		box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
	}

	.status-dot.error {
		background-color: #F44336;
		box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
	}

	.status-dot.info {
		background-color: #2196F3;
		box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
	}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-auto-fit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.grid-auto-fill {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
