body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #121212;
      color: #fff;
      display: flex;
    }

    .sidebar {
      width: 250px;
      background: #1c1c1c;
      padding: 20px;
      height: 100vh;
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .sidebar h2 {
      color: #fff;
      text-align: center;
      margin-bottom: 20px;
    }

    .sidebar form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .sidebar input {
      padding: 10px;
      font-size: 14px;
      border: 1px solid #444;
      border-radius: 5px;
      background-color: #333;
      color: #fff;
    }

    .sidebar button {
      padding: 10px;
      font-size: 14px;
      background-color: #e74c3c;
      border: none;
      border-radius: 5px;
      color: #fff;
      cursor: pointer;
    }

    .sidebar button:hover {
      background-color: #c0392b;
    }

    .accounts-list {
      margin-top: 20px;
      z-index: 2;
    }

    .accounts-list h3 {
      color: #fff;
      margin-bottom: 10px;
    }

    .accounts-list ul {
      list-style: none;
      padding: 0;
    }

    .accounts-list li {
      padding: 10px;
      background: #333;
      margin-bottom: 5px;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
      display: flex; /* Enable flex layout for list items */
      align-items: center; /* Vertically align items in list */
      justify-content: space-between; /* Distribute space between items */
    }

    .accounts-list li:hover {
      background: #444;
    }

    .accounts-list li.active {
      background: #e74c3c;
      font-weight: bold;
    }

    .main-content {
      flex: 1;
      padding: 20px;
    }

    h1 {
      text-align: center;
      color: #fff;
      margin-top: 20px;
    }

    .tabs {
      display: flex;
      margin-bottom: 20px;
      border-bottom: 2px solid #444;
    }

    .tab {
      padding: 10px 20px;
      cursor: pointer;
      border: 1px solid #444;
      border-bottom: none;
      background: #1c1c1c;
      color: #fff;
      transition: background 0.3s;
    }

    .tab:hover {
      background: #333;
    }

    .tab.active {
      background: #444;
      border-bottom: 2px solid #444;
      font-weight: bold;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 600px;
      margin: 0 auto;
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    select,
    input,
    textarea,
    button {
      padding: 10px;
      font-size: 16px;
      border: 1px solid #444;
      border-radius: 5px;
      background-color: #333;
      color: #fff;
    }

    button {
      background-color: #e74c3c;
      border: none;
      cursor: pointer;
    }

    button:hover {
      background-color: #c0392b;
    }

    #productsGrid,
    #sourceProductsGrid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    .product-card {
      background: #333;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      text-align: center;
    }

    .product-card img {
      max-width: 100%;
      max-height: 100px;
      object-fit: cover;
      border-radius: 10px;
    }

    .product-card h3 {
      font-size: 14px;
      margin: 10px 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .notification {
      position: fixed;
      top: 10px;
      right: 10px;
      background: #27ae60;
      color: white;
      padding: 15px;
      border-radius: 5px;
      display: none;
      z-index: 1000;
    }

    .notification.error {
      background: #e74c3c;
    }

    .edit-icon {
      cursor: pointer;
      margin-left: 5px;
      color: #e74c3c;
    }

    .edit-icon:hover {
      color: #c0392b;
    }

    .popup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }

    .popup-content {
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      width: 80%;
      max-width: 600px;
      position: relative;
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 24px;
      cursor: pointer;
      color: #fff;
    }

    .close-btn:hover {
      color: #e74c3c;
    }

    .pagination {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .pagination button {
      padding: 5px 10px;
      background-color: #444;
      border: none;
      color: #fff;
      cursor: pointer;
      border-radius: 5px;
    }

    .pagination button.active {
      background-color: #e74c3c;
    }

    .pagination button:hover:not(.active) {
      background-color: #555;
    }

    #transferProductsForm {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 600px;
      margin: 0 auto;
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #transferProductsButton {
      margin: 20px auto;
      padding: 10px 20px;
      background-color: #27ae60;
      border: none;
      border-radius: 5px;
      color: #fff;
      cursor: pointer;
    }

    #transferProductsButton:hover {
      background-color: #219653;
    }

    #apiPermissions {
      max-width: 600px;
      margin: 0 auto;
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #permissionsList {
      margin-top: 20px;
    }

    #permissionsList p {
      color: #ccc;
      font-size: 14px;
    }

    #storeDetails {
      padding: 20px;
    }

    #storeInfo {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #storeInfo p {
      margin: 5px 0;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #storeInfo strong {
      color: #bbb;
    }

    #contactInfoPopup,
    #contactInfoUSPopup,
    #privacyPolicyPopup,
    #refundPolicyPopup,
    #shippingPolicyPopup,
    #termsOfServicePopup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1001;
      justify-content: center;
      align-items: center;
    }

    #contactInfoContent,
    #contactInfoUSContent,
    #privacyPolicyContent,
    #refundPolicyContent,
    #shippingPolicyContent,
    #termsOfServiceContent {
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      width: 80%;
      max-width: 600px;
      position: relative;
      color: #fff;
      max-height: 50vh; /* Limit to ~7 lines of text */
      overflow-y: auto; /* Enable vertical scroll if content exceeds the height */
      white-space: pre-wrap; /* Preserve formatting and wrap text */
    }

    .policy-button {
      padding: 10px 20px;
      margin-bottom: 10px;
      border: none;
      border-radius: 5px;
      color: white;
      cursor: pointer;
      display: block;
      width: 200px;
      text-align: center;
    }

    .policy-button.contact-info {
      background-color: #007bff;
    }

    .policy-button.privacy-policy {
      background-color: #6610f2;
    }

    .policy-button.refund-policy {
      background-color: #6f42c1;
    }

    .policy-button.shipping-policy {
      background-color: #dc3545;
    }

    .policy-button.terms-of-service {
      background-color: #28a745;
    }

    .submit-all-policies-button {
      background-color: #ffc107; /* Gold color */
      color: #333; /* Dark text for contrast */
      transition: background-color 0.3s, color 0.3s;
    }

    .submit-all-policies-button:hover {
      background-color: #e0a800; /* Darker gold on hover */
      color: #fff;
    }

    .submit-all-policies-button:active {
      background-color: #c29500; /* Even darker gold when active */
      color: #fff;
    }

    .submit-all-policies-button:disabled {
      background-color: #d4ac0d; /* Muted gold when disabled */
      color: #777;
      cursor: not-allowed;
    }

    .delete-account-button {
      background-color: #e74c3c;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      padding: 5px 10px;
      font-size: 0.8em;
      margin-left: 10px;
    }

    .delete-account-button:hover {
      background-color: #c0392b;
    }

    .csv-upload-section {
      margin-top: 20px;
      background: #2c2c2c;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .csv-upload-section h3 {
      margin-top: 0;
      color: #fff;
    }

    .csv-upload-section input[type="file"] {
      margin-bottom: 10px;
      color: #fff;
    }

    .csv-upload-section button {
      background-color: #27ae60;
      color: #fff;
      border: none;
      border-radius: 5px;
      padding: 10px 20px;
      cursor: pointer;
    }

    .csv-upload-section button:hover {
      background-color: #219653;
    }
