/* TrendMaster Styles - Updated for Futuristic Design */

/* Base Styles */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  --dark-color: #111827;
  --dark-secondary: #1f2937;
  --light-color: #f9fafb;
  --light-secondary: #f3f4f6;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #7c3aed;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-default: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #059669;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Card Styles - Futuristic Design */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition-default);
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
}

.card-header h2 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Futuristic Card Variants */
.card-gradient {
  background: var(--gradient-primary);
  color: white;
}

.card-gradient .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-gradient .card-header h2 {
  color: white;
}

.card-gradient .card-header::after {
  background: white;
}

.card-dark {
  background-color: var(--dark-color);
  color: white;
}

.card-dark .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dark .card-header h2 {
  color: white;
}

.card-dark .card-header::after {
  background: var(--gradient-secondary);
}

/* Navigation - Simple Horizontal Design */
.navbar {
  background-color: #0f172a;
  padding: 0.75rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-brand::before {
  content: '|';
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-weight: 700;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin-left: 1.5rem;
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: white;
  font-weight: 600;
}

/* User profile link */
.nav-link.user-profile {
  display: flex;
  align-items: center;
}

.nav-link.user-profile i {
  margin-left: 0.5rem;
}

/* Hero Section */
.hero {
  background-color: #f3f4f6;
  padding: 4rem 0;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #4b5563;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
}

.footer-links {
  list-style: none;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

/* Dashboard */
.dashboard {
  padding: 2rem 0;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Stats Grid - Futuristic Design */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition-default);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.stat-icon {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trend Analysis */
.trend-analysis-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.trend-card {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.trend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.trend-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.trend-card p {
  color: #4b5563;
  line-height: 1.5;
}

/* Enhanced Niches Section - Futuristic Theme */
.niches-controls {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.futuristic-select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--light-color);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.futuristic-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.futuristic-select option {
  background: var(--dark-color);
  color: var(--light-color);
}

.niches-stats-summary {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.niches-stats-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.enhanced-niches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.enhanced-niche-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.enhanced-niche-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.enhanced-niche-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.enhanced-niche-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(99, 102, 241, 0.5);
}

.niche-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.niche-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-color);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.niche-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.niche-action-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.niche-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.niche-action-btn:hover::before {
  left: 100%;
}

.niche-action-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  color: var(--light-color);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.niche-action-btn.favorited {
  background: rgba(255, 193, 7, 0.2);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.niche-action-btn.favorited:hover {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.niche-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.niche-metric {
  text-align: center;
  padding: 0.75rem;
  background: rgba(17, 24, 39, 0.7);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.niche-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.niche-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.niche-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px currentColor;
}

.niche-metric-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trend-score-high {
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.trend-score-medium {
  color: var(--warning-color);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.trend-score-low {
  color: var(--danger-color);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.growth-rate-high {
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.growth-rate-medium {
  color: var(--warning-color);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.growth-rate-low {
  color: var(--gray-500);
}

.niche-card-description {
  color: var(--gray-300);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.niche-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.niche-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.niche-tag:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.niche-tag-more {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.niche-tag-more:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
  border-color: rgba(99, 102, 241, 0.6);
}

/* Niche Full View Styles */
.niche-full-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.niche-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 1rem;
  padding: 3rem 2rem;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.niche-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.niche-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.niche-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.niche-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.metric-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.niche-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.action-btn.primary {
  background: var(--primary);
  color: white;
}

.action-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
  background: var(--secondary);
  color: white;
}

.action-btn.secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.tertiary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.action-btn.tertiary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-title i {
  color: var(--primary);
}

.tags-section {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.niche-tag-full {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.niche-tag-full:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.content-ideas-section,
.market-insights-section {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.ideas-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.idea-card,
.insight-card {
  background: var(--background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.idea-card:hover,
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.idea-card h3,
.insight-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.insight-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.insight-icon {
  background: var(--primary);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
}

.back-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.error-content {
  max-width: 400px;
}

.error-content i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-content h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.no-tags {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .niche-full-view {
    padding: 1rem;
  }

  .niche-header {
    padding: 2rem 1rem;
  }

  .niche-title {
    font-size: 2rem;
  }

  .niche-metrics {
    gap: 1rem;
  }

  .metric {
    padding: 0.75rem 1rem;
  }

  .niche-actions {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .ideas-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    flex-direction: column;
    text-align: center;
  }
}

.niche-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.niche-category-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  color: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.3);
  text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
}

.niche-quick-actions {
  display: flex;
  gap: 0.5rem;
}

.niche-quick-btn {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--gray-300);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.niche-quick-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  transition: all 0.5s ease;
}

.niche-quick-btn:hover::before {
  left: 100%;
}

.niche-quick-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Monthly Niches */
.monthly-niche-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.monthly-niche-header {
  padding: 1rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.monthly-niche-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.monthly-niche-body {
  padding: 1rem;
}

.monthly-niche-description {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.monthly-niche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.monthly-niche-tag {
  background-color: #e5e7eb;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* Event Details */
.event-detail-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.event-description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-tag {
  background-color: #e5e7eb;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.event-design-types {
  margin-top: 1rem;
}

.event-design-type {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* New styles for design-focused fields */
.prompt-ideas-list,
.design-inspiration-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.prompt-ideas-list li,
.design-inspiration-list li {
  margin-bottom: 0.5rem;
}

.stock-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.stock-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.mt-4 {
  margin-top: 1rem;
}

/* Calendar - Futuristic Design */
.calendar-container {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: var(--transition-default);
}

.calendar-container:hover {
  box-shadow: var(--card-shadow-hover);
}

/* FullCalendar Customizations */
#calendar {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.fc {
  font-family: 'Inter', sans-serif;
}

.fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fc-button-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-dark) !important;
}

.fc-button-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.fc-event {
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.8rem;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fc-daygrid-day.fc-day-today {
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.fc-daygrid-day-number {
  font-weight: 600;
}

.fc-daygrid-day.fc-day-has-events {
  background-color: rgba(99, 102, 241, 0.05);
}

.fc-daygrid-day.fc-day-selected {
  background-color: rgba(99, 102, 241, 0.2) !important;
}

.fc-header-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem !important;
}

/* Selected date highlight */
.selected-date {
  background-color: rgba(99, 102, 241, 0.2) !important;
  position: relative;
}

.selected-date::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

/* Events list for selected date */
.selected-date-events {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  padding-top: 1.25rem;
}

.selected-date-events-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.no-events-message {
  color: #6b7280;
  font-style: italic;
  text-align: center;
  padding: 1.25rem 0;
  background-color: rgba(243, 244, 246, 0.5);
  border-radius: 0.5rem;
}

/* Dashboard Calendar */
.dashboard-calendar {
  height: 350px;
  overflow: hidden;
}

/* Upcoming Events Section */
.upcoming-events {
  margin-top: 1.5rem;
}

.upcoming-events-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Legacy event item styles - overridden by futuristic theme */
.event-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition-default);
  border-left: 3px solid var(--primary-color);
}

.event-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Override for futuristic theme */
.futuristic-event-card.event-item {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-left: 1px solid rgba(79, 70, 229, 0.3);
  box-shadow: none;
}

.futuristic-event-card.event-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  font-weight: 700;
}

.event-date-day {
  font-size: 1.25rem;
  line-height: 1;
}

.event-date-month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-content {
  flex: 1;
}

.event-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark-color);
}

.event-item-category {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Featured Events */
.featured-event {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-default);
}

.featured-event:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.featured-event-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.9;
  z-index: 1;
}

.featured-event-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: white;
}

.featured-event-date {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.featured-event-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.featured-event-description {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.featured-event-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.featured-event-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Niche Cards */
.niche-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.niche-card:hover {
  transform: translateY(-5px);
}

.niche-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.niche-card-content {
  padding: 1rem;
}

.niche-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.niche-card-description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.niche-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.niche-card-tag {
  background-color: #e5e7eb;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.favorite-btn {
  background-color: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.favorite-btn:hover, .favorite-btn.active {
  color: #f59e0b;
}

.pro-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Feature List */
.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  color: var(--success-color);
}

.text-success {
  color: var(--success-color);
}

.text-primary {
  color: var(--primary-color);
}

.text-xl {
  font-size: 1.25rem;
}

.fa-4x {
  font-size: 4rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Authentication */
.auth-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.auth-divider-text {
  padding: 0 0.5rem;
  color: #6b7280;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.social-btn:hover {
  background-color: #f3f4f6;
}

.social-btn-icon {
  margin-right: 0.5rem;
}

/* Pricing */
.pricing {
  padding: 4rem 0;
}

.pricing-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  text-align: center;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-cta {
  margin-top: 1.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trend-analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr 2fr;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trend-analysis-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Navigation - Simple Design */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Utility class for left margin */
.ml-4 {
  margin-left: 1rem;
}

.ml-8 {
  margin-left: 2rem;
}

.list-none {
  list-style: none;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block !important;
  }

  .navbar .container > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .flex.items-center:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .navbar .flex.items-center:last-child {
    display: none;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #0f172a;
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    margin-left: 0;
  }

  .navbar-nav.active {
    right: 0;
    display: flex;
  }

  .nav-item {
    margin: 1rem 0;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    display: block;
  }

  .nav-link.user-profile {
    justify-content: center;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.pagination-info {
  color: var(--gray-300);
  font-size: 0.875rem;
  text-align: center;
}

.pagination-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 100px;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.pagination-btn.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-page-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.pagination-page-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pagination-ellipsis {
  color: var(--gray-500);
  font-size: 0.875rem;
  padding: 0 0.5rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-container {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pagination-btn {
    min-width: 80px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .pagination-page-btn {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .pagination-pages {
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .pagination-pages {
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem;
  }

  .pagination-page-btn {
    flex-shrink: 0;
  }
}

/* Clickable Stat Card Styles */
.clickable-stat-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.clickable-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.clickable-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
  border-color: var(--accent-color);
}

.clickable-stat-card:hover::before {
  left: 100%;
}

.clickable-stat-card:hover .futuristic-stat-icon {
  transform: scale(1.1);
  color: var(--accent-color);
}

.clickable-stat-card:hover .futuristic-stat-value {
  color: var(--accent-color);
}

.clickable-stat-card:active {
  transform: translateY(-2px);
}

