/* BitWatt Design System */

:root {
  /* Brand Colors */
  --bitwatt-blue: #0066FF;
  --bitwatt-green: #00FF88;
  --bitwatt-orange: #FF6B35;
  --dark-gray: #1A1A1A;
  --light-gray: #F5F7FA;
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00FF88 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  /* Typography */
  --font-inter: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-card: 0 10px 25px rgba(0, 102, 255, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 102, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
}

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

body {
  font-family: var(--font-inter);
  background: linear-gradient(135deg, #0066FF 0%, #00FF88 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--bitwatt-blue);
  border-radius: 4px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
}

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes counter {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Utility Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-counter {
  animation: counter 0.8s ease-out;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NFT Rarity Badges */
.badge-bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
  color: white;
}

.badge-silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
  color: white;
}

.badge-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: white;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.badge-diamond {
  background: linear-gradient(135deg, #B9F2FF 0%, #0099FF 100%);
  color: white;
  box-shadow: 0 0 25px rgba(185, 242, 255, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.badge-legendary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF1744 100%);
  color: white;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Custom Button Styles */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--bitwatt-blue);
  border: 2px solid var(--bitwatt-blue);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--bitwatt-blue);
  color: white;
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-glass {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

/* Revenue Card Styles */
.revenue-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

/* Vehicle NFT Card Styles */
.vehicle-nft-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.vehicle-nft-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.vehicle-nft-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vehicle-nft-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.rarity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Statistics Counter */
.stat-counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bitwatt-blue);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.stat-change {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.stat-change.positive {
  color: var(--bitwatt-green);
}

.stat-change.negative {
  color: var(--bitwatt-orange);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Navigation Styles */
.nav-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #E5E7EB;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--bitwatt-green);
}

.toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(30px);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #E5E7EB;
  border-top: 4px solid var(--bitwatt-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    margin: 8px;
  }
  
  .stat-counter {
    font-size: 2rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
} 