/* SisPP — shared styles */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  align-self: flex-start;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding-bottom: 2rem;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: #f8f9fa;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}
main {
  min-height: calc(100vh - 56px);
}

.section-item {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.section-item:hover {
  background: #e9ecef;
  border-left-color: #164d9f;
}
.section-item.active {
  background: #e7f1ff;
  border-left-color: #164d9f;
  font-weight: 600;
}
.section-item.has-file {
  color: #68a6cb;
}
.badge-user-file {
  background-color: #68a6cb !important;
  color: #fff;
}
.badge-inst-file {
  background-color: #6c757d !important;
  color: #fff;
}
.upload-drop-zone {
  border: 2px dashed #adb5bd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-drop-zone.dragover {
  border-color: #164d9f;
  background: #e7f1ff;
}
.format-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
}
.section-group-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  padding: 0.5rem 1rem 0.25rem;
}

/* Collapsible card headers */
.collapse-toggle {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease-in-out;
}
.collapse-toggle:hover {
  filter: brightness(0.96);
}
.collapse-icon {
  transition: transform 0.25s ease-in-out;
}
.collapse-toggle.collapsed .collapse-icon,
.collapse-toggle[aria-expanded="false"] .collapse-icon {
  transform: rotate(-90deg);
}


/* Styling for format modal tabs */
#format-tabs .nav-link {
  color: #495057;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}
#format-tabs .nav-link:hover {
  background-color: #f1f3f5;
  color: #164d9f;
}
#format-tabs .nav-link.active {
  background-color: #e7f1ff;
  color: #164d9f;
  border-color: rgba(22, 77, 159, 0.2);
  font-weight: 600;
}
/* Live Preview Box */
#live-preview-box {
  background: #ffffff;
  transition: all 0.2s ease;
}
/* Inner shadow for preview area */
.shadow-inner {
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Button styling & transitions */
.btn {
  transition: all 0.15s ease-in-out;
}
.btn-outline-danger:hover {
  box-shadow: 0 2px 5px rgba(220, 53, 69, 0.25);
}
.btn-outline-success:hover {
  box-shadow: 0 2px 5px rgba(25, 135, 84, 0.25);
}
.btn-outline-primary:hover {
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.25);
}

/* Batch sections modal styles */
.batch-section-row {
  transition: background-color 0.15s ease-in-out;
  min-height: 38px;
}
.batch-section-row:hover {
  background-color: #f8f9fa;
}
.batch-section-row .form-check-input {
  float: none !important;
  margin: 0 !important;
}
.batch-section-row .form-check-input:checked ~ .form-check-label .section-title-text {
  color: #0d6efd;
  font-weight: 600;
}

.cursor-pointer {
  cursor: pointer;
}

#projectStatusBadge:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  transition: all 0.15s ease-in-out;
}

/* Course Regulatory Rules & DCN styles */
.format-option-card {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
  background: #ffffff;
  position: relative;
}
.format-option-card:hover:not(.locked) {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.format-option-card.selected {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.12);
}
.format-option-card.locked {
  background-color: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
  opacity: 0.65;
  cursor: not-allowed;
}
.hero-course-card {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}
.metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.curricular-bar-container {
  background: #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
}
