/* Compact Student Card */

#studentInfo {
  margin-top: 16px;
}

.student-card {
  width: 95%;
  max-width: 750px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.card-header-strip {
  background: #007bff;
  color: white;
  text-align: center;
  padding: 8px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-content {
  padding: 14px 18px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap; /* ensures it stacks nicely on small screens */
}

/* Left: photo fixed size */
.student-photo {
  width: 110px;
  height: 130px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

/* Middle: name + ID section should take most space */
.student-name-id {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Adjust font and spacing for readability */
.student-name-id .student-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.student-id-row,
.db-id-row {
  font-size: 0.9rem;
  color: #555;
}

/* Right: short info column */
.student-info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 120px; /* keep it narrow */
}

/* style each info field neatly */
.student-info-row div {
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 150px;
  text-align: center;
}

/* keep summary below looking consistent */
.summary-box {
  margin-top: 16px;
}

.student-exit-info {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #e53935;
  font-size: 1rem;
}

.name-and-exit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-exit-info i {
  color: #e53935;
  opacity: 0.9;
  font-size: 0.95em;
}

.exit-date {
  font-size: 0.8em;
  color: #e53935;
  font-weight: 500;
}

/* Integrated Student Summary Box */

.summary-box {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f4f7fb; /* subtle bluish-gray to blend with the card */
  border-left: 3px solid #0d6efd; /* keeps accent consistent */
  border-radius: 6px;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.45;
  word-wrap: break-word;
  display: none; /* default hidden */
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Optional heading inside the summary */
.summary-box .summary-title {
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* Content styling for better readability */
.summary-box p {
  margin: 4px 0;
}

.summary-box ul {
  margin: 6px 0 0 20px;
  padding: 0;
  list-style-type: disc;
}

.summary-box li {
  margin-bottom: 4px;
}

/* student note section */
.note-section {
  margin: 16px 0; /* spacing between other sections */
  padding: 14px 16px;
  background: #f1f6ff; /* ✅ soft blue-gray highlight */
  border: 1px solid #d0e3ff; /* subtle blue border for clarity */
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.note-box {
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.06);
}

.note-textarea {
  border: none;
  resize: vertical;
  width: 100%;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.45;
  min-height: 70px;
}

.note-textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2); /* focus ring */
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.note-footer small {
  font-size: 0.85rem;
  color: #555;
}

.save-note-btn {
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: #0d6efd;
  color: #fff;
  border: none;
  transition: all 0.2s ease;
}

.save-note-btn:hover {
  background: #0b5ed7;
}
