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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 25%, #f5f0ff 50%, #fff0f5 75%, #f0fff0 100%);
  min-height: 100vh;
  color: #2c3e50;
  backdrop-filter: blur(20px);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.subtitle {
  color: rgba(44, 62, 80, 0.7);
  font-size: 1.2rem;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  gap: 15px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(44, 62, 80, 0.8);
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  font-weight: 400;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tab-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: left 0.5s;
}

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

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.4);
  color: #667eea;
  box-shadow: 
    0 15px 45px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.dashboard {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 
    0 25px 50px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.tab-content {
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.tab-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.template-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.template-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 20px 60px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.template-preview {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 20px;
  color: #667eea;
  box-shadow: 
    0 8px 25px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.template-card:hover .template-preview {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.template-label {
  color: rgba(44, 62, 80, 0.8);
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.form-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 15px 35px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.form-row {
  margin-bottom: 25px;
}

.form-row label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: rgba(44, 62, 80, 0.8);
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: rgba(44, 62, 80, 0.9);
  box-shadow: 
    0 4px 15px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 25px rgba(31, 38, 135, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
  display: flex;
  gap: 25px;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: #667eea;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  font-size: 14px;
  flex: 1;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 25px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.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: left 0.5s;
}

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

.btn-primary {
  background: rgba(102, 126, 234, 0.3);
  color: #667eea;
}

.btn-secondary {
  background: rgba(108, 117, 125, 0.2);
  color: rgba(44, 62, 80, 0.8);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  background: rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
  background: rgba(108, 117, 125, 0.3);
}

.preview-area {
  text-align: center;
  padding: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  margin: 25px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 25px rgba(31, 38, 135, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}

.preview-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.preview-box {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #667eea;
  box-shadow: 
    0 15px 35px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 24px;
  transition: all 0.3s ease;
}

.preview-box:hover {
  transform: scale(1.05);
  box-shadow: 
    0 20px 45px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.code-area {
  margin-top: 25px;
}

.code-container {
  position: relative;
}

.code-output {
  background: rgba(45, 55, 72, 0.9);
  backdrop-filter: blur(20px);
  color: #e2e8f0;
  padding: 25px;
  border-radius: 18px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 15px 35px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(74, 85, 104, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 15px rgba(31, 38, 135, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.copy-btn:hover {
  background: rgba(102, 126, 234, 0.8);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(31, 38, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.footer {
  text-align: center;
  margin-top: 50px;
  color: rgba(44, 62, 80, 0.6);
  font-weight: 300;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Animações aprimoradas */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.template-card:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.template-card:nth-child(even) {
  animation: float 6s ease-in-out infinite reverse;
  animation-delay: -3s;
}

/* Efeitos de partículas */
.dashboard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  animation: float 20s linear infinite;
  pointer-events: none;
}

@media (max-width: 768px) {
  .controls {
    grid-template-columns: 1fr;
  }
  
  .template-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 15px;
  }
  
  .dashboard {
    padding: 25px;
  }
  
  .btn-group {
    flex-direction: column;
  }
}

