/* Refactor CSS to use CSS variables for consistent theming */
:root {
  --primary-color: #00AEEF;
  --secondary-color: #00796b;
  --background-color: #f4f4f9;
  --text-color: #333;
  --hover-color: #008FCC;
  --light-background: #e3f2fd;
  --light-hover: #bbdefb;
  --error-color: #d84315;
  --error-background: #fbe9e7;
}

/* General Styles */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

label {
  font-weight: bold;
  margin-right: 10px;
}

div {
  box-sizing: border-box;
}

/* Header Styles */
header {
  background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
  color: white;
  padding: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

header img {
  position: absolute;
  left: 20px;
  height: 48px;
  width: auto;
  filter: invert(1);
}

/* Button Styles */
button {
  background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

button:hover {
  background-color: var(--hover-color);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-background);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Other global styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}