html,
body {
	margin: 0;
	padding: 0;
	font: 14px/1.5em Arial, Verdana, sans-serif;
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.header {
	position: relative;
	z-index: 1000;
	display: flex;
	align-items: center;
	width: 100%;
	background: #474747;
	color: #fff;
}
.header.bb {
	border-bottom: 4px solid #252525;
}
.header-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none; /* Allow clicks to pass through to elements behind */
	z-index: 1;
}
.header-title h1 {
	margin: 0;
	padding: 4px 12px;
	font-size: 16px;
	font-weight: 600;
	background: linear-gradient(135deg, #ffffff, #e8e8e8);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.5px;
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	line-height: 1.2;
	pointer-events: auto; /* Re-enable pointer events for the title itself */
}

.header-links {
	padding: 10px;
	margin-left: auto; /* Push to the right side */
	display: flex;
	align-items: center;
	z-index: 2; /* Ensure it's above the title */
}
.header-links a {
	color: #fff;
	text-decoration: underline;
}
.header-links a:hover {
	text-decoration: none;
}

/* Toast notifications */
.toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    user-select: text !important;
    min-width: 200px !important;
    max-width: 400px !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}

.toast:hover {
    opacity: 0.95 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15) !important;
}

.toast-success {
    background-color: #10b981 !important;
    border-left: 4px solid #059669 !important;
}

.toast-error {
    background-color: #ef4444 !important;
    border-left: 4px solid #dc2626 !important;
}

.toast-warning {
    background-color: #f59e0b !important;
    border-left: 4px solid #d97706 !important;
}

.toast-info {
    background-color: #3b82f6 !important;
    border-left: 4px solid #2563eb !important;
}

/* Loading overlay */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    backdrop-filter: blur(2px) !important;
}

.loading-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    text-align: center !important;
    min-width: 250px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.loading-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #3b82f6 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

.loading-text {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* Animations */
@keyframes slideIn {
    from { 
        transform: translateX(100%) !important; 
        opacity: 0 !important; 
    }
    to { 
        transform: translateX(0) !important; 
        opacity: 1 !important; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0) !important; 
        opacity: 1 !important; 
    }
    to { 
        transform: translateX(100%) !important; 
        opacity: 0 !important; 
    }
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

/* Loading Indicator */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.loading-overlay.show {
	opacity: 1;
	visibility: visible;
}

.loading-content {
	background: white;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	min-width: 200px;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2196F3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	color: #333;
	font-size: 16px;
	margin: 0;
}
