body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: #f9fafb;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 2rem;
      margin: 0;
      line-height: 1.6;
    }

    .container {
      background: white;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      max-width: 800px;
      width: 100%;
    }

    header {
      text-align: center;
      margin-bottom: 2rem;
    }

    h1 {
      color: #2563eb;
      margin-bottom: 0.5rem;
      font-size: 2.5rem;
      font-weight: 700;
    }

    .subtitle {
      color: #366;
      font-size: 1.1rem;
      margin-bottom: 1rem;
    }

    form {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .input-container {
      flex: 1;
      position: relative;
      display: flex;
      align-items: center;
    }

    input {
      width: 100%;
      padding: 0.75rem 3rem 0.75rem 0.75rem;
      font-size: 1rem;
      border-radius: 6px;
      border: 2px solid #e5e7eb;
      transition: border-color 0.2s;
      box-sizing: border-box;
    }

    input:focus {
      outline: none;
      border-color: #3b82f6;
    }

    .clear-btn {
      position: absolute;
      right: 0.75rem;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem;
      border-radius: 50%;
      width: 1.5rem;
      height: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6b7280;
      font-size: 1rem;
      transition: all 0.2s;
      opacity: 0;
      visibility: hidden;
    }

    .clear-btn:hover {
      background-color: #f3f4f6;
      color: #374151;
    }

    .clear-btn.visible {
      opacity: 1;
      visibility: visible;
    }

    button[type="submit"] {
      background-color: #3b82f6;
      color: white;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      transition: background-color 0.2s;
    }

    button[type="submit"]:hover {
      background-color: #2563eb;
    }

    #output {
      background: #f3f4f6;
      padding: 1rem;
      border-radius: 6px;
      font-size: 1.1rem;
      min-height: 3rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid #e5e7eb;
    }

    #copy-btn {
      background: none;
      border: none;
      color: #3b82f6;
      cursor: pointer;
      margin-left: 1rem;
      padding: 0.5rem;
      border-radius: 4px;
      transition: background-color 0.2s;
    }

    #copy-btn:hover {
      background-color: #e5e7eb;
    }

    .error {
      color: #dc2626;
    }

    .features {
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid #e5e7eb;
    }

    .features h2 {
      color: #374151;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .feature-item {
      background: #f8fafc;
      padding: 1rem;
      border-radius: 6px;
      border-left: 4px solid #3b82f6;
    }

    .feature-item h3 {
      margin: 0 0 0.5rem 0;
      color: #1f3637;
      font-size: 1rem;
    }

    .feature-item p {
      margin: 0;
      color: #6b7280;
      font-size: 0.9rem;
    }

    .how-to-use {
      margin-top: 2rem;
    }

    .how-to-use h2 {
      color: #374151;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .steps {
      list-style: none;
      padding: 0;
      counter-reset: step-counter;
    }

    .steps li {
      counter-increment: step-counter;
      margin-bottom: 1rem;
      padding-left: 2rem;
      position: relative;
    }

    .steps li::before {
      content: counter(step-counter);
      position: absolute;
      left: 0;
      top: 0;
      background: #3b82f6;
      color: white;
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: bold;
    }

    footer {
      margin-top: 2rem;
      text-align: center;
      font-size: 0.9rem;
      color: #366;
      padding-top: 2rem;
      border-top: 1px solid #e5e7eb;
    }

    @media (max-width: 640px) {
      h1 {
        font-size: 2rem;
      }
      
      form {
        flex-direction: column;
      }

      #output {
        flex-direction: column;
        align-items: flex-start;
      }

      #copy-btn {
        margin-left: 0;
        margin-top: 0.5rem;
      }

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




 /* Language selector styles */
    .language-selector {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
    }

    .language-dropdown {
      position: relative;
      display: inline-block;
    }

    .language-button {
      background: rgba(255, 255, 255, 0.95);
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      padding: 8px 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
      color: #374151;
      transition: all 0.2s ease;
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      min-width: 120px;
      justify-content: space-between;
    }

    .language-button:hover {
      border-color: #3b82f6;
      background: rgba(255, 255, 255, 1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .language-button.open {
      border-color: #3b82f6;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    .current-language {
      display: flex;
      align-items: center;
    }

    .dropdown-arrow {
      transition: transform 0.2s ease;
      color: #6b7280;
    }

    .language-button.open .dropdown-arrow {
      transform: rotate(180deg);
    }

    .language-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border: 2px solid #3b82f6;
      border-top: none;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      min-width: 200px;
      max-height: 300px;
      overflow-y: auto;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
    }

    .language-menu.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .language-option {
      padding: 12px 16px;
      display: block;
      color: #374151;
      text-decoration: none;
      transition: background-color 0.2s ease;
      border-bottom: 1px solid #f3f4f6;
      font-size: 14px;
    }

    .language-option:last-child {
      border-bottom: none;
    }

    .language-option:hover {
      background-color: #f8fafc;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .language-selector {
        top: 10px;
        right: 10px;
      }
      
      .language-button {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 100px;
      }
      
      .language-menu {
        min-width: 180px;
      }
    }
