/* 🌸 General Page Styling */
body {
  font-family: Arial, sans-serif;
  padding: 15px;
  background: #dc84e2;
  margin: 0;
}

h2 {
  color: #333;
  text-align: center;
  font-size: clamp(18px, 2.5vw, 28px); /* responsive text size */
}

/* 🌸 Main Container */
.container {
  background: #f3f6f7;
  color: #070707;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* 🌸 Table Wrapper (Responsive Scrollable) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* keeps table readable */
}

th, td {
  border: 1px solid #dacfcf;
  padding: 10px;
  text-align: center;
  word-break: break-word;
}

th {
  background: #101010;
  color: #fff;
  font-size: clamp(12px, 1.5vw, 16px);
}

/* 🌸 Inputs & Selects */
input,
select {
  padding: 10px;
  margin: 5px 0;
  width: 100%;
  border: 2px solid #ad1818dc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  background: #fafafa;
  transition: 0.3s ease;
  box-sizing: border-box;
}

input:focus,
select:focus {
  border-color: #4CAF50;
  background: #fff;
}

/* 🌸 Buttons */
button {
  padding: 10px 15px;
  background: #b627b6;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px 0;
  transition: 0.3s ease;
  display: inline-block;
  font-size: 14px;
}

button:hover {
  background: #457ba0;
}

/* Remove Button 
.removeBtn {
  background: red;
  padding: 5px 10px;
  border-radius: 5px;
}

.removeBtn:hover {
  background: rgb(203, 19, 19);
}
*/
/* 🌸 Remove Button */
.removeBtn {
  background: #e63946;       /* bright red */
  color: #fff;
  padding: 6px 12px;         /* bigger size */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-width: 70px;           /* ensures visibility */
}

.removeBtn:hover {
  background: #b71c1c;       /* darker red on hover */
}

/* 🌸 Subject Input + Button Wrapper */
.input-suggestion-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  position: relative; /* for dropdown */
}

.input-suggestion-wrapper input {
  flex: 2;
}

.input-suggestion-wrapper button {
  flex: 1;
  min-width: 100px;
}

/* 🌸 Suggestions Dropdown */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f4f2f2;
  color: #050404;
  max-height: 180px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  border: none;
  border-radius: 4px;
}

.suggestions:not(:empty) {
  border: 1px solid #3e0202;
}

.suggestions div {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}

.suggestions div:last-child {
  border-bottom: none;
}

.suggestions div:hover {
  background: #74bdea;
}

/* 🌸 Custom Inputs Layout */
.custom-inputs {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.custom-inputs input,
.custom-inputs select {
  flex: 1;
  min-width: 0;
}

/* 🌸 Responsive Design */
@media (max-width: 900px) {
  .container {
    padding: 15px;
  }

  th, td {
    padding: 6px;
  }
}

@media (max-width: 600px) {
  .custom-inputs,
  .input-suggestion-wrapper {
    flex-direction: column;
  }

  button {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }

  input,
  select {
    font-size: 16px;
  }

  table,
  th,
  td {
    font-size: 12px;
  }

  .suggestions {
    width: 100%;
  }
}
