/*
 * O.Convertor Tools - URL Encoder/Decoder Styles (V13)
 * ---------------------------------------------------------
 */

/* 1. Global Styles (Light Theme Default) */
body {
  background-color: #f9fafb; /* gray-50 */
  font-family: "Inter", sans-serif;
  color: #1f2937; /* gray-800 */
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* 2. Content Section Components (Light Theme) */
.content-section {
  max-width: 48rem; /* Reduced max-width for better readability */
  margin: 3rem auto 0;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin-bottom: 1rem;
}

.section-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151; /* gray-700 */
}

.section-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #374151; /* gray-700 */
}

.section-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/*
 * 3. Tool-Specific Styles
 * -----------------------------------------
 */

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.tool-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.primary-btn {
  background-color: #4f46e5; /* indigo-600 */
  color: #ffffff;
  border-color: #4f46e5;
}

.primary-btn:hover {
  background-color: #4338ca; /* indigo-700 */
}

.secondary-btn {
  background-color: #ffffff;
  color: #4338ca; /* indigo-700 */
  border-color: #e0e7ff; /* indigo-100 */
}

.secondary-btn:hover {
  background-color: #f9fafb; /* gray-50 */
  border-color: #c7d2fe; /* indigo-200 */
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563; /* gray-600 */
  background-color: #f3f4f6; /* gray-100 */
  border: 1px solid #e5e7eb; /* gray-200 */
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #e5e7eb; /* gray-200 */
    border-color: #d1d5db; /* gray-300 */
    color: #1f2937; /* gray-800 */
}

textarea {
    resize: vertical;
}

/*
 * Dark Theme Overrides
 * -----------------------------------------
 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0d1117;
    color: #c9d1d9;
  }

  .content-section {
    background-color: #161b22;
    border-color: #30363d;
  }
  
  .section-title {
    color: #f0f6fc;
  }
  
  .section-text,
  .section-list {
    color: #c9d1d9;
  }

  /* Tool-specific dark overrides */
  .secondary-btn {
    background-color: #1f2937; /* gray-800 */
    color: #a5b4fc; /* indigo-300 */
    border-color: #374151; /* gray-700 */
  }

  .secondary-btn:hover {
    background-color: #374151; /* gray-700 */
    border-color: #4f46e5; /* indigo-600 */
  }
  
  #output-text {
      background-color: #1f2937; /* gray-800 */
  }

  .control-btn {
    color: #9ca3af; /* gray-400 */
    background-color: #374151; /* gray-700 */
    border-color: #4b5563; /* gray-600 */
  }

  .control-btn:hover {
    background-color: #4b5563; /* gray-600 */
    border-color: #6b7280; /* gray-500 */
    color: #f9fafb; /* gray-50 */
  }

}

