/**
 * DeeBesto Student Portal - Student Dashboard / Profile styles.
 * Enqueued only on pages containing the [deebesto_student_portal] shortcode.
 */

.dbsp-wrap * {
  box-sizing: border-box;
}
.dbsp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #F5F6F8;
  color: #111111;
  padding: 32px 20px 60px;
}
.dbsp-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Notices ---------- */
.dbsp-notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}
.dbsp-notice-success {
  background: #ECFDF3;
  color: #027A48;
  border: 1px solid #ABEFC6;
}
.dbsp-notice-error {
  background: #FEF3F2;
  color: #B42318;
  border: 1px solid #FECDCA;
}

/* ---------- Hero ---------- */
.dbsp-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #111111;
}
.dbsp-hero p {
  margin: 0 0 22px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.dbsp-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.dbsp-btn:hover {
  opacity: 0.88;
}
.dbsp-btn-primary {
  background: #F5B731;
  color: #111111;
}
.dbsp-btn-secondary {
  background: #FFFFFF;
  color: #111111;
  border: 1px solid #E5E7EB;
}
.dbsp-btn-danger {
  background: #FFFFFF;
  color: #B42318;
  border: 1px solid #FECDCA;
}

/* ---------- Card base ---------- */
.dbsp-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
}
.dbsp-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}
.dbsp-card-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #667085;
}
.dbsp-card-placeholder {
  opacity: 0.6;
}

/* ---------- Dashboard grid ---------- */
.dbsp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .dbsp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dbsp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Progress bar ---------- */
.dbsp-progress-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.dbsp-progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}
.dbsp-progress-bar-track {
  background: #F0F1F3;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.dbsp-progress-bar-fill {
  background: #F5B731;
  height: 100%;
  border-radius: 999px;
}

/* ---------- Status badges ---------- */
.dbsp-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 8px;
}
.dbsp-status-done {
  background: #ECFDF3;
  color: #027A48;
}
.dbsp-status-pending {
  background: #FFFAEB;
  color: #B54708;
}

/* ---------- Activity list ---------- */
.dbsp-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dbsp-activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #F0F1F3;
  font-size: 13px;
}
.dbsp-activity-list li:last-child {
  border-bottom: none;
}
.dbsp-activity-message {
  color: #111111;
}
.dbsp-activity-time {
  color: #98A2B3;
  white-space: nowrap;
}

/* ---------- Links ---------- */
.dbsp-link {
  color: #B54708;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.dbsp-link:hover {
  text-decoration: underline;
}

/* ---------- Form fields ---------- */
.dbsp-field {
  margin-bottom: 18px;
}
.dbsp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 6px;
}
.dbsp-field input[type="text"],
.dbsp-field input[type="tel"],
.dbsp-field input[type="email"],
.dbsp-field input[type="file"],
.dbsp-field select,
.dbsp-field textarea {
  width: 100%;
  max-width: 480px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #111111;
  background: #FFFFFF;
}
.dbsp-field input[readonly],
.dbsp-field input[disabled] {
  background: #F5F6F8;
  color: #667085;
}
.dbsp-field textarea {
  min-height: 90px;
  resize: vertical;
}
.dbsp-field-error {
  color: #B42318;
  font-size: 12px;
  margin: 6px 0 0;
}

.dbsp-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.dbsp-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #111111;
}

.dbsp-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 10px 0 0;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
}
h3:first-of-type {
  margin-top: 0;
}
