body {
    font-size: 16px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
  }
  header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
  }
  header h1 {
    margin-top: 0;
    font-size: 1.2rem;
  }
  .search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-icon {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: white;
  }
  #search-bar {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
  }
  #search-bar.active {
    display: block;
    width: 200px;
    opacity: 1;
  }
  nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  nav ul li {
    display: inline;
  }
  nav ul li a {
    color: white;
    text-decoration: none;
  }
  main {
    padding: 20px;
  }
  .login-container {
    max-width: 250px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    transform: perspective(1000px) rotateX(10deg) translateZ(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .login-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateZ(30px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  .login-container h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #4CAF50;
  }
  .login-container label {
    display: block;
    margin-bottom: 5px;
  }
  .login-container input {
    width: 100%;
    padding: 6px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
  }
  .login-container button {
    font-size: 14px;
    padding: 10px;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
  .error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
  }
  .password-container {
    position: relative;
  }
  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
    color: #4CAF50;
  }
  section {
    margin-bottom: 20px;
  }
  h2 {
    border-bottom: none;
    padding-bottom: 5px;
  }
  #card-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
  }
  .card {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px;
    padding: 15px;
    width: 220px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background-color: #e0f7e0;
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  .card h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #000;
    text-align: center;
  }
  .card p {
    margin: 5px 0;
    color: #333;
  }
  .info-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: background-color 0.3s ease;
  }
  .info-button:hover {
    background-color: #1976D2;
  }
  .service-info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 350px;
    width: 85%;
  }
  .service-info-modal.show {
    display: block;
  }
  .service-info-modal h4 {
    margin: 0 0 8px 0;
    color: #4CAF50;
  }
  .service-info-modal p {
    margin: 4px 0;
    font-size: 13px;
  }
  .service-info-content {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
  }
  .service-info-modal .close-info {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
  }
  .service-info-modal .close-info:hover {
    background-color: #45a049;
  }
  .send-invoice-button {
    background-color: #f9a825;
    color: white;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .settings-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
  }
  .filter-button {
    background-color: #e0f7e0;
    color: black;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
  }
  #settings-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px  10px rgba(0, 0, 0, 0.1);
  }
  #settings-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  #settings-menu button:hover {
    background-color: #ddd;
  }
  .refresh-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .notification-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  /* Payment Success Notification */
  .payment-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 350px;
    border: 2px solid #fff;
  }
  
  .payment-success-content {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .payment-success-icon {
    font-size: 24px;
    animation: bounce 1s infinite;
  }
  
  .payment-success-text {
    flex: 1;
  }
  
  .payment-success-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .payment-success-message {
    font-size: 14px;
    opacity: 0.9;
  }
  
  .payment-success-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .payment-success-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-5px);
    }
    60% {
      transform: translateY(-3px);
    }
  }
  
  /* Dark mode support */
  body.dark-mode .payment-success-notification {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
    border-color: #333;
  }
  .notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    display: none;
  }
  .notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
    max-width: 100%;
    overflow-y: auto;
  }
  .notification-modal.show {
    display: block;
  }
  .notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  .notification-modal-header h3 {
    margin: 0;
    color: #4CAF50;
    text-align: center;
    font-size: 24px;
    flex-grow: 1;
  }
  .back-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4CAF50;
    padding: 5px;
  }
  .notification-list {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 0 20px;
  }
  .notification-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    margin: 10px auto;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .notification-item.unread {
    background-color: #f0f0f0;
    font-weight: bold;
    border-left: 4px solid #4CAF50;
    padding: 10px;
    margin: 5px auto;
    width: 90%;
    font-size: 14px;
  }
  .notification-item.read {
    background-color: transparent;
    font-weight: normal;
    padding: 10px;
    margin: 5px auto;
    width: 90%;
    font-size: 14px;
  }
  .notification-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .notification-item:last-child {
    border-bottom: none;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  @keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .refresh-button.refreshing {
    animation: spin 0.5s linear infinite;
  }
  .refresh-button.successful {
    animation: none;
    background-color: #4CAF50;
  }
  .blue-button {
    background: linear-gradient(145deg, #007BFF, #0056b3);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 120px;
  }
  .blue-button:hover {
    background: linear-gradient(145deg, #0056b3, #007BFF);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
  .blue-button:active {
    background: linear-gradient(145deg, #004080, #0056b3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
  }
  .green-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 120px;
  }
  .green-button:hover {
    background: linear-gradient(145deg, #45a049, #4CAF50);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
  .green-button:active {
    background: linear-gradient(145deg, #388E3C, #45a049);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
  }
  .realistic-button {
    background: linear-gradient(145deg, #007BFF, #0056b3);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .realistic-button:hover {
    background: linear-gradient(145deg, #0056b3, #007BFF);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
  .realistic-button:active {
    background: linear-gradient(145deg, #004080, #0056b3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
  }
  .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  .support-button {
    background-color: white;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .support-button:hover {
    background-color: #4CAF50;
    color: white;
  }
  
  /* Full Page Modal Styles */
  #people-registration-form, #agent-details-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: white;
      z-index: 1010;
      overflow-y: auto;
      padding: 0;
      box-sizing: border-box;
  }
  
  #people-registration-form.show, #agent-details-modal.show {
      display: block;
  }
  
  .full-page-header {
      display: flex;
      align-items: center;
      border-bottom: 2px solid #4CAF50;
      padding: 10px 20px;
      margin-bottom: 20px;
      background-color: #f9f9f9;
      position: sticky;
      top: 0;
      z-index: 1;
  }
  
  .full-page-header .back-button {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #4CAF50;
      padding: 5px;
  }
  
  .full-page-header h2 {
      flex-grow: 1;
      text-align: center;
      margin: 0;
      color: #4CAF50;
      font-size: 1.5rem;
  }
  
  #register-person-form {
      padding: 0 20px 20px 20px;
  }
  
  #people-registration-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  #people-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  #people-registration-form input,
  #people-registration-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  /* ===== Custom Service Selector ===== */
  .custom-service-selector {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
  }

  .service-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .service-selector-header:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
  }

  .service-selector-header span {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .selector-chevron {
    flex-shrink: 0;
    color: #888;
    transition: transform 0.2s ease;
  }

  .service-selector-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
  }

  .service-selector-dropdown.open {
    display: block;
  }

  @keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .service-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0;
    font-weight: normal;
  }

  .service-option-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
  }

  .service-option-item:hover {
    background: #f3faf3;
  }

  .service-option-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4CAF50;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
  }

  .service-option-icon {
    font-size: 18px;
    line-height: 1;
  }

  .service-option-text {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .service-option-badge {
    background: #e8f5e9;
    color: #388e3c;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* ===== Professional Register Button ===== */
  .register-submit-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 50%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .register-submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
  }

  .register-submit-btn:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
  }

  .register-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  }

  /* Dark mode for custom selector and button */
  body.dark-mode .service-selector-header {
    background: #2a2a2a;
    border-color: #555;
    color: #eee;
  }
  body.dark-mode .service-selector-header span { color: #aaa; }
  body.dark-mode .service-selector-dropdown {
    background: #2a2a2a;
    border-color: #4CAF50;
  }
  body.dark-mode .service-option-item:hover { background: #333; }
  body.dark-mode .service-option-item:not(:last-child) { border-color: #444; }
  body.dark-mode .service-option-text { color: #eee; }
  body.dark-mode .service-option-badge { background: #1b3a1b; color: #81c784; }

  /* ===== End Custom Service Selector ===== */

  /* Services select field - better height spacing */
  #people-registration-form #person-service {
    min-height: 100px;
    height: auto;
    padding: 10px;
    line-height: 1.8;
  }
  
  #people-registration-form #person-service option {
    padding: 8px 5px;
    margin: 2px 0;
  }
  #people-registration-form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  #service-fields-container h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #4CAF50;
  }
  .three-dots {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 60px;
    right: 20px;
  }
  .dot {
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
  }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: left;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .dropdown-menu button:hover {
    background-color: #ddd;
    transform: translateX(5px);
  }
  .dropdown-menu button:active {
    background-color: #ccc;
  }
  .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }
  .loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .b-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 20px;
  }
  .b-logo.login-spin {
    animation: fastSpin 0.5s linear infinite;
  }
  .b-logo::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 110px;
    left: 0;
    top: 5px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    border-radius: 50px 10px 10px 50px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transform: skewY(-5deg);
    z-index: 2;
  }
  .b-logo::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    right: 0;
    top: 25px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    border-radius: 10px 50px 50px 10px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    transform: skewY(5deg);
    z-index: 1;
  }
  .b-logo span {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(145deg, #0078d4, #005ba1);
    top: 40px;
    left: 50px;
    border-radius: 10px;
    transform: rotate(-10deg);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  @keyframes fastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  body.dark-mode {
    background-color: #121212;
    color: #ffffff;
  }
  body.dark-mode header {
    background-color: #1e1e1e;
  }
  body.dark-mode .card {
    background-color: #2e7d32;
    color: #ffffff;
    border-color: #333;
  }
  body.dark-mode .card h3 {
    color: #ffffff;
  }
  body.dark-mode .card p {
    color: #cccccc;
  }
  body.dark-mode .info-button {
    background-color: #42A5F5;
  }
  body.dark-mode .info-button:hover {
    background-color: #1E88E5;
  }
  body.dark-mode .service-info-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .service-info-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .service-info-modal p {
    color: #cccccc;
  }
  body.dark-mode .login-container {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
  }
  body.dark-mode .login-container h2 {
    color: #ffffff;
  }
  body.dark-mode .login-container input {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  body.dark-mode .login-container button {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .login-container a {
    color: #42A5F5;
  }
  body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #333;
  }
  body.dark-mode .dropdown-menu button {
    background-color: #333;
    color: #ffffff;
  }
  body.dark-mode .dropdown-menu button:hover {
    background-color: #555;
  }
  body.dark-mode .settings-button {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .support-button {
    background-color: #1e1e1e;
    color: #4CAF50;
    border-color: #4CAF50;
  }
  body.dark-mode .support-button:hover {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .blue-button {
    background: linear-gradient(145deg, #007BFF, #0056b3);
    color: #ffffff;
  }
  body.dark-mode .green-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: #ffffff;
  }
  body.dark-mode .realistic-button {
    background: linear-gradient(145deg, #007BFF, #0056b3);
    color: #ffffff;
  }
  body.dark-mode .refresh-button {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .notification-button {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .notification-modal {
    background-color: #121212;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .notification-modal-header h3 {
    color: #ffffff;
  }
  body.dark-mode .back-button {
    color: #ffffff;
  }
  body.dark-mode .notification-item {
    border-bottom-color: #555;
  }
  body.dark-mode .notification-item.unread {
    background-color: #333;
    border-left: 4px solid #4CAF50;
  }
  body.dark-mode .notification-item.read {
    background-color: transparent;
  }
  body.dark-mode .notification-item:hover {
    background-color: #444;
  }
  body.dark-mode .send-invoice-button {
    background-color: #f9a825;
    color: #ffffff;
  }
  body.dark-mode .filter-button {
    background-color: #2e7d32;
    color: #ffffff;
  }
  body.dark-mode #people-registration-form,
  body.dark-mode #agent-details-modal {
      background-color: #121212;
      color: #ffffff;
  }
  body.dark-mode .full-page-header {
      background-color: #1e1e1e;
      border-bottom-color: #333;
  }
  body.dark-mode .full-page-header .back-button,
  body.dark-mode .full-page-header h2 {
      color: #ffffff;
  }
  body.dark-mode #people-registration-form h2 {
    color: #4CAF50;
  }
  
  body.dark-mode #people-registration-form label {
    color: #ffffff;
  }
  body.dark-mode #people-registration-form input,
  body.dark-mode #people-registration-form select {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  
  /* Dark mode - Services select field */
  body.dark-mode #people-registration-form #person-service {
    background-color: #333;
    color: #fff;
    border-color: #555;
  }
  
  body.dark-mode #people-registration-form #person-service option {
    background-color: #333;
    color: #fff;
    padding: 8px 5px;
  }
  
  body.dark-mode #people-registration-form button {
    background-color: #4CAF50;
    color: #ffffff;
  }
  
  body.dark-mode .loading-screen {
    background-color: #121212;
  }
  body.dark-mode .b-logo::before,
  body.dark-mode .b-logo::after,
  body.dark-mode .b-logo span {
    background: linear-gradient(145deg, #00b7ff, #0088cc);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  }
  body.dark-mode .search-icon {
    color: #ffffff;
  }
  body.dark-mode #search-bar {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  .plus-code-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 10px;
    transition: background-color 0.3s ease;
  }
  .plus-code-button:hover {
    background-color: #1976D2;
  }
  .request-button {
    background-color: #FF9800; /* Orange color */
    color: white;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 5px;
    transition: background-color 0.3s ease;
  }
  .request-button:hover {
    background-color: #F57C00; /* Darker Orange */
  }
  
  .measure-button {
    background-color: #9C27B0; /* Purple color */
    color: white;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 5px;
    transition: background-color 0.3s ease;
  }
  .measure-button:hover {
    background-color: #7B1FA2; /* Darker Purple */
  }
  
  .phone-edit-manual-cancel {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
  }
  
  .phone-edit-manual-cancel:hover {
    background-color: #c82333;
  }
  
  .overlay-close-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    width: auto;
    min-width: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .overlay-close-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  .map-button {
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 5px;
    transition: background-color 0.3s ease;
  }
  .map-button:hover {
    background-color: #45a049; /* Darker Green */
  }
  .bind-button {
    padding: 5px 8px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background-color: #2196F3;
    transition: background-color 0.3s ease;
  }
  .bind-button[href], .bind-button[onclick] {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
  }
  .bind-button:hover {
    background-color: #45a049;
  }
  .card-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    position: absolute;
    top: 5px;
    left: 60px;
  }
  .card-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
  }
  .card-modal.show {
    display: block;
  }
  .card-modal.dark-mode {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
  }
  .card-modal-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  .card-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #4CAF50;
  }
  .card-modal.dark-mode .card-modal-header h2 {
    color: #ffffff;
  }
  .card-modal .b-logo {
    width: 80px;
    height: 80px;
    margin: 10px auto;
  }
  .card-modal-content {
    padding: 15px 0;
  }
  
  /* Make services container scrollable */
  #service-names-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
  }
  
  /* Style the scrollbar for better UX */
  #service-names-container::-webkit-scrollbar {
    width: 6px;
  }
  
  #service-names-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  #service-names-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }
  
  #service-names-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  /* Dark mode styles for services container */
  body.dark-mode #service-names-container,
  .card-modal.dark-mode #service-names-container {
    background-color: #2a2a2a;
    border-color: #555;
    color: #ffffff;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-track,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-track {
    background: #333;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-thumb,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-thumb {
    background: #666;
  }
  
  body.dark-mode #service-names-container::-webkit-scrollbar-thumb:hover,
  .card-modal.dark-mode #service-names-container::-webkit-scrollbar-thumb:hover {
    background: #777;
  }
  
  /* Style for individual service items */
  .service-item {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 5px;
  }
  
  .service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .service-item strong {
    color: #4CAF50;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
  }
  
  /* Dark mode styles for service items */
  body.dark-mode .service-item,
  .card-modal.dark-mode .service-item {
    border-bottom-color: #444;
  }
  
  body.dark-mode .service-item strong,
  .card-modal.dark-mode .service-item strong {
    color: #81C784;
  }
  
  /* Smooth scrolling */
  #service-names-container {
    scroll-behavior: smooth;
  }
  .card-modal-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
  }
  .card-modal.dark-mode .card-modal-content p {
    color: #cccccc;
  }
  .card-modal-content p strong {
    color: #4CAF50;
  }
  .card-modal.dark-mode .card-modal-content p strong {
    color: #ffffff;
  }
  .card-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
  }
  .card-modal-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 50%;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }
  .card-modal-close:hover {
    background-color: #45a049;
  }
  .card-modal-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 10px;
  }
  .card-modal.dark-mode .card-modal-footer {
    color: #999;
  }
  .payment-info-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 5px;
  }
  .payment-status.awaiting {
    background-color: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
  }
  .payment-info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    max-width: 500px;
    width: 90%;
  }
  .payment-info-modal.show {
    display: block;
  }
  .payment-info-modal h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    text-align: center;
  }
  .payment-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    display: block;
  }
  .payment-info-table th, .payment-info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 12px;
  }
  .payment-info-table th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
  }
  .payment-info-table tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  .payment-info-table td:empty {
    display: none;
  }
  .payment-info-table tr:has(td:empty) {
    display: none;
  }
  .payment-info-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
  }
  .apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1004;
    overflow-y: auto;
  }
  .apply-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .apply-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .apply-modal h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    text-align: center;
    font-size: 16px;
  }
  .apply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }
  .apply-form label {
    font-weight: bold;
    font-size: 14px;
  }
  .apply-form input, .apply-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  .apply-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  .apply-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
  }
  .apply-submit {
    background-color: #4CAF50;
    color: white;
  }
  .apply-cancel {
    background-color: #f44336;
    color: white;
  }
  .service-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
    font-size: 14px;
  }
  .service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }
  .service-item:last-child {
    border-bottom: none;
  }
  .remove-service {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 12px;
  }
  .service-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
  }
  .service-details select {
    padding: 5px;
    font-size: 12px;
  }
  body.dark-mode .payment-info-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .payment-info-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .payment-info-table th,
  body.dark-mode .payment-info-table td {
    border-color: #555;
    color: #ffffff;
  }
  body.dark-mode .payment-info-table th {
    background-color: #2e7d32;
  }
  body.dark-mode .payment-info-table tr:nth-child(even) {
    background-color: #333;
  }
  body.dark-mode .payment-info-close {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .apply-modal-content {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .apply-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .apply-form input,
  body.dark-mode .apply-form select {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  body.dark-mode .service-list {
    background-color: #1e1e1e;
    border-color: #555;
  }
  body.dark-mode .service-item {
    border-bottom-color: #555;
  }
  .service-name-input {
    margin-top: 5px;
  }
  .payment-status {
    margin-top: 5px;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
  }
  .on-base {
    background-color: #4CAF50;
    color: white;
  }
  .off-base {
    background-color: #f44336;
    color: white;
  }
  
  .no-service {
    background-color: #6c757d;
    color: white;
  }
  
  .no-services-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
  }
  
  
  .services-status-container {
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    max-height: 120px; /* Limit height to show ~2 services */
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 #f1f1f1; /* For Firefox */
  }
  
  /* Custom scrollbar for Webkit browsers */
  .services-status-container::-webkit-scrollbar {
    width: 6px;
  }
  
  .services-status-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  .services-status-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
  
  .services-status-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  .service-status-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease;
  }
  
  .service-status-item.service-hidden {
    opacity: 0.7;
  }
  
  .service-status-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .service-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-left: 0;
  }
  
  .service-number {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    min-width: 16px;
  }
  
  .service-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    flex: 1;
  }
  
  .service-status-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 2px;
    padding-left: 0;
  }
  
  .service-status-item .payment-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 84px;
    text-align: center;
  }
  
  /* Scroll indicator styling */
  .service-scroll-indicator {
    text-align: center;
    padding: 5px 0;
    border-top: 1px dashed #ccc;
    margin-top: 5px;
  }
  
  .scroll-text {
    font-size: 10px;
    color: #666;
    font-style: italic;
  }
  
  /* Dark mode styles for service status */
  body.dark-mode .services-status-container {
    border-top-color: #444;
    scrollbar-color: #555 #333; /* For Firefox dark mode */
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-track {
    background: #333;
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-thumb {
    background: #555;
  }
  
  body.dark-mode .services-status-container::-webkit-scrollbar-thumb:hover {
    background: #777;
  }
  
  body.dark-mode .service-status-item {
    border-bottom-color: #444;
  }
  
  body.dark-mode .service-name {
    color: #fff;
  }
  
  body.dark-mode .service-number {
    color: #ccc;
  }
  
  body.dark-mode .scroll-text {
    color: #ccc;
  }
  
  /* Status badges for customer approval status */
  .status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
  }
  .status-badge.pending {
    background-color: #FFC107;
    color: black;
  }
  
  /* Dark mode styles for status badges */
  body.dark-mode .status-badge.pending {
    background-color: #FFB300;
    color: black;
  }
  
  .call-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
  }
  .stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  .stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .stat-card h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
  }
  .stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
  .stat-card.total-registered {
    border-top: 4px solid #2196F3;
  }
  .stat-card.total-paid {
    border-top: 4px solid #4CAF50;
  }
  .stat-card.total-unpaid {
    border-top: 4px solid #f44336;
  }
  body.dark-mode .stat-card {
    background-color: #333;
  }
  .plus-code-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1008;
    max-width: 300px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }
  .plus-code-modal.show {
    display: block;
  }
  .plus-code-modal h4 {
    margin-top: 0;
    color: #4CAF50;
    text-align: center;
  }
  .plus-code-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
  }
  .plus-code-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  .plus-code-buttons {
    display: flex;
    gap: 10px;
  }
  .plus-code-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .plus-code-confirm {
    background-color: #4CAF50;
    color: white;
  }
  .plus-code-cancel {
    background-color: #f44336;
    color: white;
  }
  .property-type-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 5px;
  }
  body.dark-mode .plus-code-modal {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .plus-code-modal h4 {
    color: #ffffff;
  }
  body.dark-mode .plus-code-input {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
  }
  .formatted-number {
    font-family: monospace;
  }
  .service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
  }
  .service-card h4 {
    margin: 0 0 5px 0;
    color: #4CAF50;
  }
  .service-card p {
    margin: 3px 0;
    font-size: 13px;
  }
  .service-card-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
  }
  body.dark-mode .service-card {
    background-color: #333;
    border-color: #555;
  }
  .add-service-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .add-service-button:hover {
    background-color: #45a049;
  }
  .service-buttons-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* Keep all buttons on one row */
    gap: 6px;
    margin-top: 10px;
  }
  
  .service-buttons-container button {
    flex: 1 1 0; /* Allow gentle shrinking to fit one row */
    min-width: 0;
    white-space: nowrap;
    padding: 4px 8px; /* Slightly smaller to fit all */
    font-size: 11px; /* Reduce a bit but keep readable */
  }
  /* Make the Payment Info button clearer and more prominent */
  .service-buttons-container .payment-info-button {
    flex: 0 0 auto; /* Allow full label width */
    min-width: max-content; /* Prevent truncation */
  }
  /* Ensure Plus Code, Request, and Map are fully readable */
  .service-buttons-container .plus-code-button,
  .service-buttons-container .request-button,
  .service-buttons-container .map-button { flex: 1 1 0; }

  /* Ensure the ruler icon remains compact but aligned on the same row */
  .service-buttons-container .measure-button { flex: 0 0 auto; padding: 4px 8px; }
  
  /* Locked measurement button styling */
  .service-buttons-container .measure-button.locked {
    background-color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
  }
  
  .service-buttons-container .measure-button.locked:hover {
    background-color: #666 !important;
  }

  /* Form buttons styling */
  .form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }

  .form-buttons .blue-button,
  .form-buttons .gray-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .form-buttons .blue-button {
    background-color: #3498db;
    color: white;
  }

  .form-buttons .blue-button:hover {
    background-color: #2980b9;
  }

  .form-buttons .gray-button {
    background-color: #95a5a6;
    color: white;
  }

  .form-buttons .gray-button:hover {
    background-color: #7f8c8d;
  }

  /* Extra protection on very narrow devices */
  @media (max-width: 420px) {
    .service-buttons-container { gap: 4px; }
    .service-buttons-container button { font-size: 10px; padding: 4px 6px; }
  }
  .plus-code-input.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
  }
  body.dark-mode .plus-code-input.disabled {
    background-color: #333;
    color: #666;
  }
  .service-location-input {
    margin-top: 10px;
  }
  .payment-status {
    margin-top: 5px;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
  }
  .on-base {
    background-color: #4CAF50;
    color: white;
  }
  .off-base {
    background-color: #f44336;
    color: white;
  }
  /* Performance Modal Styles */
  #performance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
    max-width: 100%;
    overflow-y: auto;
  }
  #performance-modal.show {
    display: block;
  }
  #performance-modal .notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
  }
  #performance-modal .notification-modal-header h3 {
    margin: 0;
    color: #4CAF50;
    text-align: center;
    font-size: 24px;
    flex-grow: 1;
  }
  #performance-modal .back-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4CAF50;
    padding: 5px;
  }
  .time-period-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .time-period-button {
    padding: 10px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .time-period-button.active {
    background-color: #4CAF50;
    color: white;
  }
  .performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }
  .performance-stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .performance-stat-card h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
  }
  .performance-stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
  /* Added space at the bottom of performance modal */
  .performance-footer {
    height: 40px; /* Added space at the bottom */
    margin-top: 20px;
  }
  body.dark-mode #performance-modal {
    background-color: #121212;
    border-color: #333;
    color: #ffffff;
  }
  body.dark-mode .time-period-button {
    background-color: #333;
    color: #ffffff;
  }
  body.dark-mode .time-period-button.active {
    background-color: #4CAF50;
    color: #ffffff;
  }
  body.dark-mode .performance-stat-card {
    background-color: #333;
  }
  
  /* Specific style for performance button only */
  .dropdown-menu button[onclick="showPerformance()"] {
    font-size: 12px; /* Reduced font size */
  }
  
  /* Time column styles */
  .payment-time {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
  }
  body.dark-mode .payment-time {
    color: #aaa;
  }
  
  /* Agent Details Decoration Styles */
  .agent-details-content {
      padding: 20px;
      max-width: 500px;
      margin: 20px auto;
      background-color: #f9f9f9;
      border-radius: 15px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      text-align: center;
  }
  
  .agent-profile-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background-color: #e0e0e0;
      margin: 0 auto 20px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 4px solid #4CAF50;
  }
  
  .agent-profile-avatar svg {
      width: 60px;
      height: 60px;
      fill: #4CAF50;
  }
  
  #agent-details-name {
      font-size: 1.8rem;
      font-weight: bold;
      margin: 0 0 20px 0;
      color: #333;
  }
  
  .agent-info-list {
      list-style-type: none;
      padding: 0;
      margin: 0;
      text-align: left;
  }
  
  .agent-info-list li {
      display: flex;
      align-items: center;
      font-size: 1.1rem;
      padding: 12px 0;
      border-bottom: 1px solid #4CAF50;
  }
  
  .agent-info-list li:last-child {
      border-bottom: none;
  }
  
  .agent-info-list .info-icon {
      width: 24px;
      height: 24px;
      margin-right: 15px;
      fill: #4CAF50;
  }
  
  .agent-info-list .info-text {
      color: #555;
  }
  
  /* Dark Mode Agent Details */
  body.dark-mode .agent-details-content {
      background-color: #2a2a2a;
      border: 1px solid #444;
  }
  body.dark-mode #agent-details-name {
      color: #ffffff;
  }
  body.dark-mode .agent-profile-avatar {
      background-color: #444;
      border-color: #4CAF50;
  }
  body.dark-mode .agent-profile-avatar svg {
      fill: #4CAF50;
  }
  body.dark-mode .agent-info-list li {
      border-bottom-color: #444;
  }
  body.dark-mode .agent-info-list .info-icon {
      fill: #4CAF50;
  }
  body.dark-mode .agent-info-list .info-text {
      color: #ccc;
  }
  body.dark-mode #agent-details-modal p {
    color: #ccc;
  }
  