/**
 * Modern CSS for JSON ↔ TOON Converter
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #7c3aed;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #111827;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
  --bg: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* Header */
.header {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.header-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.header-format-toggle {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.format-toggle {
  flex: 1;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.format-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.format-toggle.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-devrim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.btn-devrim:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-devrim i {
  font-size: 0.95rem;
}

/* Mode Selector */
.mode-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.mode-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Mode Content */
.mode-content {
  display: none;
}

.mode-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Converter Container */
.converter-container {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* Direction Selector */
.direction-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.direction-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.direction-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg);
}

.direction-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.swap-btn {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.swap-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Token Stats */
.token-stats {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.token-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.token-stats .stats-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.token-stats .stats-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.token-stats .stats-header i {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-label i {
  font-size: 0.9rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-item.stat-savings {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-item.stat-savings .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-item.stat-savings .stat-value {
  color: var(--white);
}

/* Editor Container */
.editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 968px) {
  .editor-container {
    grid-template-columns: 1fr;
  }
}

.editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
}

.panel-header h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.panel-actions {
  display: flex;
  gap: 5px;
}

.btn-icon {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-icon i {
  pointer-events: none;
}

textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  transition: var(--transition);
  background: var(--white);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
  padding: 0 4px;
  font-family: 'Consolas', 'Monaco', monospace;
}

.char-counter.warning {
  color: #f59e0b;
  font-weight: 600;
}

.char-counter.danger {
  color: #ef4444;
  font-weight: 600;
}

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

/* Messages */
.error-message {
  display: none;
  background: #fee;
  color: var(--danger);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  margin-top: 10px;
  font-size: 0.9rem;
  border-left: 4px solid var(--danger);
}

.stats-message {
  display: none;
  background: #eff6ff;
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  border: 1px solid #bfdbfe;
  font-weight: 500;
}

.stats-message strong {
  color: var(--dark);
  font-weight: 600;
}

.token-stat {
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}

.token-stat-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 4px;
}

.token-savings {
  color: var(--success) !important;
}

/* Action Bar */
.action-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
  background: var(--light-gray);
  color: var(--gray);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--gray);
  color: var(--white);
}

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

.btn-success:hover {
  background: #38a169;
}

/* File Upload */
.file-converter-container {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.upload-zone {
  border: 3px dashed var(--light-gray);
  border-radius: var(--border-radius);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin: 20px 0;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: #f0f4ff;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.upload-zone h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.upload-zone p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 5px 0;
}

/* File Info */
.file-info {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 20px 0;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.file-meta {
  flex: 1;
}

.file-meta h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.file-meta p {
  color: var(--gray);
  font-size: 0.9rem;
}

.btn-remove {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-remove:hover {
  background: var(--danger);
  color: var(--white);
}

/* Progress */
.progress-container {
  margin: 20px 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: #e2e8f0;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 15px;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

#progressText {
  color: var(--gray);
  font-weight: 500;
}

/* Result Container */
.result-container {
  background: #f0fdf4;
  border: 2px solid var(--success);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}

.result-container h3 {
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.result-header i {
  font-size: 2rem;
  color: var(--success);
}

.result-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Info Section */
.info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.info-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.info-card p {
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-card ul li {
  color: var(--gray);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-card ul li i {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.info-card ul li:last-child {
  padding-bottom: 0;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-map iframe {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  padding: 8px 0;
}

.contact-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.contact-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--primary);
}

.contact-link.whatsapp:hover {
  color: #25D366;
}

.contact-link.whatsapp i {
  color: #25D366;
}

.footer-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-large {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.footer-brand-large i {
  color: var(--primary);
}

.footer-desc {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-copyright {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
  width: 100%;
  font-size: 1.1rem;
  color: var(--gray);
  font-family: 'Dancing Script', cursive;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-copyright a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  position: relative;
  transition: var(--transition);
}

.footer-copyright a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-copyright a:hover::after {
  width: 100%;
}

.footer-copyright span {
  font-size: 1.1rem;
  margin-top: 4px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .header-tagline {
    display: none;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-map iframe {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-about {
    align-items: center;
  }

  .contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    justify-content: center;
  }

  .footer-copyright {
    justify-content: center;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 10px;
    max-width: 100%;
  }

  .header {
    padding: 12px 16px;
    border-radius: 0;
    margin: 0;
    margin-bottom: 12px;
  }

  .header-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .header-left {
    padding-left: 0;
    border-left: none;
    flex: 1;
    text-align: left;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header-tagline {
    display: none;
  }

  .header-right {
    width: auto;
    flex-direction: row;
    gap: 8px;
  }

  .lang-switch {
    width: auto;
    margin: 0;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: auto;
  }

  .btn-devrim {
    display: none;
  }

  .header-format-toggle {
    display: none;
  }

  /* Mode Selector */
  .mode-selector {
    margin: 12px 16px;
    gap: 8px;
  }

  .mode-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
  }

  /* Converter Container */
  .converter-container,
  .file-converter-container {
    padding: 16px;
    border-radius: 12px;
    margin: 0 10px;
    box-shadow: var(--shadow);
  }

  /* Direction Selector */
  .direction-selector {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .direction-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
  }

  .swap-btn {
    order: 2;
    transform: rotate(90deg);
    align-self: center;
  }

  /* Token Stats - Horizontal Layout */
  .token-stats {
    padding: 16px;
    margin: 16px 10px;
    border-radius: 16px;
  }

  .token-stats .stats-header {
    margin-bottom: 16px;
  }

  .token-stats .stats-header h3 {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-item {
    padding: 12px 8px;
    border-radius: 12px;
    gap: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-label {
    font-size: 0.65rem;
    margin-bottom: 4px;
    justify-content: center;
  }

  .stat-label i {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-item.stat-savings {
    padding: 12px 8px;
  }

  .stat-item.stat-savings .stat-value {
    font-size: 1.4rem;
  }

  /* Editor Container */
  .editor-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .editor-panel {
    width: 100%;
    min-height: 280px;
  }

  .panel-header {
    padding: 10px 0;
    margin-bottom: 8px;
  }

  .panel-header h3 {
    font-size: 0.95rem;
  }

  .panel-actions {
    gap: 6px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.9rem;
    padding: 8px;
  }

  textarea {
    font-size: 13px;
    min-height: 220px;
    padding: 12px;
  }

  /* Action Bar */
  .action-bar {
    padding: 16px 0;
    margin: 0;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* File Upload */
  .upload-zone {
    padding: 40px 20px;
    margin: 16px 0;
    border-radius: 12px;
  }

  .upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
  }

  .upload-zone h3 {
    font-size: 1rem;
  }

  .upload-zone p {
    font-size: 0.85rem;
  }

  .file-info {
    margin: 16px 0;
    padding: 16px;
    border-radius: 12px;
  }

  .file-details {
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .file-icon {
    font-size: 2rem;
  }

  .btn-remove {
    width: 40px;
    height: 40px;
  }

  /* Progress */
  .progress-container {
    margin: 16px 0;
  }

  .result-container {
    margin: 16px 0;
    padding: 20px;
  }

  .result-links {
    flex-direction: column;
    gap: 12px;
  }

  /* Info Section */
  .info-section {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 10px;
  }

  .info-card {
    padding: 20px;
    border-radius: 12px;
  }

  .info-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .info-icon i {
    font-size: 1.3rem;
  }

  .info-card h3 {
    font-size: 1.05rem;
  }

  .info-card p,
  .info-card ul li {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 30px 16px;
    border-radius: 0;
    margin-top: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-map iframe {
    width: 100%;
    height: 200px;
  }

  .footer-about {
    align-items: center;
  }

  .footer-brand-large {
    font-size: 1.3rem;
  }

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

  .footer-copyright {
    justify-content: center;
    font-size: 1rem;
  }

  .footer-copyright a {
    font-size: 1.2rem;
  }

  .contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    justify-content: center;
  }

  /* Error Messages */
  .error-message {
    font-size: 0.85rem;
    padding: 10px 12px;
    margin: 10px 0;
  }

  /* Char Counter */
  .char-counter {
    font-size: 0.7rem;
  }

  /* Scrollbar */
  textarea::-webkit-scrollbar {
    width: 6px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 8px;
  }

  .header-logo {
    font-size: 1.1rem;
  }

  .mode-selector {
    margin: 10px 8px;
  }

  .mode-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .converter-container,
  .file-converter-container {
    margin: 0 8px;
    padding: 14px;
  }

  .token-stats {
    margin: 12px 8px;
    padding: 14px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-item {
    padding: 10px 6px;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .info-section {
    margin: 16px 8px;
  }

  .info-card {
    padding: 16px;
  }
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

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

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: var(--gray);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary);
  color: var(--white);
}