/**
 * Wisuda Theme - Modern, Responsive & Academic Color Palette
 * Tema resmi Sistem Informasi Wisuda Universitas Tadulako (Navy #0d233a & Gold #c59b27)
 */
:root {
  --wisuda-primary: #0d233a;
  --wisuda-primary-dark: #071524;
  --wisuda-primary-light: #163a61;
  --wisuda-gold: #c59b27;
  --wisuda-gold-light: #d4af37;
  --wisuda-gold-hover: #b3891e;
  --wisuda-gold-subtle: #fffbeb;
  --wisuda-gold-border: rgba(197, 155, 39, 0.4);
  --wisuda-bg: #f1f5f9;
  --wisuda-surface: #ffffff;
  --wisuda-border: #e2e8f0;
  --wisuda-text: #0f172a;
  --wisuda-text-muted: #64748b;
  --wisuda-shadow-sm: 0 2px 4px rgba(13, 35, 58, 0.05);
  --wisuda-shadow-md: 0 10px 25px -5px rgba(13, 35, 58, 0.08), 0 8px 10px -6px rgba(13, 35, 58, 0.04);
  --wisuda-shadow-lg: 0 20px 35px -10px rgba(13, 35, 58, 0.15);
  --wisuda-radius: 16px;
  --wisuda-radius-sm: 10px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--wisuda-bg);
  color: var(--wisuda-text);
  min-height: 100vh;
  padding-bottom: 35px;
  background-image: 
    radial-gradient(at 0% 0%, rgba(13, 35, 58, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(197, 155, 39, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

/* --- Top Navbar --- */
.wisuda-navbar {
  background: linear-gradient(135deg, var(--wisuda-primary) 0%, var(--wisuda-primary-dark) 100%);
  border-bottom: 3px solid var(--wisuda-gold);
  box-shadow: var(--wisuda-shadow-md);
  padding: 0.85rem 1.25rem;
}
.wisuda-navbar .brand-logo { width: 44px; height: 44px; object-fit: contain; }
.wisuda-navbar .brand-title { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.2px; line-height: 1.2; }
.wisuda-navbar .brand-subtitle { color: var(--wisuda-gold-light); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.wisuda-user-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 4px 14px 4px 6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wisuda-user-chip .user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--wisuda-gold); color: var(--wisuda-primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}

/* --- Stepper Progress Bar --- */
.wisuda-stepper-wrap {
  background: var(--wisuda-surface);
  border: 1px solid var(--wisuda-border);
  border-radius: var(--wisuda-radius);
  box-shadow: var(--wisuda-shadow-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}
.wisuda-stepper { display: flex; align-items: center; justify-content: space-between; position: relative; margin: 0; padding: 0; list-style: none; }
.wisuda-stepper::before { content: ''; position: absolute; top: 18px; left: 25px; right: 25px; height: 3px; background: var(--wisuda-border); z-index: 1; }
.wisuda-step { position: relative; z-index: 2; text-align: center; flex: 1; }
.wisuda-step .step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--wisuda-surface); border: 3px solid var(--wisuda-border);
  color: var(--wisuda-text-muted); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; transition: all 0.25s ease;
}
.wisuda-step .step-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--wisuda-text-muted); margin-top: 6px; }
.wisuda-step.active .step-circle { background: var(--wisuda-primary); border-color: var(--wisuda-gold); color: #fff; box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.25); }
.wisuda-step.active .step-label { color: var(--wisuda-primary); font-weight: 700; }
.wisuda-step.completed .step-circle { background: var(--wisuda-gold); border-color: var(--wisuda-gold); color: #fff; }
.wisuda-step.completed .step-label { color: var(--wisuda-primary); }

/* --- Cards & Containers --- */
.card-custom { max-width: 1100px; margin: 0 auto; }
.wisuda-card { background: var(--wisuda-surface); border: 1px solid var(--wisuda-border); border-radius: var(--wisuda-radius); box-shadow: var(--wisuda-shadow-md); overflow: hidden; }
.wisuda-card-header {
  background: linear-gradient(135deg, var(--wisuda-primary) 0%, var(--wisuda-primary-light) 100%);
  color: #fff; padding: 1.25rem 1.5rem; border-bottom: 2px solid var(--wisuda-gold);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.wisuda-card-header h2, .wisuda-card-header h3 { font-size: 1.25rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; line-height: 1.35; }
.wisuda-card-header .badge { white-space: normal; text-align: left; line-height: 1.35; max-width: 100%; word-break: break-word; }
.wisuda-card-body { padding: 1.75rem; }
.wisuda-section-title {
  font-size: 1rem; font-weight: 700; color: var(--wisuda-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--wisuda-gold-subtle);
  display: flex; align-items: center; gap: 8px;
}

/* --- Forms & Inputs --- */
.form-label, label { font-size: 0.82rem; font-weight: 600; color: var(--wisuda-text); margin-bottom: 0.35rem; }
.form-control, .form-select {
  border-radius: var(--wisuda-radius-sm); border: 1.5px solid var(--wisuda-border);
  padding: 0.55rem 0.85rem; font-size: 0.88rem; transition: all 0.2s ease; background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--wisuda-gold); box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2); outline: none; }
.form-control[readonly], .form-control:disabled,
.form-select[readonly], .form-select:disabled { background-color: #f8fafc; border-color: #e2e8f0; color: #475569; cursor: not-allowed; }
.form-control.is-invalid { border-color: #ef4444; background-image: none; }
.invalid-feedback-custom { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; display: block; }

/* --- Buttons --- */
.btn-wisuda-primary {
  background: linear-gradient(135deg, var(--wisuda-primary) 0%, var(--wisuda-primary-light) 100%);
  border: 1px solid var(--wisuda-primary); color: #fff; font-weight: 600;
  border-radius: 50px; padding: 0.6rem 1.75rem; box-shadow: var(--wisuda-shadow-sm); transition: all 0.25s ease;
}
.btn-wisuda-primary:hover {
  background: linear-gradient(135deg, var(--wisuda-primary-dark) 0%, var(--wisuda-primary) 100%);
  color: #fff; transform: translateY(-1px); box-shadow: var(--wisuda-shadow-md);
}
.btn-wisuda-gold {
  background: linear-gradient(135deg, var(--wisuda-gold) 0%, var(--wisuda-gold-hover) 100%);
  border: 1px solid var(--wisuda-gold); color: #fff; font-weight: 600;
  border-radius: 50px; padding: 0.6rem 1.75rem; box-shadow: var(--wisuda-shadow-sm); transition: all 0.25s ease;
}
.btn-wisuda-gold:hover { background: linear-gradient(135deg, var(--wisuda-gold-hover) 0%, #997416 100%); color: #fff; transform: translateY(-1px); }

/* --- Bottom Floating Nav (Dinonaktifkan) --- */
.bottom-nav { display: none !important; }

/* --- Kotak Judul Skripsi (Mendukung format HTML) --- */
.thesis-title-box {
  min-height: 70px;
  max-height: 140px;
  background-color: #f8fafc;
  border: 1.5px solid var(--wisuda-border);
  border-radius: var(--wisuda-radius-sm);
  padding: 0.65rem 0.85rem;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--wisuda-text);
  line-height: 1.5;
  word-break: break-word;
}
.thesis-title-box p { margin-bottom: 0.25rem; }
.thesis-title-box p:last-child { margin-bottom: 0; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .wisuda-card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.65rem;
  }
  .wisuda-card-header h2, .wisuda-card-header h3 {
    font-size: 1.1rem;
    width: 100%;
    flex-wrap: wrap;
  }
  .wisuda-card-header .badge {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }
}

@media (max-width: 576px) {
  .wisuda-stepper-wrap { padding: 0.75rem 0.5rem; }
  .wisuda-step .step-circle { width: 30px; height: 30px; font-size: 0.75rem; border-width: 2px; }
  .wisuda-stepper::before { top: 15px; }
  .wisuda-step .step-label { font-size: 0.68rem; line-height: 1.2; }
  .wisuda-card-body { padding: 1.25rem 1rem; }
  .wisuda-card-header { padding: 0.85rem 1rem; }
  .wisuda-card-header h2, .wisuda-card-header h3 { font-size: 1rem; }
  .wisuda-card-header .badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
}
