/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.5rem;
}

.sub {
  text-align: center;
  color: #4b5563;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Intro Box */
.intro-box {
  background-color: #e0f2fe;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e40af;
  font-size: 1rem;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tabs button {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border: none;
  background-color: #e5e7eb;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.tabs button.active {
  background-color: #3b82f6;
  color: white;
}

.tabs button:hover {
  background-color: #2563eb;
  color: white;
}

/* Upload Section */
.upload-section {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 1.5rem;
}

.upload-section input[type="file"] {
  display: block;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  width: 100%;
  max-width: 400px;
}

.note {
  color: #4b5563;
  font-size: 0.875rem;
}

/* Text Input Section */
#text-input-section {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

#text-manual {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  resize: vertical;
  font-size: 1rem;
}

#docx-file-input {
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

/* Result Box */
#result-box {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

#text-output {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #f9fafb;
  font-size: 1rem;
}

.stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  justify-content: center;
}

#copy-btn, #download-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#copy-btn {
  background-color: #10b981;
  color: white;
}

#copy-btn:hover {
  background-color: #059669;
}

#download-btn {
  background-color: #3b82f6;
  color: white;
}

#download-btn:hover {
  background-color: #2563eb;
}

/* Guide */
.guide {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.guide h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.guide ol {
  padding-left: 1.5rem;
  color: #4b5563;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.footer p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tabs button {
    width: 100%;
    max-width: 300px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}

.hidden {
  display: none;
}