@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0e0d14;
  color: #dadada;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px;
}

h1, h2 {
  color: #f7a600;
  text-align: center;
  margin-bottom: 20px;
}

p {
  margin-bottom: 10px;
  font-size: 18px;
}

button {
  height:50px;
  width: 100px;
  background-color: #f7a600;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

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

#back-button {
  margin-top: 20px;
  width: 440px;

  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}




.modal-content {
  background-color: #242733;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}


/* Table styling */
table {
  width: 70%; /* Set table width to 70% */
  margin: 20px auto; /* Center the table */
  border-collapse: separate; /* Use separate borders for rounded corners */
  border-spacing: 0; /* Remove default spacing */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Soft shadow to separate the table */
  overflow: hidden; /* Ensure the corners stay rounded */
  background-color: #ffffff; /* White background for the whole table */
  border: none; /* Remove all borders */
}

/* Table header styling */
th {
  background-color: #f7a600; /* Keep header orange */
  color: #fff;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  font-weight: 600;
  border: none; /* Remove borders for table header */
}

/* Table row styling */
td {
  padding: 15px;
  text-align: center;
  font-size: 18px;
  color: #3c3b42;
  border: none; /* Remove borders for table cells */
  vertical-align: middle;
}

/* Odd rows - Light gray */
tbody tr:nth-child(odd) td {
  background-color: #f9f9f9; /* Light gray */
}

/* Even rows - White */
tbody tr:nth-child(even) td {
  background-color: #ffffff; /* White */
}

/* Row hover effect */
tbody tr:hover td {
  background-color: #e6e6e6; /* Slight shading on hover */
}

/* Table head styling */
thead {
  border-bottom: none; /* Remove border between thead and tbody */
}

/* Optional table container styling for further separation */
table {
  padding: 0;
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Softer shadow surrounding the table */
  overflow: hidden;
}


/* Pagination controls */
#pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}



/* Button disabling */
button[disabled] {
  background-color: #f7a600;
  cursor: not-allowed;
}

/* Form styling */
form {
  max-width: 600px;
  margin: 50px auto;
  background: #242733;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px 1px rgba(17, 16, 16, 0.1);
}

form label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Two-column form layout */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

}



form input, form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #a7a3a3;
  background: #333;
  color: #fff;
  font-size: 16px;
  outline: none;
}

form input:focus, form select:focus {
  border-color: #f7a600;
  box-shadow: inset 0px 0px 2px 2px rgba(26, 77, 188, 0.25);
}

form button {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  font-weight: 500;
  background: #f7a600;
  border: 1px solid #f7a600;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}

form button:hover {
  background: #f59402;
}

/* Close button styling */
#close-form-button {
  margin-top: 10px;
  background: #f7a600;
}

#close-form-button:hover {
  background: #f59402;
}

/* File input styling */
form input[type="file"] {
  padding: 0;
}

form input::file-selector-button {
  background: #f7a600;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

form input::file-selector-button:hover {
  background: #f59402;
}

form input::placeholder {
  color: #3c3b42;
}

/* Responsiveness */
@media (max-width: 768px) {
  .form-row {
      grid-template-columns: 1fr;
  }
}


.delete-btn {
  width: 40px;
  height: 40px;  /* Ensure the button is square */
  background: #f7a600;
  color: white;
  border: none;
  border-radius: 5px;
  display: inline-flex;  /* Flex inside inline-block to help align */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.delete-btn i {
  font-size: 20px; /* Adjust icon size */
}

.delete-btn:hover {
  background: #f59402;
}