/**
 * Handover Enhanced UI Kit
 * Additional visual components for better UX
 */

/* ========================================================================
   HELPER TEXT & INFO BOXES
   ======================================================================== */

.info-box-v2 {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	background: #e3f2fd;
	border-left: 4px solid #0077B5;
	border-radius: 6px;
	margin-bottom: 12px;
}

.info-box-v2.warning {
	background: #fff3cd;
	border-left-color: #ffc107;
	color: #856404;
}

.info-box-v2.success {
	background: #d4edda;
	border-left-color: #28a745;
	color: #155724;
}

.info-box-v2.error {
	background: #f8d7da;
	border-left-color: #dc3545;
	color: #721c24;
}

.info-icon-v2 {
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

.info-text-v2 {
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

/* ========================================================================
   STEP INDICATORS
   ======================================================================== */

.steps-container-v2 {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.step-badge-v2 {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e9ecef;
	color: #666;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.step-badge-v2.current {
	background: #0077B5;
	color: white;
	transform: scale(1.1);
	box-shadow: 0 0 0 4px rgba(0, 119, 181, 0.15);
}

.step-badge-v2.completed {
	background: #28a745;
	color: white;
}

/* ========================================================================
   TIMER & COUNTDOWN
   ======================================================================== */

.countdown-v2 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #fff3cd;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #856404;
}

.countdown-v2.critical {
	background: #f8d7da;
	color: #721c24;
	animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.countdown-value {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	font-weight: 700;
}

/* ========================================================================
   AVATAR STACK
   ======================================================================== */

.avatar-stack-v2 {
	display: flex;
	align-items: center;
	gap: -8px;
}

.avatar-v2 {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid white;
	background-size: cover;
	background-position: center;
	margin-left: -8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-v2:first-child {
	margin-left: 0;
}

.avatar-v2.online::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #28a745;
	border: 3px solid white;
	bottom: 0;
	right: 0;
}

/* ========================================================================
   BADGE VARIANTS
   ======================================================================== */

.badge-v2 {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-v2.primary {
	background: #e3f2fd;
	color: #0077B5;
}

.badge-v2.success {
	background: #d4edda;
	color: #155724;
}

.badge-v2.warning {
	background: #fff3cd;
	color: #856404;
}

.badge-v2.danger {
	background: #f8d7da;
	color: #721c24;
}

.badge-v2.secondary {
	background: #e2e3e5;
	color: #383d41;
}

/* ========================================================================
   CARD VARIANTS
   ======================================================================== */

.card-v2 {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	transition: all 0.2s;
}

.card-v2:hover {
	border-color: #e0e6f2;
	box-shadow: 0 4px 12px rgba(0, 119, 181, 0.08);
}

.card-header-v2 {
	font-size: 14px;
	font-weight: 600;
	color: #263238;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e9ecef;
}

.card-body-v2 {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* ========================================================================
   PROGRESS BAR
   ======================================================================== */

.progress-bar-v2 {
	width: 100%;
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 12px;
}

.progress-fill-v2 {
	height: 100%;
	background: linear-gradient(90deg, #0077B5 0%, #0BB66E 100%);
	transition: width 0.3s ease;
	border-radius: 4px;
}

/* ========================================================================
   DIVIDER
   ======================================================================== */

.divider-v2 {
	height: 1px;
	background: #e9ecef;
	margin: 16px 0;
}

.divider-v2.text {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #999;
	font-size: 12px;
}

.divider-v2.text::before,
.divider-v2.text::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e9ecef;
}

/* ========================================================================
   TOOLTIP
   ======================================================================== */

.tooltip-v2 {
	position: relative;
	display: inline-block;
	cursor: help;
	border-bottom: 1px dotted #0077B5;
}

.tooltip-v2:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: #2c3e50;
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========================================================================
   FLOATING ACTION
   ======================================================================== */

.floating-action-v2 {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #0077B5;
	color: white;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: all 0.2s;
	z-index: 100;
}

.floating-action-v2:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

/* ========================================================================
   SKELETON LOADER
   ======================================================================== */

.skeleton-v2 {
	background: linear-gradient(
		90deg,
		#e9ecef 0%,
		#f5f7fa 50%,
		#e9ecef 100%
	);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
	border-radius: 4px;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.skeleton-text-v2 {
	height: 12px;
	margin-bottom: 8px;
	border-radius: 4px;
}

.skeleton-code-v2 {
	height: 60px;
	border-radius: 8px;
	margin-bottom: 16px;
}

/* ========================================================================
   HIGHLIGHT EFFECT
   ======================================================================== */

.highlight-v2 {
	animation: highlight 2s ease-in-out;
}

@keyframes highlight {
	0% {
		background-color: transparent;
	}
	50% {
		background-color: rgba(0, 119, 181, 0.1);
	}
	100% {
		background-color: transparent;
	}
}

/* ========================================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================================== */

@media (max-width: 768px) {
	.floating-action-v2 {
		bottom: 16px;
		right: 16px;
	}
	
	.tooltip-v2:hover::after {
		white-space: normal;
		max-width: 200px;
	}
}

/* ========================================================================
   DARK MODE
   ======================================================================== */

@media (prefers-color-scheme: dark) {
	.card-v2 {
		background: #3a4a5a;
		border-color: #4a5a6a;
	}
	
	.card-header-v2 {
		color: #ecf0f1;
		border-bottom-color: #4a5a6a;
	}
	
	.card-body-v2 {
		color: #bdc3c7;
	}
	
	.progress-bar-v2 {
		background: #4a5a6a;
	}
	
	.divider-v2 {
		background: #4a5a6a;
	}
	
	.divider-v2.text {
		color: #7f8c8d;
	}
	
	.divider-v2.text::before,
	.divider-v2.text::after {
		background: #4a5a6a;
	}
	
	.info-box-v2 {
		background: rgba(0, 119, 181, 0.1);
		color: #5dade2;
	}
	
	.tooltip-v2:hover::after {
		background: #1a1a1a;
		color: #ecf0f1;
	}
}
