:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #007bff;
    --success: #28a745;
    --error: #dc3545;
  }
  
  body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .company-logo {
    vertical-align: middle;
    margin-right: 5px;
    height: 36px; /* or whatever size you want */
    position: relative;
    top: -3px; /* lift the image 2px above the baseline */
  }
  
  
  .drop-zone {
    border: 2px dashed var(--text-secondary);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .drop-zone:hover {
    border-color: var(--accent);
    background-color: rgba(0, 123, 255, 0.1);
  }
  
  .drop-zone i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--text-secondary);
  }
  
  .file-list {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
  }
  
  .file-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .file-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--bg-primary);
  }
  
  .file-list li:last-child {
    border-bottom: none;
  }
  
  .settings-section {
    margin: 20px 0;
  }
  
  .input-group {
    margin-bottom: 15px;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
  }
  
  input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--bg-secondary);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
  }
  
  .output-dir-group {
    display: flex;
    gap: 10px;
  }
  
  .output-dir-group input {
    flex: 1;
  }
  
  .button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
  }
  
  .button i {
    font-size: 14px;
  }
  
  .button.primary {
    background-color: var(--accent);
    color: white;
  }
  
  .button.secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
  }
  
  .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .progress {
    margin: 20px 0;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 4px;
    background-color: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
  }
  
  .status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
  }
  
  .status.success {
    background-color: var(--success);
  }
  
  .status.error {
    background-color: var(--error);
  }
  
  .hidden {
    display: none;
  }
  
  .output-link {
    margin-top: 20px;
    text-align: center;
  }
  
  .output-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
  }
  
  /* PRO container top-right */
  .pro-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 9998; /* ensure on top of drop-zone */
  }
  
  .pro-upgrade {
    background-color: #fff;
    color: #000;
    cursor: pointer;
  }
  .pro-upgrade:hover {
    opacity: 0.8;
  }
  
  .pro-active {
    background-color: #666;
    color: #fff;
    cursor: default;
  }
  
  /* smaller text, no underline, pointer */
  .pro-info-link {
    display: block;
    font-size: 0.8rem;
    color: #fff;
    margin-top: 4px;
    cursor: pointer;
    text-decoration: none;
  }
  .pro-info-link:hover {
    opacity: 0.8;
  }
  
  /* modal overlay */
  .modal {
    position: fixed;
    z-index: 9999; /* above pro-container */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
  }
  
  .modal.show {
    display: flex;
  }
  
  .modal-content {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: var(--text-primary);
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-primary);
  }
  
  .device-id-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Force 1px white border around these fields */
  .device-id-field,
  .pro-key-input {
    border: 1px solid #fff !important;
  }
  
  /* store button with wide style */
  .store-button {
    background-color: #fff;
    color: #000;
    font-size: 0.9rem;
  }
  .store-button:hover {
    opacity: 0.8;
  }
  .wide-button {
    width: 100%;
    justify-content: center;
  }
  
  .white-border-btn {
    background-color: var(--bg-secondary);
    border: 1px solid #fff;
    color: #fff;
  }
  .white-border-btn:hover {
    opacity: 0.8;
  }
  
  /* pro-key-input with white border, slightly bigger radius */
  .pro-key-input {
    width: 100%;
    background-color: #333;
    border-radius: 6px;
    color: #fff;
    margin-bottom: 10px;
    padding: 8px;
  }
  
  /* store-link styling */
  .store-link {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
  }
  .store-link:hover {
    opacity: 0.8;
  }
  
  /* Manage Plan modal's error button for "Downgrade" */
  .error-btn {
    background-color: #dc3545;
    color: #fff;
  }
  .error-btn:hover {
    opacity: 0.8;
  }
  
  /* center the wide button */
  .centered-button {
    text-align: center;
    margin: 10px 0;
  }
  
  /* message area inside the upgrade modal */
  .key-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
  }
  