:root {
  --lactalis-navy: #031943;
  --lactalis-blue: #005aa8;
  --lactalis-cyan: #12a8df;
  --lactalis-gray-dark: #102238;
  --lactalis-gray-light: #f5fbff;
  --lactalis-muted: #62748d;
  --lactalis-success: #009f70;
  --lactalis-warning: #f59e0b;
  --lactalis-danger: #c92838;
  --font-family: Aptos, "Segoe UI", Tahoma, sans-serif;
}

/* Global App Header Styles */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--lactalis-navy) 0%, #07377d 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--lactalis-cyan);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-family: var(--font-family);
  margin-bottom: 24px;
  border-radius: 8px;
}

.app-header .header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.app-header .update-status {
  font-size: 12px;
  color: var(--lactalis-gray-light);
  opacity: 0.85;
}

.app-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button style for back navigation */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
  font-family: var(--font-family);
}

.btn-back:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

/* Styling for portal cards (central portal layout integration) */
.card-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: rgba(16, 34, 56, 0.08);
}

/* Loading overlay / spinner */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  font-size: 16px;
  color: var(--lactalis-muted);
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 90, 168, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 90, 168, 0.1);
  border-left-color: var(--lactalis-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

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