/* Fleet Database Specific Styles */

/* Fleet Database Container */
.fleet-database-container {
	background-color: var(--bg-color-light);
	min-height: 100vh;
}

/* Fleet Database Header */
.fleet-database-header {
	background: white;
	border-bottom: 1px solid var(--border-light);
}

/* Fleet Table Styles */
.fleet-table-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.fleet-table {
	width: 100%;
	border-collapse: collapse;
}

.fleet-table thead {
	background-color: #f8fafc;
	border-bottom: 2px solid var(--border-light);
}

.fleet-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 0.75rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	user-select: none;
	transition: background-color 0.2s ease;
}

/* Hover disabled to match consistent table look */
/* .fleet-table th:hover {
	background-color: #e2e8f0;
} */

.fleet-table th.sortable {
	cursor: pointer;
}

.fleet-table th.sorted-asc::after {
	content: " ↑";
	color: #3b82f6;
}

.fleet-table th.sorted-desc::after {
	content: " ↓";
	color: #3b82f6;
}

.fleet-table tbody tr {
	border-bottom: 1px solid var(--border-light);
	transition: background-color 0.2s ease;
}

.fleet-table td {
	padding: 12px 16px;
	font-size: 0.8125rem; /* Kompakter: zuvor 0.875rem */
	color: var(--text-dark);
}

/* Airline Badge */
.airline-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 500;
}

.airline-badge.clh {
	background-color: #dbeafe;
	color: #1e40af;
}

.airline-badge.lhx {
	background-color: #fef3c7;
	color: #92400e;
}

/* Registration Code Style */
.registration-code {
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Filter Controls */
.fleet-filters {
	background: #f8fafc;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
}

.fleet-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	align-items: end;
}

/* Action Buttons Enhanced */
.fleet-action-btn-enhanced {
	padding: 10px 16px !important;
	border-radius: 8px !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	transition: all 0.2s ease !important;
	border: none !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
	text-transform: none !important;
	letter-spacing: 0.025em !important;
}

.fleet-action-btn-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
	color: white !important;
}

.fleet-action-btn-primary:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.fleet-action-btn-secondary {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	color: white !important;
}

.fleet-action-btn-secondary:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Action Buttons */
.fleet-action-btn {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.fleet-action-btn.primary {
	background-color: #3b82f6;
	color: white;
}

.fleet-action-btn.primary:hover {
	background-color: #2563eb;
}

.fleet-action-btn.secondary {
	background-color: #10b981;
	color: white;
}

.fleet-action-btn.secondary:hover {
	background-color: #059669;
}

/* Loading and Empty States */
.fleet-loading {
	text-align: center;
	padding: 48px 24px;
	color: #64748b;
}

.fleet-empty {
	text-align: center;
	padding: 48px 24px;
	color: #64748b;
}

.fleet-empty svg {
	margin: 0 auto 16px;
	color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
	.fleet-filter-grid {
		grid-template-columns: 1fr;
	}

	.fleet-table-container {
		overflow-x: auto;
	}

	.fleet-table {
		min-width: 800px;
	}
}

/* Status Indicators */
.fleet-status-indicator {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 8px;
}

.fleet-status-active {
	background-color: #10b981;
}

.fleet-status-inactive {
	background-color: #ef4444;
}

.fleet-status-maintenance {
	background-color: #f59e0b;
}

/* Search Highlight */
.fleet-search-highlight {
	background-color: #fef3c7;
	padding: 2px 4px;
	border-radius: 3px;
	font-weight: 600;
}

/* Sort Indicators */
.sort-indicator {
	margin-left: 4px;
	font-size: 0.75rem;
	color: #9ca3af;
	transition: color 0.2s ease;
}

.fleet-table th:hover .sort-indicator {
	color: #6b7280;
}

/* Back Button */
.fleet-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: #ff7043;
	color: white;
	border: none;
	border-radius: 6px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.fleet-back-btn:hover {
	background-color: #f4511e;
	color: white;
	text-decoration: none;
}

/* Fleet Count Badge */
.fleet-count {
	background: #e0f2fe;
	color: #0277bd;
	padding: 4px 12px;
	border-radius: 16px;
	font-size: 0.875rem;
	font-weight: 500;
}

/* Filter Labels and Controls - Enhanced Visibility */
.fleet-filter-label {
	color: #64748b !important; /* Harmonize with main page */
	font-weight: 500 !important;
	font-size: 0.8125rem !important;
	margin-bottom: 8px !important;
	display: block !important;
}

/* Apply compact label styling inside enhanced filter block */
.fleet-filters-enhanced label {
	color: #64748b !important;
	font-weight: 500 !important;
	font-size: 0.8125rem !important;
}

.fleet-filter-select,
.fleet-filter-input {
	background-color: #ffffff !important;
	border: 2px solid #d1d5db !important;
	color: #111827 !important;
	font-weight: 500 !important;
	font-size: 0.8125rem !important; /* Compact: was 0.875rem */
	padding: 8px 10px !important; /* Slightly reduced padding */
	border-radius: 6px !important;
	transition: all 0.2s ease !important;
}

.fleet-filter-select:focus,
.fleet-filter-input:focus {
	border-color: #3b82f6 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.fleet-filter-select option {
	background-color: #ffffff !important;
	color: #111827 !important;
	padding: 8px !important;
}

.fleet-filter-input::placeholder {
	color: #6b7280 !important;
	font-style: italic !important;
}

/* Filter Container Enhanced */
.fleet-filters-enhanced {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 12px !important;
	padding: 20px !important;
	margin-bottom: 24px !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Fleet Database specific responsive adjustments */
@media (max-width: 1024px) {
	.fleet-filters {
		padding: 12px;
	}

	.fleet-filter-grid {
		gap: 12px;
	}
}

@media (max-width: 640px) {
	.fleet-table th,
	.fleet-table td {
		padding: 8px 12px;
		font-size: 0.8rem;
	}

	.fleet-action-btn {
		padding: 4px 8px;
		font-size: 0.8rem;
	}
}
