/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo a {
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hero Section (Homepage only) */
.hero {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Sections */
.section {
  padding: 4rem 0;
  background: #fff;
}

.section:nth-child(even) {
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #2d3748;
}

/* Tool Grid (Homepage) */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tool Cards (Homepage) */
.tool-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tool-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.tool-card p {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tool Page Specific Styles - Universal */
.tool-main {
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.tool-subtitle {
  font-size: 1.2rem;
  color: #718096;
  font-weight: 400;
}

.tool-content {
  max-width: 900px;
  margin: 0 auto;
}

.tool-description {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  border-left: 4px solid #667eea;
}

.tool-description p {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
}

.tool-interface {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

/* Input Sections - Universal for all tools */
.input-section {
  margin-bottom: 2rem;
}

.input-section:last-child {
  margin-bottom: 0;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

/* File Upload Area - For file-based tools */
.file-upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f7fafc;
  margin-bottom: 2rem;
  position: relative;
  cursor: pointer;
}

.file-upload-area.highlight {
  border-color: #667eea;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.file-upload-area:hover {
  border-color: #a0aec0;
  background: #f1f5f9;
}

.file-input {
  display: none;
}

.file-label {
  cursor: pointer;
  display: block;
  padding: 1rem;
  transition: color 0.3s ease;
  user-select: none;
}

.file-label:hover {
  color: #667eea;
}

.file-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.file-label p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.file-label small {
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Text Inputs and Textareas - Universal */
.input-field,
.input-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  resize: vertical;
}

.input-field:focus,
.input-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.input-field::placeholder,
.input-textarea::placeholder {
  color: #a0aec0;
}

.input-textarea {
  min-height: 120px;
  line-height: 1.6;
}

.input-textarea.output {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #2d3748;
}

/* Input Groups */
.input-group {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.input-group .input-field {
  flex: 1;
  min-width: 300px;
}

.input-group .primary-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Select Elements */
.input-select {
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.input-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-select option {
  padding: 0.5rem;
  background: white;
}

/* Option Groups */
.option-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.option-group label {
  font-weight: 600;
  color: #4a5568;
  min-width: 80px;
}

/* Buttons - Universal */
.primary-btn,
.secondary-btn,
.case-btn {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  min-width: 160px;
  justify-content: center;
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.primary-btn.success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  animation: pulse 2s infinite;
}

.secondary-btn {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  min-width: 140px;
  justify-content: center;
}

.secondary-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Case Buttons - Specific for text converter */
.case-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.case-btn {
  flex: 1;
  max-width: 200px;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #4a5568;
  transition: all 0.3s ease;
  cursor: pointer;
}

.case-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.case-btn.upper,
.case-btn.title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.case-btn.upper:hover,
.case-btn.title:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.case-btn.lower,
.case-btn.sentence {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border-color: #48bb78;
}

.case-btn.lower:hover,
.case-btn.sentence:hover {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.3);
}

.case-btn.active {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.action-buttons .primary-btn {
  order: -1;
}

/* Status Messages - Universal */
.status-message,
.analysis-result {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-weight: 500;
  text-align: center;
  min-height: 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  line-height: 1.5;
}

.status-message.info {
  background: #ebf8ff;
  color: #2c5282;
  border-color: #bee3f8;
}

.status-message.converting {
  background: #fef5e7;
  color: #c05621;
  border-color: #f6ad55;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-message.success {
  background: #f0fff4;
  color: #38a169;
  border-color: #68d391;
}

.status-message.error {
  background: #fed7d7;
  color: #e53e3e;
  border-color: #fc8181;
}

.analysis-result {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.analysis-result.success {
  border-color: #68d391;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.analysis-result.warning {
  border-color: #f6ad55;
  background: linear-gradient(135deg, #fef5e7 0%, #fde8c4 100%);
}

.analysis-result.error {
  border-color: #fc8181;
  background: linear-gradient(135deg, #fed7d7 0%, #fed7d7 100%);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-badge.success {
  background: #68d391;
  color: white;
}

.status-badge.warning {
  background: #f6ad55;
  color: white;
}

.status-badge.error {
  background: #fc8181;
  color: white;
}

/* QR Code Specific */
.qr-output-section {
  text-align: center;
  margin-top: 2rem;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  margin: 2rem 0;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 15px;
  border: 2px dashed #cbd5e0;
}

.qr-container canvas {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.qr-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.qr-options label {
  font-weight: 600;
  color: #4a5568;
  white-space: nowrap;
}

/* Preview Sections */
.preview-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
}

.preview-container {
  text-align: center;
  margin: 1rem 0;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

/* Character/Word Counters */
.character-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #718096;
}

.character-count span {
  font-weight: 500;
}

/* Output Sections */
.output-section {
  margin: 2rem 0;
}

.output-section .input-label {
  margin-bottom: 0.75rem;
}

/* Button Groups */
.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Status Messages - Universal */
.status-message,
.analysis-result {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-weight: 500;
  text-align: center;
  min-height: 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  line-height: 1.5;
}

.status-message.info {
  background: #ebf8ff;
  color: #2c5282;
  border-color: #bee3f8;
}

.status-message.converting {
  background: #fef5e7;
  color: #c05621;
  border-color: #f6ad55;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-message.success {
  background: #f0fff4;
  color: #38a169;
  border-color: #68d391;
}

.status-message.error {
  background: #fed7d7;
  color: #e53e3e;
  border-color: #fc8181;
}

.analysis-result {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.analysis-result.success {
  border-color: #68d391;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.analysis-result.warning {
  border-color: #f6ad55;
  background: linear-gradient(135deg, #fef5e7 0%, #fde8c4 100%);
}

.analysis-result.error {
  border-color: #fc8181;
  background: linear-gradient(135deg, #fed7d7 0%, #fed7d7 100%);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-badge.success {
  background: #68d391;
  color: white;
}

.status-badge.warning {
  background: #f6ad55;
  color: white;
}

.status-badge.error {
  background: #fc8181;
  color: white;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer p {
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.footer-nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message,
.analysis-result {
  animation: slideIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav.active {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .search-container {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .search-input,
  .search-btn {
    border-radius: 0;
  }
  
  .search-input {
    border-bottom: 1px solid #e2e8f0;
  }

  /* Tool page mobile styles */
  .tool-main {
    padding: 1rem 0;
  }

  .tool-header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }

  .tool-title {
    font-size: 2rem;
  }

  .tool-subtitle {
    font-size: 1.1rem;
  }

  .tool-interface {
    padding: 1.5rem;
  }

  .file-upload-area {
    padding: 2rem 1rem;
  }

  .file-icon {
    font-size: 3rem;
  }

  .file-label p {
    font-size: 1.1rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .input-field {
    min-width: auto;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .secondary-btn {
    min-width: 250px;
    padding: 1.2rem;
    font-size: 1.1rem;
  }

  .case-buttons {
    grid-template-columns: 1fr;
  }

  .button-group {
    justify-content: stretch;
  }

  .case-btn {
    max-width: none;
  }

  .qr-container {
    min-height: 200px;
    padding: 1rem;
  }

  .qr-options {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .qr-options label {
    text-align: center;
  }

  .character-count {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-nav {
    gap: 1rem;
  }

  .footer-nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }

  /* Extra small screens */
  .tool-title {
    font-size: 1.8rem;
  }

  .tool-interface {
    padding: 1rem;
  }

  .file-upload-area {
    padding: 1.5rem 0.5rem;
  }

  .input-field,
  .input-textarea,
  .input-select {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 300px;
    padding: 1.25rem;
  }

  .case-btn {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .preview-image {
    max-height: 300px;
  }

  .qr-container {
    min-height: 180px;
    padding: 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .status-message,
  .analysis-result {
    animation: none;
  }
}

/* Focus styles for accessibility */
.tool-card:focus,
.nav-link:focus,
.search-btn:focus,
.primary-btn:focus,
.secondary-btn:focus,
.case-btn:focus,
.file-label:focus-within,
.input-field:focus,
.input-textarea:focus,
.input-select:focus,
.status-message:focus,
.analysis-result:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .primary-btn,
  .secondary-btn,
  .case-btn {
    border: 2px solid;
  }
  
  .input-field,
  .input-textarea,
  .input-select {
    border-width: 2px;
  }
}

/* Dark mode support - Comprehensive */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a202c;
    color: #e2e8f0;
  }
  
  .section {
    background: #2d3748;
  }
  
  .section:nth-child(even) {
    background: #1a202c;
  }
  
  .tool-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .tool-card h3 {
    color: #e2e8f0;
  }
  
  .tool-card p {
    color: #a0aec0;
  }

  .tool-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
  }

  .tool-title {
    color: #e2e8f0;
  }

  .tool-subtitle {
    color: #a0aec0;
  }

  .tool-description {
    background: #4a5568;
    color: #e2e8f0;
    border-left-color: #63b3ed;
  }

  .tool-interface {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }

  .file-upload-area {
    border-color: #718096;
    background: #2d3748;
    color: #e2e8f0;
  }

  .file-upload-area.highlight {
    border-color: #63b3ed;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  }

  .file-label p {
    color: #e2e8f0;
  }

  .file-label small {
    color: #a0aec0;
  }

  .input-field,
  .input-textarea,
  .input-select {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }

  .input-field::placeholder,
  .input-textarea::placeholder {
    color: #a0aec0;
  }

  .input-field:focus,
  .input-textarea:focus,
  .input-select:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
  }

  .input-textarea.output {
    background: #2d3748;
    border-color: #4a5568;
  }

  .primary-btn {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  }

  .secondary-btn {
    background: #4a5568;
    color: #63b3ed;
    border-color: #63b3ed;
  }

  .secondary-btn:hover {
    background: #63b3ed;
    color: #2d3748;
  }

  .case-btn {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }

  .case-btn.upper,
  .case-btn.title {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    border-color: #5a67d8;
  }

  .case-btn.lower,
  .case-btn.sentence {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border-color: #38a169;
  }

  .status-message,
  .analysis-result {
    color: #e2e8f0;
  }

  .status-message.info {
    background: #2c4a6c;
    border-color: #4c8bb9;
  }

  .status-message.converting {
    background: #5a4f3a;
    border-color: #d69e2e;
    color: #f6e05e;
  }

  .status-message.success {
    background: #2f855a;
    border-color: #48bb78;
    color: #c6f6d5;
  }

  .status-message.error {
    background: #742a2a;
    border-color: #fc8181;
    color: #fed7d7;
  }

  .analysis-result {
    background: #4a5568;
    border-color: #718096;
  }

  .analysis-result.success {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    border-color: #48bb78;
  }

  .analysis-result.warning {
    background: linear-gradient(135deg, #dd6b20 0%, #ed8936 100%);
    border-color: #f6ad55;
  }

  .analysis-result.error {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    border-color: #fc8181;
  }

  .status-badge.success {
    background: #48bb78;
  }

  .status-badge.warning {
    background: #f6ad55;
  }

  .status-badge.error {
    background: #fc8181;
  }

  .qr-container {
    background: #2d3748;
    border-color: #718096;
  }

  .qr-options {
    background: #2d3748;
    border-color: #718096;
  }

  .qr-options label {
    color: #e2e8f0;
  }

  .preview-section {
    background: #2d3748;
    border-color: #718096;
  }

  .character-count {
    background: #2d3748;
    border-color: #718096;
    color: #a0aec0;
  }

  .footer {
    background: #1a202c;
  }

  .footer-nav a {
    color: #e2e8f0;
  }

  .footer-nav a:hover {
    background: rgba(226, 232, 240, 0.1);
  }
}

/* Print styles */
@media print {
  .header, .footer, .search-container, .action-buttons, .hamburger {
    display: none !important;
  }
  
  .tool-content,
  .tool-interface,
  .input-section,
  .output-section {
    box-shadow: none !important;
    border: none !important;
    background: white !important;
  }
  
  .input-textarea {
    border: 1px solid #000 !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Legacy button classes compatibility */
.btn-primary {
  @extend .primary-btn;
}

.btn-secondary {
  @extend .secondary-btn;
}