/* ==========================================================================
   CodeCampus LMS v2.9.86
   Student Dashboard Quick Actions — responsive premium repair
   ========================================================================== */

/*
 * Fixes the Student Dashboard hero buttons, especially "Calendar & To-do",
 * which could wrap into two lines or become cramped at browser zoom levels.
 */

.student-welcome-actions-v200 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
  margin-top: 18px;
}

.student-welcome-actions-v200 > .btn,
.student-welcome-actions-v200 > a.btn {
  position: relative;
  isolation: isolate;
  width: auto !important;
  min-width: max-content !important;
  max-width: 100%;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  flex: 0 0 auto !important;
  padding: 0 18px !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1.15 !important;
  text-align: center;

  border-radius: 14px !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;

  transition:
    transform .18s cubic-bezier(.2,.75,.2,1),
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease !important;
}

.student-welcome-actions-v200 > .btn svg,
.student-welcome-actions-v200 > a.btn svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
}

/* Give the secondary dashboard action enough breathing room. */
.student-welcome-actions-v200 > .btn.ghost,
.student-welcome-actions-v200 > a.btn.ghost {
  min-width: 174px !important;
  border-color: rgba(105, 139, 181, .28) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
}

html[data-theme="light"] .student-welcome-actions-v200 > .btn.ghost,
html[data-theme="light"] .student-welcome-actions-v200 > a.btn.ghost {
  color: #18324f !important;
  border-color: rgba(91, 128, 173, .27) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,250,254,.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 7px 18px rgba(29, 63, 105, .045) !important;
}

@media (hover:hover) and (pointer:fine) {
  .student-welcome-actions-v200 > .btn:hover,
  .student-welcome-actions-v200 > a.btn:hover {
    transform: translateY(-2px) !important;
  }

  html[data-theme="light"] .student-welcome-actions-v200 > .btn.ghost:hover,
  html[data-theme="light"] .student-welcome-actions-v200 > a.btn.ghost:hover {
    border-color: rgba(14, 165, 233, .36) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.98),
      0 10px 24px rgba(14, 91, 151, .08) !important;
  }
}

/*
 * Medium widths / high browser zoom:
 * make both CTAs share the available space instead of squeezing the second
 * button until its label wraps.
 */
@media (max-width: 1180px) {
  .student-welcome-actions-v200 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content)) !important;
    justify-content: start;
  }

  .student-welcome-actions-v200 > .btn,
  .student-welcome-actions-v200 > a.btn {
    min-width: 0 !important;
    width: max-content !important;
  }

  .student-welcome-actions-v200 > .btn.ghost,
  .student-welcome-actions-v200 > a.btn.ghost {
    min-width: 174px !important;
  }
}

/* Tablet: two balanced, readable CTAs. */
@media (max-width: 760px) {
  .student-welcome-actions-v200 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }

  .student-welcome-actions-v200 > .btn,
  .student-welcome-actions-v200 > a.btn,
  .student-welcome-actions-v200 > .btn.ghost,
  .student-welcome-actions-v200 > a.btn.ghost {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Phones: stack; never wrap button text internally. */
@media (max-width: 520px) {
  .student-welcome-actions-v200 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .student-welcome-actions-v200 > .btn,
  .student-welcome-actions-v200 > a.btn {
    min-height: 50px !important;
    width: 100% !important;
    justify-content: center !important;
    font-size: .86rem !important;
  }
}

/*
 * At exceptionally narrow widths the label still stays on one line; reduce
 * padding/font slightly rather than breaking "Calendar & To-do".
 */
@media (max-width: 350px) {
  .student-welcome-actions-v200 > .btn,
  .student-welcome-actions-v200 > a.btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: .80rem !important;
    gap: 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-welcome-actions-v200 > .btn,
  .student-welcome-actions-v200 > a.btn {
    transition: none !important;
  }
}
