/* ===== STUDENT DASHBOARD - PREMIUM 3-STEP PORTAL ===== */

.student-dashboard-page {
  --dash-primary: var(--primary-color, #0a2540);
  --dash-secondary: var(--secondary-color, #0076d6);
  --dash-accent: var(--accent-color, #FFB800);
  --dash-surface: #ffffff;
  --dash-border: rgba(11, 46, 79, 0.12);
  --dash-soft: #f4f8ff;
  --dash-success: #28a745;

  padding: 44px 0 84px;
  background:
    radial-gradient(circle at 6% 8%, rgba(0, 118, 214, 0.14), transparent 30%),
    radial-gradient(circle at 94% 86%, rgba(11, 46, 79, 0.1), transparent 34%),
    linear-gradient(135deg, #eaf2ff, #f7fbff);
}

.student-dashboard-page .dashboard-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ===== WELCOME HEADER ===== */
.dash-welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--dash-primary), #003a70);
  padding: 28px 32px;
  border-radius: 16px;
  color: white;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.2);
}

.dash-welcome-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.dash-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #7cffb2;
  font-weight: 600;
  margin-bottom: 4px;
}

.dash-student-name {
  color: white !important;
  font-size: 1.5rem;
  margin: 0 0 4px;
  font-family: 'Playfair Display', serif;
}

.dash-meta {
  opacity: 0.8;
  margin: 0;
  font-size: 0.88rem;
}

.dash-logout-btn {
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== STEP PROGRESS BAR ===== */
.step-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  background: var(--dash-surface);
  padding: 24px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.step-item {
  text-align: center;
  flex: 0 0 auto;
  position: relative;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 8px;
  background: #e9eef4;
  color: #8899a8;
  border: 3px solid #dde4ec;
  transition: all 0.4s ease;
}

.step-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8899a8;
  transition: color 0.3s;
}

.step-item.active .step-circle {
  background: var(--dash-secondary);
  color: white;
  border-color: var(--dash-secondary);
  box-shadow: 0 4px 15px rgba(0, 118, 214, 0.35);
}

.step-item.active .step-label {
  color: var(--dash-primary);
}

.step-item.completed .step-circle {
  background: var(--dash-success);
  color: white;
  border-color: var(--dash-success);
}

.step-item.completed .step-label {
  color: var(--dash-success);
}

.step-line {
  flex: 1;
  height: 3px;
  background: #dde4ec;
  margin: 0 12px;
  border-radius: 4px;
  transition: background 0.4s;
  margin-bottom: 24px;
}

.step-line.completed {
  background: var(--dash-success);
}

/* ===== STEP PANELS ===== */
.step-panel {
  display: none;
  animation: fadeInPanel 0.4s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  border-left: 5px solid var(--dash-secondary);
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--dash-primary);
  font-family: 'Playfair Display', serif;
}

.panel-header p {
  margin: 0;
  color: #5a7a96;
  font-size: 0.92rem;
}

.panel-sub-section {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.panel-sub-section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--dash-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2f7;
}

/* ===== FORM GRID ===== */
.dash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dash-field.full-width {
  grid-column: 1 / -1;
}

.dash-field span {
  color: var(--dash-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.dash-field em {
  color: #d32f2f;
  font-style: normal;
}

.student-dashboard-page input,
.student-dashboard-page select,
.student-dashboard-page textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(76, 119, 157, 0.3);
  background: #f9fbff;
  color: #17324c;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.student-dashboard-page textarea {
  resize: vertical;
  min-height: 80px;
}

.student-dashboard-page input:focus,
.student-dashboard-page select:focus,
.student-dashboard-page textarea:focus {
  outline: none;
  border-color: var(--dash-secondary);
  box-shadow: 0 0 0 3px rgba(0, 118, 214, 0.12);
  background: #fff;
}

/* ===== EDUCATION TABLE ===== */
.dash-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(13, 94, 166, 0.14);
}

.dash-edu-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.dash-edu-table thead {
  background: linear-gradient(135deg, #e9f3ff, #f0f6ff);
}

.dash-edu-table th,
.dash-edu-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(13, 94, 166, 0.12);
}

.dash-edu-table th {
  font-size: 0.82rem;
  color: #163f66;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-edu-table td input {
  min-height: 38px;
  font-size: 0.9rem;
}

/* ===== UPLOAD GRID ===== */
.upload-note {
  margin: 0 0 16px;
  color: #7a8fa3;
  font-size: 0.88rem;
}

.dash-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.upload-card {
  background: var(--dash-soft);
  border: 2px dashed rgba(0, 118, 214, 0.2);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.upload-card:hover {
  border-color: var(--dash-secondary);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

.upload-card p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dash-primary);
}

.upload-card p em {
  color: #d32f2f;
  font-style: normal;
}

.upload-card input[type="file"] {
  min-height: auto;
  padding: 4px;
  font-size: 0.78rem;
  border: none;
  background: transparent;
}

/* ===== SUMMARY BOX ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.summary-item {
  background: var(--dash-soft);
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid var(--dash-secondary);
}

.summary-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b8299;
  margin-bottom: 6px;
}

.summary-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dash-primary);
}

.status-pending {
  color: #e6a700 !important;
}

/* ===== DECLARATION ===== */
.declaration-list {
  margin: 0;
  padding-left: 20px;
  color: #1f405f;
  display: grid;
  gap: 10px;
  line-height: 1.6;
  font-size: 0.93rem;
}

.agree-checkbox {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dash-primary);
  font-weight: 600;
  cursor: pointer;
}

.agree-checkbox input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  padding: 0;
  cursor: pointer;
  accent-color: var(--dash-secondary);
}

.agree-checkbox em {
  color: #d32f2f;
  font-style: normal;
}

/* ===== CAPTCHA ===== */
.dash-captcha-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.captcha-question-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dash-soft);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 118, 214, 0.15);
}

.captcha-question {
  font-weight: 700;
  color: var(--dash-secondary);
  font-size: 1.05rem;
}

.captcha-refresh {
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.captcha-refresh:hover {
  transform: rotate(180deg);
}

.dash-captcha-row .captcha-input {
  max-width: 160px;
}

/* ===== STEP ACTION BUTTONS ===== */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 10px;
}

.step-btn {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.step-btn.next-btn {
  background: linear-gradient(135deg, var(--dash-secondary), #005eb3);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 118, 214, 0.25);
}

.step-btn.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 118, 214, 0.35);
}

.step-btn.prev-btn {
  background: #eef2f7;
  color: var(--dash-primary);
  border: 1px solid var(--dash-border);
}

.step-btn.prev-btn:hover {
  background: #dde5ef;
}

.step-btn.submit-btn {
  background: linear-gradient(135deg, var(--dash-success), #1e7e37);
  color: white;
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
  padding: 0 36px;
  font-size: 1.05rem;
}

.step-btn.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .dash-form-grid {
    grid-template-columns: 1fr;
  }

  .dash-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .student-dashboard-page {
    padding: 30px 0 60px;
  }

  .dash-welcome-header {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    align-items: flex-start;
  }

  .dash-welcome-left {
    flex-direction: column;
    gap: 12px;
  }

  .dash-student-name {
    font-size: 1.2rem;
  }

  .step-progress-bar {
    padding: 16px;
  }

  .step-label {
    font-size: 0.72rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .panel-header,
  .panel-sub-section {
    padding: 18px;
  }

  .dash-edu-table {
    min-width: 100%;
  }

  .dash-edu-table thead { display: none; }

  .dash-edu-table,
  .dash-edu-table tbody,
  .dash-edu-table tr,
  .dash-edu-table td {
    display: block;
    width: 100%;
  }

  .dash-edu-table tr {
    border-bottom: 1px solid rgba(13, 94, 166, 0.15);
    padding: 10px;
  }

  .dash-edu-table td {
    border: none;
    padding: 5px 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    align-items: center;
  }

  .dash-edu-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a466f;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-captcha-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-captcha-row .captcha-input {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .dash-upload-grid {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column;
    gap: 12px;
  }

  .step-btn {
    width: 100%;
  }

  .step-line {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
