/* ======================================
   Student Data Manager – Frontend Styles
   ====================================== */

/* 🔹 Container */
.sdm-search {
  max-width: 820px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-family: "Segoe UI", Arial, sans-serif;
}

/* 🔹 Grid: Student ID | DOB | Button */
.sdm-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

/* 🔹 Field */
.sdm-field {
  display: flex;
  flex-direction: column;
}
.sdm-field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #233047;
  font-size: 14px;
}
.sdm-field input {
  padding: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sdm-field input:focus {
  border-color: #e60000;
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.15);
  outline: none;
}

/* 🔹 Button */
.sdm-button-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sdm-submit {
  background: #e60000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease;
}
.sdm-submit:hover {
  background: #cc0000;
}
.sdm-submit:active {
  transform: translateY(1px);
}

/* 🔹 Message */
.sdm-message {
  margin-top: 14px;
  font-weight: 700;
}
.sdm-message.success { color: #178b3b; }
.sdm-message.error   { color: #cc0000; }
.sdm-message.info    { color: #333; }

/* 🔹 Result Wrapper */
#sdm-search-result {
  margin-top: 18px;
}

/* 🔹 Student Info Card */
.sdm-student-info {
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  border-left: 4px solid #e60000;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.03);
}
.sdm-student-info p {
  margin: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: #263244;
}
.sdm-student-info p strong {
  width: 150px;
  min-width: 110px;
  color: #182231;
  font-weight: 700;
}

/* 🔹 File Link */
.sdm-student-info a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
  color: #1f6feb;
  transition: background 0.2s ease;
}
.sdm-student-info a:hover {
  background: #f5faff;
  text-decoration: underline;
}

/* 🔹 "No file" style */
.sdm-student-no-file {
  color: #6b7280;
  font-style: italic;
}

/* 🔹 Responsive */
@media (max-width: 640px) {
  .sdm-search { padding: 16px; }
  .sdm-search-grid { grid-template-columns: 1fr; }
  .sdm-button-wrap { align-items: flex-start; margin-top: 6px; }
  .sdm-student-info p { flex-direction: column; align-items: flex-start; }
  .sdm-student-info p strong { width: auto; margin-bottom: 4px; }
}
