:root {
	--primary-color: #2c3e50;
	--secondary-color: #3498db;
	--accent-color: #e74c3c;
	--light-color: #ecf0f1;
	--dark-color: #34495e;
}

body {
	background-color: #f8f9fa;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
	background-color: var(--primary-color);
}

.sidebar {
	background-color: var(--dark-color);
	color: white;
	height: calc(100vh - 56px);
	position: fixed;
	width: 250px;
	padding-top: 20px;
	overflow-y: auto;
}

.sidebar a {
	color: white;
	padding: 15px 20px;
	text-decoration: none;
	display: block;
	transition: all 0.3s;
}

.sidebar a:hover {
	background-color: var(--secondary-color);
}

.sidebar a.active {
	background-color: var(--secondary-color);
	border-left: 4px solid var(--accent-color);
}

.main-content {
	margin-left: 250px;
	padding: 20px;
}

.card {
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	border: none;
}

.card-header {
	background-color: var(--primary-color);
	color: white;
	border-radius: 10px 10px 0 0 !important;
}

.btn-primary {
	background-color: var(--secondary-color);
	border: none;
}

.btn-primary:hover {
	background-color: #2980b9;
}

.btn-danger {
	background-color: var(--accent-color);
	border: none;
}

.calendar-day {
	border: 1px solid #ddd;
	padding: 10px;
	height: 120px;
	position: relative;
	cursor: pointer;
}

.calendar-day.assigned {
	background-color: #e8f4fc;
}

.calendar-day.current {
	background-color: #fff3cd;
}

.assignment-badge {
	position: absolute;
	bottom: 5px;
	left: 5px;
	right: 5px;
	padding: 3px;
	border-radius: 3px;
	font-size: 0.8 rem;
	text-align: center;
	background-color: var(--secondary-color);
	color: white;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.checklist-item {
	border-left: 4px solid #ddd;
	padding-left: 15px;
	margin-bottom: 15px;
	transition: all 0.3s;
}

.checklist-item.checked {
	border-left-color: #28a745;
	background-color: #f8fff9;
}

.signature-pad {
	border: 2px dashed #ccc;
	border-radius: 10px;
	height: 200px;
	cursor: crosshair;
	background-color: #f9f9f9;
}

.vehicle-card {
	transition: all 0.3s;
}

.vehicle-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
}

.stats-box {
	text-align: center;
	padding: 20px;
	border-radius: 10px;
	color: white;
}

.stats-box.vehicles {
	background-color: #3498db;
}

.stats-box.users {
	background-color: #2ecc71;
}

.stats-box.assignments {
	background-color: #e74c3c;
}

.stats-box.pending {
	background-color: #f39c12;
}

.stats-box i {
	font-size: 2.5 rem;
	margin-bottom: 10px;
}

.stats-box h2 {
	font-size: 2.5 rem;
	margin: 0;
}

.section {
	display: none;
}

.section.active {
	display: block;
}

#signatureCanvas {
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.form-section {
	background-color: #f8f9fa;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}

.login-container {
	max-width: 400px;
	margin: 100px auto;
	padding: 20px;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.assignment-details {
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.logo-preview {
	max-width: 200px;
	max-height: 100px;
	margin-top: 10px;
	border: 1px dashed #ccc;
	padding: 5px;
}

.checklist-section {
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
}

/* Estilos para impresión */
@media print {
	body * {
		visibility: hidden;
	}
	#printable-assignment, #printable-assignment * {
		visibility: visible;
	}
	#printable-assignment {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		padding: 20px;
	}
	.no-print {
		display: none !important;
	}
	.card {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

.print-header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #ccc;
}

.print-logo {
	max-width: 150px;
	margin-bottom: 10px;
}

.print-section {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.print-label {
	font-weight: bold;
	width: 150px;
	display: inline-block;
}

.signature-area {
	margin-top: 30px;
	padding-top: 15px;
	border-top: 1px dashed #ccc;
}

@media (max-width: 768px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
	}

	.main-content {
		margin-left: 0;
	}
}

#loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw; /* Full width */
	height: 100vh; /* Full height */
	background: rgba(0, 0, 0, 0.7);
	color: white;
	display: none;
	flex-direction: column;
	align-items: center; /* Centers horizontally */
	justify-content: center; /* Centers vertically */
	font-size: 20px;
	z-index: 9999;
	text-align: center; /* Ensures text is centered */
}

.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid white;
	border-top: 5px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}