/* CSS Custom Properties - Color Configuration */
/* To change the app's primary color, update the --primary-* values below */
:root {
  /* Primary Color Scale - Orange (matching birdseye icon gradient) */
  /* Gradient: #FF8C00 (Dark Orange) → #FF4500 (Orange Red) */
  --primary-50: #fff5e6;
  --primary-100: #ffe4cc;
  --primary-600: #FF8C00;
  --primary-700: #FF4500;
  --primary-hover: #FF6900;
  --primary-900: #CC3700;

  /* Primary Shadows & Effects */
  --primary-shadow: rgba(255, 140, 0, 0.2);

  /* Gradients */
  --gradient-login-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  --gradient-login-title: linear-gradient(135deg, #FF8C00, #FF4500);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(30px) saturate(180%);
}

/* ============================================================================
   Floating Circles Background
   ============================================================================ */

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  overflow: hidden;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translateY(15px) rotate(240deg) scale(0.9);
    opacity: 0.4;
  }
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-login-bg);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  color: #1d1d1f;
  line-height: 1.6;
}

/* Top Bar - Glass Effect */
.top-bar {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #1d1d1f;
  display: flex;
  align-items: center;
}

.hamburger-btn:hover {
  color: var(--primary-600);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #1d1d1f;
  display: flex;
  align-items: center;
}

.back-btn:hover {
  color: var(--primary-600);
}

.back-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%);
}

.back-btn:hover img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(90%) saturate(1500%) hue-rotate(360deg) brightness(100%) contrast(101%);
}

.top-bar-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.top-bar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.25rem;
}

.top-bar-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
  margin-top: 0.25rem;
  text-align: left;
  line-height: 0.75rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.primary-btn {
  background: var(--primary-600);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.secondary-btn {
  background: white;
  color: #1d1d1f;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: #f9fafb;
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-btn:disabled:hover {
  background: white;
}

/* Tabs - Glass Effect */
.tabs {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
}

.tab {
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab:hover {
  color: #1d1d1f;
}

.tab.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

/* Main Content */
.main-content {
  padding: 2rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
  font-size: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

/* View Switching for SPA */
.view {
  width: 100%;
}

.view-hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .top-bar {
    padding: 0.75rem 1rem;
  }

  .top-bar-title {
    font-size: 1rem;
  }

  .top-bar-subtitle {
    font-size: 0.7rem;
  }
}
