:root {
    --primary: #1a73e8; /* Google Blue */
    --bg-color: #ffffff;
    --text-color: #202124;
    --panel-bg: #f1f3f4;
    --border-color: #dadce0;
    --success: #188038;
  }
  
  /* Dark Mode Variables */
  body.dark-mode {
    --bg-color: #202124;
    --text-color: #e8eaed;
    --panel-bg: #303134;
    --border-color: #5f6368;
  }
  
  body {
    width: 320px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.3s;
  }
  
  /* Section 1: Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .brand {
    font-size: 18px;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
  }
  
  .theme-toggle {
    cursor: pointer;
    font-size: 18px;
  }
  
  /* Section 2: Controls */
  .section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  /* Toggle Switch CSS */
  .switch { position: relative; display: inline-block; width: 40px; height: 20px; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
  .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; }
  input:checked + .slider { background-color: var(--primary); }
  input:checked + .slider:before { transform: translateX(20px); }
  .slider.round { border-radius: 20px; }
  .slider.round:before { border-radius: 50%; }
  
  /* Section 3: Modes */
  .mode-section {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 25px;
    background-color: var(--panel-bg);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
  }
  
  .mode-btn i { font-size: 24px; margin-bottom: 5px; }
  .mode-btn span { font-size: 12px; font-weight: 500; }
  
  .mode-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(26, 115, 232, 0.1);
  }
  
  /* Section 4: Inputs */
  input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--panel-bg);
    color: var(--text-color);
    box-sizing: border-box;
  }
  
  input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  .output-wrapper {
    position: relative;
  }
  
  #copy-btn {
    position: absolute;
    right: 5px;
    top: 5px; /* adjust based on input height */
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
    height: 30px; 
  }
  
  #status-msg {
    font-size: 12px;
    color: var(--success);
    height: 15px;
    margin-top: -10px;
  }
  
  /* Section 5: Footer */
  .footer {
    text-align: center;
    font-size: 10px;
    color: #888;
    padding: 10px;
    background-color: var(--panel-bg);
  }
  
  /* Disabled State */
  .disabled {
    opacity: 0.5;
    pointer-events: none;
  }