/**
 * Reusable Header Component Styles
 * PT Emas Antam Indonesia - COD Application
 * Version: 1.0.6
 */

/* Header Container */
.navbar.fixed-top {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
	border-bottom: 2px solid #e3f2fd;
	box-shadow: 0 2px 10px rgba(36, 127, 204, 0.1);
	padding: 0.5rem 0.75rem;
}

/* Top Header Layout */
.top-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	padding: 0 0.25rem;
}

/* Logo Styling */
.top-header .logo {
	height: 2.25rem;
	width: auto;
	padding: 0.2rem 0.4rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.top-header .logo:hover {
	transform: scale(1.05);
}

/* Links in Header */
.top-header a {
	color: #247FCC !important;
	text-decoration: none;
	transition: all 0.3s ease;
}

.top-header a:hover {
	color: #19416B !important;
	transform: translateY(-1px);
}

/* User Info Section */
.header-user-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #333;
}

.user-name-display {
	font-weight: 600;
	font-size: 0.85rem;
	display: none;
	color: #333;
}

@media (min-width: 576px) {
	.user-name-display {
		display: block;
	}
}

.user-name-display i {
	color: #247FCC;
	margin-right: 0.25rem;
}

/* Page Title (for pages without user info) */
.page-title-display {
	font-weight: 700;
	font-size: 1.1rem;
	color: #247FCC;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.page-title-display i {
	font-size: 1.2rem;
}

/* Logout/Back Button */
.logout-btn {
	background: #ffffff;
	color: #247FCC !important;
	padding: 0.4rem 0.9rem;
	border-radius: 18px;
	font-weight: 700;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	white-space: nowrap;
	border: 2px solid #247FCC;
	letter-spacing: 0.3px;
	box-shadow: 0 2px 6px rgba(36, 127, 204, 0.2);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.logout-btn:hover {
	background: #247FCC;
	color: white !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(36, 127, 204, 0.4);
	border-color: #19416B;
}

.logout-btn i {
	font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 575px) {
	.navbar.fixed-top {
		padding: 0.4rem 0.5rem;
	}

	.top-header .logo {
		height: 2rem;
	}

	.logout-btn {
		padding: 0.3rem 0.7rem;
		font-size: 0.8rem;
	}

	.page-title-display {
		font-size: 0.95rem;
	}

	.page-title-display i {
		font-size: 1rem;
	}
}
