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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #FFE66D;
  min-height: 100vh;
  padding: 20px;
  color: #000;
  line-height: 1.4;
}

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

header {
  text-align: center;
  color: #000;
  margin-bottom: 40px;
  background: #FF6B6B;
  border: 6px solid #000;
  padding: 30px;
  box-shadow: 8px 8px 0px #000;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.brand-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 18px 36px;
  background: #FFE66D;
  border: 6px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 8px 8px 0px #000;
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  line-height: 28px;
  animation: pulse 2s ease-in-out infinite;
}

.brand-badge .brand-text,
.brand-badge .brand-hover {
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-badge .brand-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  opacity: 0;
  white-space: nowrap;
  width: 100%;
}

.brand-badge:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0px #000;
  background: #FFD93D;
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 8px 8px 0px #000;
  }
  50% {
    box-shadow: 10px 10px 0px #000, 0 0 20px rgba(255, 230, 109, 0.5);
  }
}

.brand-badge:hover .brand-text {
  transform: translateY(-20px);
  opacity: 0;
}

.brand-badge:hover .brand-hover {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

.converter {
  background: #FFF;
  border: 6px solid #000;
  padding: 40px;
  box-shadow: 12px 12px 0px #000;
  margin-top: 20px;
}

.mode-toggle {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.toggle-btn {
  padding: 16px 32px;
  border: 4px solid #000;
  background: #FFF;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.1s ease;
  box-shadow: 4px 4px 0px #000;
  font-family: inherit;
}

.toggle-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.toggle-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #000;
}

.toggle-btn.active {
  background: #4ECDC4;
  color: #000;
  box-shadow: 4px 4px 0px #000;
}

.input-section,
.output-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header label {
  font-weight: 800;
  color: #000;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-btn,
.copy-btn {
  padding: 10px 20px;
  border: 4px solid #000;
  background: #FFF;
  color: #000;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 3px 3px 0px #000;
  font-family: inherit;
}

.clear-btn:hover,
.copy-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000;
}

.clear-btn:active,
.copy-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px #000;
}

.copy-btn {
  background: #95E1D3;
  color: #000;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  border: 4px solid #000;
  background: #FFF;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.1s ease;
  box-shadow: 4px 4px 0px #000;
  color: #000;
}

textarea:focus {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

textarea[readonly] {
  background: #F7F7F7;
  cursor: default;
}

.convert-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.convert-btn {
  padding: 20px 60px;
  background: #FF6B6B;
  color: #000;
  border: 6px solid #000;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 8px 8px 0px #000;
  font-family: inherit;
}

.convert-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0px #000;
}

.convert-btn:active {
  transform: translate(8px, 8px);
  box-shadow: 0px 0px 0px #000;
}

.swap-icon {
  font-size: 2.5rem;
  color: #000;
  font-weight: 900;
}

.analytics {
  margin-top: 40px;
  padding: 30px;
  background: #4ECDC4;
  border: 6px solid #000;
  box-shadow: 8px 8px 0px #000;
}

.analytics h3 {
  margin-bottom: 25px;
  color: #000;
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #FFF;
  padding: 25px;
  border: 4px solid #000;
  text-align: center;
  box-shadow: 4px 4px 0px #000;
}

.stat-card.highlight {
  background: #FFE66D;
  border: 6px solid #000;
  box-shadow: 6px 6px 0px #000;
}

.stat-label {
  font-size: 0.85rem;
  color: #000;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.highlight .stat-label {
  color: #000;
  font-weight: 800;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
}

.stat-card.highlight .stat-value {
  color: #000;
}

.error-message {
  margin-top: 30px;
  padding: 20px;
  background: #FF6B6B;
  border: 4px solid #000;
  color: #000;
  font-weight: 700;
  white-space: pre-line;
  line-height: 1.6;
  box-shadow: 4px 4px 0px #000;
  font-size: 1rem;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  header {
    padding: 20px;
    border-width: 4px;
    box-shadow: 6px 6px 0px #000;
  }

  header h1 {
    font-size: 2rem;
  }

  .converter {
    padding: 20px;
    border-width: 4px;
    box-shadow: 8px 8px 0px #000;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .convert-section {
    flex-direction: column;
  }

  .swap-icon {
    transform: rotate(90deg);
  }

  .convert-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-width: 4px;
    box-shadow: 6px 6px 0px #000;
  }

  .convert-btn:hover {
    box-shadow: 3px 3px 0px #000;
  }

  .analytics {
    border-width: 4px;
    box-shadow: 6px 6px 0px #000;
  }

  .stat-card.highlight {
    border-width: 4px;
    box-shadow: 4px 4px 0px #000;
  }
}

/* Factoryze Footer Styles */
.factoryze-footer {
  margin-top: 40px;
  background: #FF6B6B;
  border: 6px solid #000;
  padding: 30px;
  box-shadow: 12px 12px 0px #000;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-info {
  margin-bottom: 25px;
}

.footer-info p {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.6;
}

.footer-info a {
  color: #000;
  text-decoration: underline;
  font-weight: 700;
  transition: all 0.1s ease;
}

.footer-info a:hover {
  color: #4ECDC4;
  text-decoration: none;
}

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

.footer-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #4ECDC4;
  color: #000;
  border: 4px solid #000;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 6px 6px 0px #000;
  font-family: inherit;
}

.footer-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0px #000;
}

.footer-btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0px 0px 0px #000;
}

@media (max-width: 768px) {
  .factoryze-footer {
    padding: 20px;
    border-width: 4px;
    box-shadow: 8px 8px 0px #000;
    margin-top: 20px;
  }

  .footer-info p {
    font-size: 0.85rem;
  }

  .footer-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-width: 3px;
    box-shadow: 4px 4px 0px #000;
  }

  .brand-badge {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-width: 4px;
    box-shadow: 6px 6px 0px #000;
    letter-spacing: 1.5px;
  }
}
