/* General styles */
body {
  background-color: #f8f9fa;
  font-size: 16px;
}

.container {
  max-width: 600px;
  margin-top: 20px;
  padding: 15px;
}

/* Adjust headings */
h1 {
  font-size: 2.5rem; /* Larger font size for the main heading */
  color: #333; /* Dark gray color */
  margin-bottom: 15px;
}

h2, h3, h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Ensure form inputs and buttons are touch-friendly */
.form-control, .btn {
  font-size: 1rem;
  padding: 10px;
}

/* Adjust table for better readability */
.table {
  margin-top: 20px;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 8px;
}

/* Ensure list items are touch-friendly */
.list-group-item {
  font-size: 1rem;
  padding: 10px;
}

/* Style for employee list items with delete buttons */
.list-group-item.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .container {
      padding: 10px;
  }

  h1 {
      font-size: 2rem; /* Slightly smaller on mobile */
  }

  h2, h3, h4 {
      font-size: 1.2rem;
  }

  .form-control, .btn {
      font-size: 0.9rem;
      padding: 8px;
  }

  .table {
      font-size: 0.8rem;
  }

  .table th, .table td {
      padding: 6px;
  }

  .list-group-item {
      font-size: 0.9rem;
      padding: 8px;
  }

  /* Stack columns on mobile and adjust spacing */
  .row {
      flex-direction: column;
  }

  .col-md-4, .col-md-6, .col-md-8 {
      width: 100%;
      margin-bottom: 20px;
  }

  /* Ensure buttons are spaced properly on mobile */
  .btn {
      margin: 5px;
      width: 100%; /* Full-width buttons on mobile for better touch interaction */
  }

  /* Adjust form spacing on mobile */
  .mb-3 {
      margin-bottom: 15px !important;
  }

  /* Ensure forms are centered and readable */
  form {
      margin-bottom: 20px;
  }

  /* Adjust header layout on mobile */
  .header-container {
      text-align: center;
  }
}

/* Additional spacing for headings */
h2 {
  margin-top: 30px;
}

h3 {
  margin-top: 20px;
}