/* Add to your existing CSS */
.dark-mode {
    background-color: #1a1a2e;
    color: #e6e6e6;
  }
  
  .dark-mode .container {
    background-color: #16213e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  .dark-mode h1 {
    color: #4d8bf8;
  }
  
  .dark-mode .description, 
  .dark-mode .footer {
    color: #a0aec0;
  }
  
  .dark-mode label {
    color: #cbd5e1;
  }
  
  .dark-mode textarea, 
  .dark-mode select {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
  }
  
  .dark-mode .typing-text {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
  }
  
  .dark-mode .dot-flashing,
  .dark-mode .dot-flashing::before,
  .dark-mode .dot-flashing::after {
    background-color: #4d8bf8;
  }
  
  /* Theme toggle button */
  .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2563eb;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
  }
  
  .dark-mode .theme-toggle {
    color: #4d8bf8;
    background-color: #1e293b;
  }
  
  .theme-toggle:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
  }
  
  /* Animation for the output */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .output-section {
    animation: fadeIn 0.5s ease;
  }
  
  /* Improve prompt style selector */
  .style-selector {
    position: relative;
  }
  
  .style-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
  }
  
  .style-badge.detailed { background-color: #dbeafe; color: #1e40af; }
  .style-badge.midjourney { background-color: #fef3c7; color: #92400e; }
  .style-badge.chatgpt { background-color: #dcfce7; color: #166534; }
  .style-badge.professional { background-color: #e0e7ff; color: #3730a3; }
  .style-badge.creative { background-color: #fce7f3; color: #9d174d; }
  
  .dark-mode .style-badge.detailed { background-color: #1e3a8a; color: #bfdbfe; }
  .dark-mode .style-badge.midjourney { background-color: #78350f; color: #fef3c7; }
  .dark-mode .style-badge.chatgpt { background-color: #14532d; color: #dcfce7; }
  .dark-mode .style-badge.professional { background-color: #312e81; color: #e0e7ff; }
  .dark-mode .style-badge.creative { background-color: #831843; color: #fce7f3; }
  
  /* Example prompt popover */
  .examples-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10;
    display: none;
  }
  
  .dark-mode .examples-popover {
    background-color: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  .show-examples {
    font-size: 14px;
    color: #2563eb;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
  }
  
  .dark-mode .show-examples {
    color: #4d8bf8;
  }
  
  .example-item {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
  }
  
  .dark-mode .example-item {
    border-bottom: 1px solid #334155;
  }
  
  .example-item:last-child {
    border-bottom: none;
  }
  
  .example-item:hover {
    color: #2563eb;
  }
  
  .dark-mode .example-item:hover {
    color: #4d8bf8;
  }
  
  /* History section */
  .history-section {
    margin-top: 30px;
    display: none;
  }
  
  .history-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .history-clear {
    font-size: 14px;
    color: #ef4444;
    cursor: pointer;
    font-weight: normal;
  }
  
  .history-items {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
  
  .dark-mode .history-items {
    border: 1px solid #334155;
  }
  
  .history-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }
  
  .dark-mode .history-item {
    border-bottom: 1px solid #334155;
  }
  
  .history-item:last-child {
    border-bottom: none;
  }
  
  .history-item:hover {
    background-color: #f1f5f9;
  }
  
  .dark-mode .history-item:hover {
    background-color: #1e293b;
  }
  
  .history-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
  }
  
  .history-item-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e2e8f0;
    color: #475569;
  }
  
  .dark-mode .history-item-tag {
    background-color: #334155;
    color: #cbd5e1;
  }
  
  /* Mobile responsiveness improvements */
  @media (max-width: 640px) {
    body {
      padding: 10px;
    }
    
    .container {
      padding: 20px;
    }
    
    .converter-controls {
      flex-direction: column;
    }
    
    button {
      width: 100%;
    }
    
    .theme-toggle {
      top: 10px;
      right: 10px;
    }
  }