:root {
  --primary-color: #6441A5;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --purple-color: #9c27b0;
  --blue-color: #2196f3;
  --danger-color: #f44336;
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --retro-font: 'Press Start 2P', cursive;
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: var(--font-family-base);
  background-color: #f4f6f9;
  line-height: 1.6;
}

/* Responsive Adjustments */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.onboarding-wizard .progress {
  height: 5px;
  margin-bottom: 2rem;
}

.onboarding-wizard .onboarding-step {
  display: none;
}

.onboarding-wizard .onboarding-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.token-dashboard .token-summary {
  background-color: var(--primary-color);
  color: white;
}

.token-dashboard .benefit-item {
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.token-dashboard .benefit-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 576px) {
  .card {
    margin-bottom: 1rem;
  }
  
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
  
  .navbar-brand img {
    max-height: 30px;
  }
}

@media (min-width: 577px) and (max-width: 767.98px) {
  h1, .h1 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand img {
    max-height: 35px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content {
    padding-right: 3rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .hero-content h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
}

/* Ultra-wide screens */
@media (min-width: 1800px) {
  .container {
    max-width: 1600px;
  }
  
  .hero-section {
    padding: 8rem 0;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.5rem;
  }
  
  .features-section .card-body {
    padding: 2.5rem;
  }
  
  .feature-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
  }
}

/* Admin dashboard specific styling for large screens */
@media (min-width: 1600px) {
  .admin-dashboard .card {
    margin-bottom: 2rem;
  }
  
  .admin-dashboard .row {
    margin-bottom: 2.5rem;
  }
  
  .admin-dashboard .quick-action-card {
    height: 100%;
    min-height: 350px;
  }
  
  .admin-dashboard .system-status-card {
    height: 100%;
    min-height: 350px;
  }
  
  .admin-dashboard .token-analytics-card {
    min-height: 450px;
  }
  
  .admin-dashboard .profit-distribution-card {
    min-height: 450px;
  }
  
  .admin-dashboard .card-header {
    padding: 1.25rem 1.5rem;
  }
  
  .admin-dashboard .table th, 
  .admin-dashboard .table td {
    padding: 1rem 1.25rem;
  }
}

/* Customer Portal Styling */
.customer-portal .token-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-portal .bi-stars,
.customer-portal .bi-gem,
.customer-portal .bi-ticket-perforated,
.customer-portal .bi-award {
  font-size: 1.25rem;
}

/* Fix missing icons by adding fallbacks */
/* Premium token icon style */
.token-icon .fa-gem {
  color: #9c27b0;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
}

/* Ensure the token icon container properly positions the icon */
.token-icon.rounded-circle.bg-purple.bg-opacity-10 {
  position: relative;
  overflow: visible;
}

.token-icon.rounded-circle.bg-purple.bg-opacity-10:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(156,39,176,0.1);
  border-radius: 50%;
  z-index: 1;
}

.token-collection .card {
  max-height: 350px;
  overflow-y: auto;
}

/* Fix for token filter dropdown appearing behind cards */
.dropdown-menu {
  z-index: 1050 !important;
}

.token-collection {
  overflow: visible !important;
}

.token-collection .card-body {
  overflow-y: auto;
  max-height: 350px;
}

.customer-portal .card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.customer-portal .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.customer-portal .benefit-item {
  transition: background-color 0.2s;
}

.customer-portal .benefit-item:hover {
  background-color: rgba(59, 113, 202, 0.05) !important;
}

.customer-portal .payout-item {
  transition: background-color 0.2s;
}

.customer-portal .payout-item:hover {
  background-color: rgba(40, 167, 69, 0.05);
}

.token-benefits .badge {
  transition: all 0.2s;
}

.token-benefits .badge:hover {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Color classes for token types */
.bg-purple {
  background-color: var(--purple-color) !important;
}

.text-purple {
  color: var(--purple-color) !important;
}

.bg-blue {
  background-color: var(--blue-color) !important;
}

.text-blue {
  color: var(--blue-color) !important;
}

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

.btn-purple:hover {
  background-color: #7b1fa2;
  border-color: #7b1fa2;
  color: white;
}

/* Compact card styling */
.card-body.p-3 {
  padding: 0.75rem !important;
}

@media (min-width: 992px) {
  .card-body.p-3 {
    padding: 1rem !important;
  }
}

/* Login page retro styling */
.login-retro-title {
  font-family: var(--retro-font);
  color: #ff6b6b;
  text-shadow: 3px 3px 0 #333;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.5;
  animation: pulse 2s infinite;
}

/* Force consistent font on mobile devices */
@media (max-width: 576px) {
  .login-retro-title {
    font-family: var(--retro-font) !important;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
