* {
    box-sizing: border-box;
    font-family: sans-serif;
  }
  
  body {
    margin: 0;
    background-color: #121212;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
    padding: 0;
  }
  
  header {
    background-color: #333;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
  }
  
  nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #444;
  }
  
  nav button {
    margin: 0 0.5rem;
    padding: 10px 15px;
    font-size: 14px;
    color: white;
    background-color: #555;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  nav button:hover {
    background-color: #666;
  }
  
  main {
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  section {
    display: none;
    margin-bottom: 20px;
  }
  
  .active-section {
    display: block;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1e1e1e;
    padding: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 1.5rem;
  }
  
  form input,
  form textarea,
  form button,
  form select {
    padding: 10px;
    font-size: 14px;
    background: #2a2a2a;
    border: 1px solid #ccc;
    color: #f1f1f1;
    border-radius: 5px;
  }
  
  form button {
    background-color: #333;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }
  
  form button:hover {
    background-color: #555;
  }
  
  #clientList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .client-card {
    background-color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .client-card button {
    margin-top: 10px;
    background-color: #333;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .client-card button:hover {
    background-color: #555;
  }
  
  #requestList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .request-card {
    background-color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .request-card button {
    margin-top: 10px;
    background-color: #333;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .request-card button:hover {
    background-color: #555;
  }
  
  #appointments {
    padding: 20px;
  }
  
  #appointmentForm {
    margin-bottom: 20px;
  }
  
  #appointmentForm input, 
  #appointmentForm select, 
  #appointmentForm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  
  button {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }
  
  button:hover {
    background-color: #555;
  }
  
  .appointment-card {
    background-color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .appointment-card button {
    margin-top: 10px;
    background-color: #333;
    padding: 5px 10px;
    font-size: 12px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .appointment-card button:hover {
    background-color: #555;
  }
  
  #tasks {
    padding: 20px;
  }
  
  #taskForm {
    margin-bottom: 20px;
  }
  
  #taskForm input, 
  #taskForm select, 
  #taskForm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  
  .task-card {
    background-color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .task-card.completed {
    background-color: #4CAF50;
  }
  
  .task-card button {
    margin-top: 10px;
    background-color: #333;
    padding: 5px 10px;
    font-size: 12px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .task-card button:hover {
    background-color: #555;
  }
  
  .task-card button:first-of-type {
    background-color: #FFB300;
  }
  
  .task-card button:first-of-type:hover {
    background-color: #FF8F00;
  }

  #dashboard {
    padding: 20px;
  }

  .dashboard-item {
    background-color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    cursor: pointer;
  }

  .dashboard-item h3 {
    margin: 0;
  }

  .dashboard-item p {
    margin: 0;
    font-size: 16px;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    color: black; /* Ensure text is visible */
    margin-top: 10px;
    border-radius: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
  }

  .dropdown-content p {
    margin: 5px 0;
  }

  .dashboard-item.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .modal-content {
    background-color: #333;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .modal.show {
    opacity: 1;
  }

  .modal-content.show {
    transform: scale(1);
  }

  .close-button {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }

  .close-button:hover {
    color: red;
  }

  #databaseTableContainer {
    overflow-x: auto;
    margin-top: 20px;
  }

  #databaseControls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  #searchBar {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #f1f1f1;
    margin-right: 10px;
  }

  #filterType {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #f1f1f1;
  }

  #databaseTable {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    color: #f1f1f1;
  }

  #databaseTable th, #databaseTable td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
  }

  #databaseTable th {
    background-color: #333;
    font-weight: bold;
  }

  #databaseTable td {
    background-color: #1e1e1e;
  }

  #databaseTable tr:nth-child(even) td {
    background-color: #2a2a2a;
  }

  #databaseTable tr.hidden {
    display: none;
  }

  /* Button Animations */
  button, nav button {
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  button:hover, nav button:hover {
    background-color: #666;
    transform: scale(1.05);
  }

  button:active, nav button:active {
    transform: scale(0.95);
  }

  /* Responsive styles */
  @media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        background-color: transparent;
    }

    nav button {
        width: 100%;
        text-align: center;
    }

    form {
        width: 100%;
    }

    .dashboard-item {
        font-size: 14px;
    }

    .payment-card, .client-card, .request-card, .appointment-card, .task-card {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
    }
  }

  @media (max-width: 480px) {
    nav button {
        font-size: 12px;
        padding: 8px 10px;
    }

    form input, form select, form textarea, form button {
        font-size: 12px;
        padding: 8px;
    }

    .dashboard-item {
        font-size: 12px;
    }

    .payment-card, .client-card, .request-card, .appointment-card, .task-card {
        font-size: 12px;
    }
  }

  /* Responsive styles for smaller screens */
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: stretch;
      gap: 5px;
    }
  
    nav button {
      width: 100%;
      font-size: 14px;
      padding: 10px;
    }
  
    main {
      padding: 5px;
    }
  
    form {
      padding: 10px;
    }
  
    form input,
    form textarea,
    form select,
    form button {
      font-size: 14px;
      padding: 8px;
    }
  
    .dashboard-item {
      flex-direction: column;
      align-items: flex-start;
      font-size: 14px;
    }
  
    .dashboard-item h3 {
      font-size: 16px;
    }
  
    .dashboard-item p {
      font-size: 14px;
    }
  
    #databaseControls {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
  
    #searchBar,
    #filterType {
      width: 100%;
    }
  
    #databaseTableContainer {
      overflow-x: auto;
    }
  
    #databaseTable th,
    #databaseTable td {
      font-size: 12px;
      padding: 8px;
    }
  }
  
  @media (max-width: 480px) {
    header {
      padding: 10px;
    }
  
    nav button {
      font-size: 12px;
      padding: 8px;
    }
  
    form input,
    form textarea,
    form select,
    form button {
      font-size: 12px;
      padding: 6px;
    }
  
    .dashboard-item {
      font-size: 12px;
    }
  
    .dashboard-item h3 {
      font-size: 14px;
    }
  
    .dashboard-item p {
      font-size: 12px;
    }
  
    #databaseTable th,
    #databaseTable td {
      font-size: 10px;
      padding: 6px;
    }
  
    .modal-content {
      width: 95%;
    }
  }

  /* Comment Section */
  #commentSection {
    background-color: #1e1e1e;
    padding: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
  }

  #commentSection h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  #commentForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #commentForm textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #f1f1f1;
    border: 1px solid #444;
    border-radius: 5px;
  }

  #commentForm button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  #commentForm button:hover {
    background-color: #555;
  }

  #commentList {
    margin-top: 20px;
  }

  #commentList p {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #f1f1f1;
  }

  /* Footer */
  footer {
    background-color: #333;
    color: #f1f1f1;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    font-size: 14px;
  }

  /* Ensure the Netlify form section is always visible */
  #netlifyFormSection {
    display: block !important;
    margin-top: 20px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
  }

  #netlifyFormSection h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  #netlifyFormSection form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #netlifyFormSection input,
  #netlifyFormSection textarea {
    padding: 10px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #f1f1f1;
    border: 1px solid #444;
    border-radius: 5px;
  }

  #netlifyFormSection button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  #netlifyFormSection button:hover {
    background-color: #555;
  }
