.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #e6f2ff;
  color: #333;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.header-datetime {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.header-spacer {
  height: 0.5rem;
}

.header-coordinates {
  font-size: 0.9rem;
  font-weight: bold;
}

.header-astro {
  font-size: 0.85rem;
  font-weight: bold;
}

.app-main {
  flex: 1;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.error-container h2 {
  color: #e53e3e;
  margin-bottom: 1rem;
}

.error-container button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.error-container button:hover {
  background-color: #5568d3;
}

@media (max-width: 768px) {
  .app-header h1 {
    font-size: 1.8rem;
  }
  
  .app-main {
    padding: 1rem;
  }
}
