/* Improved Base CSS for Cacao Framework */

/* Reset and Box-Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global Styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffd9bf;
  color: #333;
}

/* Navbar Styles */
.sidebar {
  background-color: #333;
  color: #fff;
}

.sidebar .brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: url('/static/images/hero.jpg') center/cover no-repeat;
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
}

/* Section Styles */
.section {
  padding: 2rem 1rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section .text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.section .button {
  background-color: #2ecc71;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.section .button:hover {
  background-color: #27ae60;
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Refresh Overlay */
.refresh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(139, 69, 19, 0.9); /* More opaque brown */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

.refresh-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.refresh-overlay .spinner {
  width: 80px; /* Larger spinner */
  height: 80px;
  border: 8px solid #fff; /* Thicker border */
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px; /* Add space below spinner */
}

.refresh-overlay .message {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Manual refresh button */
.manual-refresh {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #8B4513;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 7px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.manual-refresh:hover {
  background-color: #A0522D;
}
