/* ===================================
   Tool: text-converter
   =================================== */

  .converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  @media (max-width: 768px) {
    .converter-grid {
      grid-template-columns: 1fr;
    }
  }
  .panel {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
  }
  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
  }
  .panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .text-area {
    width: 100%;
    min-height: 200px;
    padding: var(--space-lg);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    resize: vertical;
    transition: all var(--transition-fast);
  }
  .text-area:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
  }
  .text-area::placeholder {
    color: var(--brown-300);
  }
  .char-info {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
  }

  /* Favorites Section */
  .favorites-section {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--brown-50) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border: 2px solid var(--accent);
  }
  .favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
  }
  .favorites-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-dark);
  }
  .favorites-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .favorite-btn {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--green-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    opacity: 1 !important;
    filter: none !important;
  }
  .favorite-btn:hover {
    background: var(--green-main);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .actions-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
  }
  .actions-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .action-category {
    margin-bottom: var(--space-lg);
  }
  .action-category:last-child {
    margin-bottom: 0;
  }
  .category-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
  }
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .action-btn {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
  }

  /* Info Sections */
  .info-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  .info-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  .info-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  @media (max-width: 600px) {
    .info-grid {
      grid-template-columns: 1fr;
    }
  }
  .info-item {
    background: var(--brown-50);
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  .info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  .info-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* Usage Section */
  .usage-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  .usage-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  .usage-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .usage-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  .usage-item {
    background: var(--bg-card);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .usage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .usage-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
  }
  .usage-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* Trivia Section */
  .trivia-section {
    background: linear-gradient(135deg, var(--brown-50) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  .trivia-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  .trivia-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .trivia-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  .trivia-item {
    background: var(--bg-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .trivia-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  .trivia-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
  }

  .history-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
  }
  .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
  }
  .history-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
  }
  .history-item {
    background: var(--brown-50);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .history-item:hover {
    background: var(--accent-light);
  }
  .history-action {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-xs);
  }
  .history-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .history-empty {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
  }


