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

body {
  background: linear-gradient(135deg, #fff8ec 0%, #ffeaa7 50%, #fab1a0 100%);
  color: #2d3436;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

body.dark {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #74b9ff 100%);
  color: #ddd;
}

body.pink {
  background: linear-gradient(135deg, #fff0f6 0%, #ffb6c1 100%);
  color: #c2185b;
}

body.pink .header, body.pink .feature-card, body.pink .status-bar {
  background: rgba(255,182,193,0.15) !important;
  color: #c2185b !important;
}

body.pink .control-btn, body.pink .floating-btn {
  background: linear-gradient(135deg, #ff69b4, #ffb6c1) !important;
  color: white !important;
}

body.pink .feature-card {
  border: 1.5px solid #ff69b4;
}

.header {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
  to { text-shadow: 2px 2px 20px rgba(255,105,180,0.6); }
}

.status-bar {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  background: rgba(0,0,0,0.1);
  border-radius: 15px;
  margin: 1rem;
  flex-wrap: wrap;
}

.status-item {
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  margin: 0.2rem;
  font-size: 0.8rem;
  backdrop-filter: blur(5px);
}

.container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.control-btn {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.control-btn:active {
  transform: translateY(0);
}

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

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

.output-section {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255,255,255,0.2);
  min-height: 300px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.25);
}

.camera-preview {
  width: 100%;
  max-width: 300px;
  height: 200px;
  background: #000;
  border-radius: 10px;
  margin: 1rem auto;
  display: none;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894, #00cec9);
  width: 0%;
  transition: width 0.3s ease;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7675, #fd79a8);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(360deg);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  display: none;
  z-index: 1001;
  backdrop-filter: blur(10px);
}

.weather-widget {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  margin: 1rem 0;
}

.qr-display {
  text-align: center;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .control-panel { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .header h1 { font-size: 1.5rem; }
}

.hidden { display: none !important; }

.pulse {
  animation: pulse 1s infinite;
}

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

.splash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #fff0f6 0%, #ffb6c1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s;
}

.splash-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 24px;
  box-shadow: 0 4px 24px #ff69b4aa;
}

.counter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.counter-box button {
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: none;
  background: #ffb6c1;
  color: #c2185b;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.counter-box button:hover {
  background: #ff69b4;
  color: white;
}