.sje-table-wrap {
  padding: 24px;
  font-family: "Roboto", sans-serif;
}

.sje-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sje-searchbar {
  flex: 0 0 300px;
  margin-bottom: 12px;
}

.sje-searchbar input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.sje-searchbar input:focus {
  outline: none;
  border-color: #dcbb87;
  box-shadow: 0 0 5px rgba(220, 187, 135, 0.2);
}

.sje-searchbar input::placeholder {
  color: #666;
}

.sje-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sje-table th {
  background: #dcbb87;
  color: #fff;
  text-align: left;
  padding: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.sje-table th:after {
  content: "↕";
  position: absolute;
  right: 8px;
  opacity: 0.5;
}

.sje-table th[data-sort="asc"]:after {
  content: "↑";
  opacity: 1;
}

.sje-table th[data-sort="desc"]:after {
  content: "↓";
  opacity: 1;
}

.sje-table th:hover {
  background: #d4af37;
}

.sje-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.sje-table tbody tr {
  transition: background-color 0.3s ease;
}

.sje-table tbody tr:hover {
  background: #f8f9fa;
}

.sje-price {
  font-weight: bold;
  color: #dcbb87;
}

.sje-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.sje-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sje-pagination button {
  padding: 8px 15px;
  border: 2px solid #dcbb87;
  background: transparent;
  color: #dcbb87;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sje-pagination button:hover:not(:disabled) {
  background: #dcbb87;
  color: #fff;
}

.sje-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

.sje-pagination-info {
  color: #666;
  font-size: 14px;
  margin: 0 15px;
}

.sje-rows-per-page {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 14px;
}

.sje-rows-per-page select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sje-rows-per-page select:hover {
  border-color: #dcbb87;
}

.sje-rows-per-page select:focus {
  outline: none;
  border-color: #dcbb87;
  box-shadow: 0 0 5px rgba(220, 187, 135, 0.2);
}

/* Reservation Form Styles */
.sje-reserve-btn {
  background: #dcbb87;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sje-reserve-btn:hover {
  background: #c4a064;
}

.sje-reservation-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.sje-form-group {
  margin-bottom: 15px;
}

.sje-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.sje-form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.sje-form-group input:focus {
  outline: none;
  border-color: #dcbb87;
  box-shadow: 0 0 5px rgba(220, 187, 135, 0.2);
}

.sje-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.sje-form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sje-form-actions button[type="submit"] {
  background: #dcbb87;
  color: #fff;
}

.sje-form-actions button[type="submit"]:hover {
  background: #c4a064;
}

.sje-cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.sje-cancel-btn:hover {
  background: #e0e0e0;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .sje-table-wrap {
    padding: 16px;
  }

  .sje-table th,
  .sje-table td {
    padding: 10px;
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  .sje-table-wrap {
    padding: 12px;
  }

  .sje-table thead {
    display: none;
  }

  .sje-table tbody tr {
    display: block;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .sje-table td {
    display: block;
    text-align: left;
    padding: 12px;
    border: none;
    position: relative;
    padding-left: 140px;
    min-height: 40px;
  }

  .sje-table td:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

  .sje-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #666;
    width: 120px;
  }

  .sje-form-actions {
    flex-direction: column;
  }

  .sje-form-actions button {
    width: 100%;
  }

  .sje-pagination {
    flex-direction: column;
    gap: 15px;
  }

  .sje-page-info {
    order: -1;
  }

  .sje-prev-page,
  .sje-next-page {
    width: 100%;
  }

  .sje-reservation-form {
    margin: 10px -12px;
    border-radius: 0;
  }
}

/* Tablet View */
@media screen and (max-width: 1024px) {
  .sje-table-wrap {
    padding: 16px;
  }

  .sje-searchbar {
    flex: 0 0 250px;
  }

  .sje-table th,
  .sje-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Mobile View */
/* Modal Styles */
.sje-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sje-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.sje-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.sje-modal.show .sje-modal-content {
  transform: translateY(0);
}

.sje-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sje-modal-close .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.sje-modal-close:hover {
  color: #333;
}

.sje-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin: 20px 0;
}

.sje-whatsapp-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.sje-whatsapp-btn:hover {
  background: #20bc5a;
  color: #fff;
  text-decoration: none;
}

.sje-success-message .sje-modal-close {
  position: static;
  margin-top: 20px;
}

.sje-modal h2 {
  margin: 0 0 20px;
  color: #333;
  font-size: 24px;
}

.sje-flight-details {
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.sje-flight-details p {
  margin: 8px 0;
  color: #333;
}

.sje-flight-details strong {
  color: #666;
  margin-right: 8px;
}

/* Success Modal */
.sje-success-message {
  text-align: center;
  padding: 20px 0;
}

.sje-success-message h2 {
  color: #4caf50;
  margin-bottom: 15px;
}

.sje-success-message p {
  color: #666;
  margin-bottom: 20px;
}

.sje-success-message button {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sje-success-message button:hover {
  background: #43a047;
}

@media screen and (max-width: 767px) {
  .sje-table-wrap {
    padding: 12px;
  }

  .sje-searchbar {
    flex: 0 0 100%;
    margin-bottom: 15px;
  }

  /* Convert table to cards for mobile */
  .sje-table,
  .sje-table tbody,
  .sje-table tr,
  .sje-table td {
    display: block;
  }

  .sje-table thead {
    display: none; /* Hide table headers on mobile */
  }

  .sje-table tbody tr {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .sje-table td {
    padding: 12px;
    border: none;
    position: relative;
    padding-left: 45%;
    text-align: left;
    min-height: 40px;
  }

  /* Add labels for mobile */
  .sje-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 40%;
    font-weight: 600;
    color: #666;
  }

  /* Pagination mobile styles */
  .sje-pagination {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .sje-page-info {
    order: -1;
    margin-bottom: 10px;
  }

  .sje-prev-page,
  .sje-next-page {
    padding: 10px 20px;
    width: 100%;
    max-width: 200px;
  }

  /* Modal mobile styles */
  .sje-modal-content {
    padding: 20px;
    width: 95%;
  }

  .sje-form-actions {
    flex-direction: column;
  }

  .sje-form-actions button {
    width: 100%;
  }
}
