/* Main Container Reset */
.nsrl-dashboard-student {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* Centered Hero Header */
.nsrl-student-header-centered {
  text-align: center;
  position: relative;
  padding: 28px 16px;
  margin-bottom: 28px;
}

.nsrl-student-header-centered .nsrl-welcome-text {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.nsrl-student-header-centered .nsrl-welcome-sub {
  color: #64748b;
  font-size: 1rem;
  margin: 0 0 20px 0;
}

/* Action Button matching the Billing Statement theme */
button.nsrl-btn-create-action {
  display: inline-block;
  background-color: #64dde3;
  color: #053b3e;
  border: 1px solid #4ecfd5;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button.nsrl-btn-create-action:hover {
  background-color: #4ecfd5;
  transform: translateY(-1px);
}

/* Help Trigger Button Position */
.nsrl-student-header-centered .nsrl-help-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #64748b;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nsrl-student-header-centered .nsrl-help-btn:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Main 2-Column Grid Layout */
.nsrl-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .nsrl-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nsrl-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Base Card Styling */
.nsrl-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.nsrl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.nsrl-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Header Arrow Navigation Button Style */
.nsrl-card-header-link {
  background: none;
  border: none;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nsrl-card-header-link:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  transform: translateX(2px);
}

.nsrl-card-header-link:active {
  transform: translateX(0);
}

/* Announcements Styling */
.nsrl-announcement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nsrl-announcement-item {
  border: 1px solid #f1f5f9;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.nsrl-notice-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.nsrl-notice-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.nsrl-notice-body {
  color: #475569;
  font-size: 0.875rem;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.nsrl-notice-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Type Pills */
.type-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.type-pill.ACTIVE {
  background-color: #dcfce7;
  color: #15803d;
}

.type-pill.PENDING {
  background-color: #fef9c3;
  color: #b45309;
}

/* Billing Gauge & Indicators Layout */
.nsrl-billing-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nsrl-donut-chart-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.nsrl-donut-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 4;
}

.donut-segment-blue {
  fill: none;
  stroke: #2563eb;
  stroke-width: 4;
}

.donut-segment-cyan {
  fill: none;
  stroke: #64dde3;
  stroke-width: 4;
}

.donut-segment-purple {
  fill: none;
  stroke: #a855f7;
  stroke-width: 4;
}

.nsrl-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.nsrl-donut-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.nsrl-donut-caption {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

/* Indicator Legends */
.nsrl-billing-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.nsrl-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-blue { background-color: #2563eb; }
.legend-dot.dot-cyan { background-color: #64dde3; }
.legend-dot.dot-purple { background-color: #a855f7; }

.legend-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-value {
  color: #475569;
  font-weight: 600;
}

.legend-percent {
  color: #1e293b;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* Clean Borderless Mini Table for Reservations */
.nsrl-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.nsrl-mini-table th, 
.nsrl-mini-table td {
  padding: 12px 8px;
  text-align: left;
  border: none;
  font-size: 0.875rem;
}

.nsrl-mini-table th {
  color: #64748b;
  font-weight: 600;
}

.meta-sub {
  color: #64748b;
  font-size: 0.8rem;
}

/* Contact Custodian Modal Toggle */
.nsrl-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.nsrl-modal.is-active {
  display: flex;
}

.nsrl-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.nsrl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nsrl-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}