.fancy-text-input-area {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .fancy-text-input-area label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
  }
  
  .fancy-text-input-area textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .fancy-text-input-area textarea:focus {
    border-color: var(--fern);
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.25);
  }
  
  .transform-button {
    background: var(--fern);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .transform-button:hover {
    background: var(--hunter-green);
  }
  
  .copy-status-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--fern);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInOut 2s ease;
  }
  
  .style-categories {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .category {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .category h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
  }
  
  .styles-container {
    display: grid;
    gap: 1rem;
  }
  
  .fancy-style-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    position: relative;
  }
  
  .style-name {
    font-size: 0.9rem;
    color: #666;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
  }
  
  .fancy-text-output {
    margin: 1.5rem 0 0 0;
    padding: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-break: break-all;
  }
  
  .copy-button {
    height: fit-content;
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .copy-button:hover {
    background: #5a6268;
  }
  
  @keyframes fadeInOut {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    15% {
      opacity: 1;
      transform: translateY(0);
    }
    85% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(20px);
    }
  }
  
  @media (max-width: 768px) {
    .fancy-style-item {
      grid-template-columns: 1fr;
    }
  
    .copy-button {
      width: 100%;
      margin-top: 0.5rem;
    }
  }
  
  /* Main Navigation Styles */
  .main-nav {
    display: flex;
    gap: 1rem;
    margin: 0 2rem;
  }
  
  .nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .nav-link:hover {
    background: #f0f0f0;
    color: var(--fern);
  }
  
  .nav-link.active {
    background: var(--fern);
    color: white;
  }
  
  @media (max-width: 768px) {
    .main-nav {
      margin: 0 0.5rem;
      gap: 0.5rem;
    }
  
    .nav-link {
      padding: 0.25rem 0.5rem;
      font-size: 0.9rem;
    }
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .input-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  
  .input-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  #inputText {
    width: 100%;
    /* min-height: 120px; */
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
  }
  
  #inputText:focus {
    border-color: var(--fern);
    outline: none;
  }
  
  .transform-btn {
    background: var(--fern);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .transform-btn:hover {
    background: var(--hunter-green);
  }
  
  .output-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .style-category {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .style-category h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
  }
  
  .styles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .style-result {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
  }
  
  .style-result:hover {
    background: #e9ecef;
  }
  
  .style-result::before {
    content: attr(data-style-name);
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
  }
  
  .style-result.copied::after {
    content: "Copied!";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fern);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    animation: fadeOut 1.5s forwards;
  }
  
  .instructions {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .instructions h3 {
    color: #333;
    margin-bottom: 1rem;
  }
  
  .instructions ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .instructions li {
    margin-bottom: 0.5rem;
    color: #555;
  }
  
  .note {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
  
    .output-section {
      grid-template-columns: 1fr;
    }
  
    .input-section,
    .style-category,
    .instructions {
      padding: 1rem;
    }
  }
  
  /* Font Generator Styles */
  .font-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
  
  .generator-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 1rem;
  }
  
  .generator-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(88, 129, 87, 0.05) 0%,
      rgba(52, 78, 65, 0.05) 100%
    );
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: -1;
    border-radius: 0 0 50% 50% / 15%;
  }
  
  .generator-header h1 {
    color: var(--pine-teal);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
  }
  
  .generator-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--hunter-green), var(--fern));
    border-radius: 2px;
  }
  
  .page-description {
    color: #f0f0f0;
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .text-input-area {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative; /* Fallback */
    position: sticky;
    top: 1px;
    z-index: 1000; /* High z-index to stay on top */
  }

  .clear-text-btn {
    position: absolute;
    right: 35px; /* Positioned inside the input area */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    display: none; /* Hidden by default, shown when text exists */
    transition: color 0.3s ease;
  }

  .clear-text-btn:hover {
    color: #333;
    transform: translateY(-50%) !important; /* Override global button hover effect */
  }

  .clear-text-btn:active {
    transform: translateY(-50%) !important;
  }
  
  #inputText {
    width: 100%;
    /* min-height: 120px; */
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
  }
  
  #inputText:focus {
    border-color: var(--fern);
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.25);
  }
  
  .transform-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  
  .transform-btn {
    background: var(--fern);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .transform-btn:hover {
    background: var(--hunter-green);
  }
  
  .copy-status {
    display: none;
    background: linear-gradient(145deg, var(--fern), var(--hunter-green));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
  }
  
  /* Style Filter Section */
  .style-filter-section {
    margin-bottom: 2rem;
  }
  
  .style-filter-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
  }
  
  .style-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .filter-btn:hover {
    background: #e0e0e0;
  }
  
  .filter-btn.active {
    background: var(--fern);
    color: white;
  }
  
  /* Font Styles Display */
  .all-styles-container {
    margin-bottom: 3rem;
  }
  
  .style-category-section {
    margin-bottom: 2.5rem;
  }
  
  .category-heading {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .styles-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .font-style-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
  }
  
  .font-style-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Style name removed as requested */
  
  .style-text {
    flex: 1;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: auto;
    text-overflow: ellipsis;
    user-select: all;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }
  
  .style-text:hover {
    background-color: #f0f0f0;
  }
  
  .copy-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: var(--fern);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
  }
  
  .copy-btn:hover {
    background: var(--hunter-green);
  }
  
  .copy-btn.copy-success {
    background: var(--dry-sage);
  }
  
  /* SEO Content Styling */
  .seo-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
  }
  
  .seo-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .seo-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .usage-guide,
  .compatibility-info {
    margin-top: 2rem;
  }
  
  .usage-guide h3,
  .compatibility-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .usage-guide ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .usage-guide li {
    margin-bottom: 0.5rem;
    color: #555;
  }
  
  .copy-guidance {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-style: italic;
    color: #555;
  }
  
  .compatibility-info p {
    font-weight: 500;
  }
  
  /* Animation for copy confirmation */
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .font-generator-container {
      padding: 1rem;
    }
  
    .generator-header h1 {
      font-size: 2rem;
    }
  
    .page-description {
      font-size: 1rem;
      line-height: 1.6;
    }
  
    .text-input-area {
      padding: 1.5rem;
    }
  
    .transform-btn {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
    }
  
    .style-category-section {
      padding: 1.2rem;
    }
  
    .category-heading {
      font-size: 1.3rem;
    }
  
    .font-style-card {
      flex-direction: column;
      align-items: flex-start;
      padding: 1rem;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }
  
    .style-name {
      width: 100%;
      padding-right: 0;
      padding-bottom: 0.5rem;
      border-right: none;
      border-bottom: 1px solid #e9ecef;
      margin-right: 0;
      margin-bottom: 0.5rem;
      text-align: center;
    }
  
    .style-name::after {
      right: 50%;
      transform: translateX(50%) translateY(-50%);
    }
  
    .style-text {
      width: 100%;
      padding: 0.5rem 0;
      text-align: center;
    }
  
    .style-text::before {
      display: none;
    }
  
    .copy-btn {
      margin-left: 0;
      width: 100%;
      padding: 0.6rem 0;
    }
  
    .main-nav {
      margin: 0 0.5rem;
    }
  
    .nav-link {
      padding: 0.4rem 0.8rem;
      font-size: 0.9rem;
    }
  
    .style-filters {
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      align-items: center;
      padding: 0.5rem 0;
      gap: 0.5rem;
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
      padding-bottom: 10px; /* Space for scrollbar if visible */
    }
  
    .filter-btn {
      width: auto;
      max-width: none;
      margin-bottom: 0;
      flex-shrink: 0;
      white-space: nowrap;
    }
  }
  
  /* Dark Mode Styles */
  @media (prefers-color-scheme: dark) {
    body.dark-mode {
      background-color: #121212;
      color: #e0e0e0;
    }
  
    body.dark-mode .font-generator-container {
      background-color: #1e1e1e;
    }
  
    body.dark-mode .generator-header h1,
    body.dark-mode .style-filter-section h2,
    body.dark-mode .category-heading {
      color: #e0e0e0;
    }
  
    body.dark-mode .page-description {
      color: #b0b0b0;
    }
  
    body.dark-mode .text-input-area {
      background: #2d2d2d;
    }
  
    body.dark-mode .font-style-card {
      background: #2d2d2d;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
  
    body.dark-mode #inputText {
      background: #2d2d2d;
      border-color: #444;
      color: #e0e0e0;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }
  
    body.dark-mode #inputText:focus {
      border-color: var(--fern);
      box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.25);
      background: #333;
    }
  
    body.dark-mode #inputText::placeholder {
      color: #777;
    }
  
    /* Style name removed as requested */
  
    body.dark-mode .style-text {
      color: #e0e0e0;
    }
  
    body.dark-mode .style-text:hover {
      background-color: #333;
    }
  
    body.dark-mode .copy-btn {
      background: var(--fern);
      color: #ffffff;
    }
  
    body.dark-mode .copy-btn:hover {
      background: var(--hunter-green);
    }
  
    body.dark-mode .copy-btn.copy-success {
      background: var(--dry-sage);
    }
  
    body.dark-mode .filter-btn {
      background: #333;
      color: #e0e0e0;
    }
  
    body.dark-mode .filter-btn:hover {
      background: #444;
    }
  
    body.dark-mode .filter-btn.active {
      background: var(--fern);
      color: white;
    }
  
    body.dark-mode .transform-btn {
      background: var(--fern);
    }
  
    body.dark-mode .transform-btn:hover {
      background: var(--hunter-green);
    }
  }
  