/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* =========================================================
   Apple macOS Task Modal
   ========================================================= */

.mac-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.mac-modal-backdrop.hidden,
.mac-modal-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.mac-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  animation: macModalIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes macModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mac-modal-header {
  padding: 22px 24px 18px 24px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 248, 250, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mac-modal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #86868b;
  margin-bottom: 5px;
}

.mac-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.3;
}

.mac-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.mac-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
}

.mac-modal-body {
  padding: 24px 24px 26px 24px !important;
}

.mac-form-group {
  margin-bottom: 18px !important;
}

.mac-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px !important;
}

.mac-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6e6e73;
  margin-bottom: 7px !important;
}

.mac-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px !important;
  font-size: 13px;
  font-family: inherit;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: 10px !important;
  color: #1d1d1f;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.mac-input:focus {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
}

.mac-modal-footer {
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mac-btn-secondary {
  padding: 8px 16px !important;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #515154;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mac-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #1d1d1f;
}

.mac-btn-primary {
  padding: 8px 20px !important;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: #0071e3;
  border: 1px solid #0071e3;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 113, 227, 0.3);
  transition: all 0.15s ease;
}

.mac-btn-primary:hover {
  background: #0077ed;
}

.mac-btn-primary:active {
  background: #0062c4;
}

/* =========================================================
   Sidebar & App Layout (Responsive)
   ========================================================= */

@media (min-width: 768px) {
  .app-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 240px !important;
    height: 100vh !important;
    background: #ebebed !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .app-main {
    margin-left: 240px !important;
    width: calc(100% - 240px) !important;
    min-height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  .mobile-header,
  .mobile-bottom-nav,
  .app-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .app-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #ebebed !important;
    border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
    z-index: 200 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .app-sidebar.app-sidebar--open {
    transform: translateX(0) !important;
  }

  .app-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 190 !important;
    display: block !important;
  }

  .app-sidebar-backdrop.hidden {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    padding-bottom: 74px !important;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 600;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
  }

  .mobile-nav-tab--active {
    color: #2F6FED;
    font-weight: 700;
  }

  .mobile-nav-tab svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
   Flashcard 3D Flip & Performance Styles
   ========================================================= */

.perspective-1000 {
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

.flashcard-surface {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  border-radius: 24px !important;
}

/* =========================================================
   Week Board — Accordion Day Layout
   ========================================================= */

.board-container {
  display: flex;
  background: #ffffff;
  border: 1px solid #EAEBEF;
  border-radius: 20px;
  overflow: hidden;
  height: calc(100vh - 195px);
  min-height: 480px;
}

.board-day {
  background: transparent;
  border-right: 1px solid #EAEBEF;
  flex: 0 0 132px;
  min-width: 132px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition:
    flex-basis 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    flex-grow  0.6s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.board-day:last-child {
  border-right: none;
}

.board-day:hover:not(.board-day--active) {
  background: #FAFBFC;
}

.board-day--active {
  flex: 1 1 340px;
  min-width: 250px;
  background: #fff;
  cursor: default;
}

.board-day-head {
  padding: 15px 16px 12px;
  border-bottom: 1px solid #EAEBEF;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
  position: relative;
}

.board-day-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #12141A;
}

.board-day--today .board-day-name {
  color: #2F6FED;
}

.board-day--active .board-day-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #2F6FED;
  z-index: 1;
}

.board-day-date {
  font-size: 11.5px;
  color: #9AA0AA;
  font-weight: 600;
  white-space: nowrap;
}

.board-day-collapsed {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 1;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.board-day--active .board-day-collapsed {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  top: 50px;
}

.board-mini-task {
  border: 1px solid #EAEBEF;
  border-radius: 9px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

.board-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.board-mini-dot--uni    { background: #1E7D4B; }
.board-mini-dot--yds    { background: #2F6FED; }
.board-mini-dot--course { background: #B45309; }

.board-mini-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #12141A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-mini-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: #9AA0AA;
  text-align: center;
  padding: 8px;
}

.board-day-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 16px;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease 0.2s;
}

.board-task-card {
  border: 1px solid #EAEBEF;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: #FCFCFD;
  margin-bottom: 10px;
}

.board-task-card:last-child {
  margin-bottom: 0;
}

.board-task-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.board-task-tag--uni    { background: #E3F5EA; color: #1E7D4B; }
.board-task-tag--yds    { background: #EAF1FE; color: #2F6FED; }
.board-task-tag--course { background: #FEF3E2; color: #B45309; }

.board-task-title {
  font-size: 14px;
  font-weight: 700;
  color: #12141A;
  margin: 0 0 6px;
  line-height: 1.3;
}

.board-task-title--done {
  text-decoration: line-through;
  color: #9AA0AA;
}

.board-task-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9AA0AA;
  margin-bottom: 10px;
}

.board-task-subtasks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #EAEBEF;
}

.board-subtask-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #12141A;
}

.board-empty-day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9AA0AA;
  font-size: 13px;
}

/* Mobile Day Selector Tabs */
.mobile-day-tab {
  color: #6B7078;
  background: transparent;
}

.mobile-day-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-day-tab--active {
  background: #2F6FED !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(47, 111, 237, 0.35);
}

.mobile-day-tab--active span {
  color: #ffffff !important;
}

/* Mobile adjustments for Week Board: Show ONLY active day! */
@media (max-width: 767px) {
  .board-container {
    flex-direction: column;
    height: auto;
    min-height: 0;
    border-radius: 18px;
    background: transparent;
    border: none;
  }

  /* Completely hide all inactive days on mobile! */
  .board-day:not(.board-day--active) {
    display: none !important;
  }

  /* Only active day is visible, rendered as a beautiful standalone card */
  .board-day--active {
    display: flex !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    background: #ffffff !important;
    border: 1px solid #EAEBEF !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }

  .board-day-head {
    padding: 16px 18px 14px;
  }

  .board-day--active .board-day-collapsed {
    display: none !important;
  }

  .board-day-body {
    padding: 14px 16px 20px;
    max-height: none;
    overflow-y: visible;
  }
}

/* Task toggle (check) button & its form wrapper */
/* Task toggle (check) button & its form wrapper */
.board-task-toggle-form {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.board-task-toggle-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.board-task-toggle-btn:hover {
  border-color: #2F6FED;
  background: #EAF1FE;
}

.board-task-toggle-btn--done {
  background: #2F6FED;
  border-color: #2F6FED;
}

/* Delete button form wrapper */
.board-task-delete-form {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* Subtask toggle button */
.board-subtask-toggle-form {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.board-subtask-toggle-btn {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  border: 1.5px solid #CBD5E1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.board-subtask-toggle-btn:hover {
  border-color: #2F6FED;
  background: #EAF1FE;
}

.board-subtask-toggle-btn--done {
  background: #2F6FED;
  border-color: #2F6FED;
}

/* Subtask delete button form wrapper */
.board-subtask-delete-form {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.board-subtask-delete-btn {
  opacity: 0;
  pointer-events: none;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB;
  border-radius: 4px;
  border: none;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.board-subtask-row:hover .board-subtask-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.board-subtask-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* =========================================================
   Apple macOS Turbo Confirm Dialog
   ========================================================= */

.mac-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  user-select: none;
  -webkit-user-select: none;
}

.mac-confirm-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-confirm-backdrop--active {
  opacity: 1;
}

.mac-confirm-container {
  position: relative;
  width: 100%;
  max-width: 375px;
  z-index: 1;
  margin: auto;
}

.mac-confirm-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.26), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 26px 22px 20px 22px;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-confirm-card--active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.mac-confirm-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mac-confirm-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

.mac-confirm-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.mac-confirm-icon-box--danger {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #DC2626;
  box-shadow: 0 0 0 5px rgba(254, 242, 242, 0.7);
}

.mac-confirm-icon-box--warning {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  color: #D97706;
  box-shadow: 0 0 0 5px rgba(255, 251, 235, 0.7);
}

.mac-confirm-icon-box--primary {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #0071E3;
  box-shadow: 0 0 0 5px rgba(239, 246, 255, 0.7);
}

.mac-confirm-body {
  margin-bottom: 22px;
}

.mac-confirm-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 6px 0;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.mac-confirm-message {
  font-size: 13.5px;
  color: #6e6e73;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.mac-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.mac-confirm-btn {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
}

.mac-confirm-btn-secondary {
  color: #424245;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.04);
}

.mac-confirm-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #1d1d1f;
}

.mac-confirm-btn-secondary:active {
  background: rgba(0, 0, 0, 0.13);
}

.mac-confirm-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.mac-confirm-btn--danger {
  color: #ffffff;
  background: #ff3b30;
  border-color: #ff3b30;
  box-shadow: 0 2px 5px rgba(255, 59, 48, 0.28);
}

.mac-confirm-btn--danger:hover {
  background: #e0342b;
  border-color: #e0342b;
}

.mac-confirm-btn--danger:active {
  background: #c92e26;
  border-color: #c92e26;
}

.mac-confirm-btn--danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.35);
}

.mac-confirm-btn--warning {
  color: #ffffff;
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.28);
}

.mac-confirm-btn--warning:hover {
  background: #d97706;
  border-color: #d97706;
}

.mac-confirm-btn--warning:active {
  background: #b45309;
  border-color: #b45309;
}

.mac-confirm-btn--warning:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.mac-confirm-btn--primary {
  color: #ffffff;
  background: #0071e3;
  border-color: #0071e3;
  box-shadow: 0 2px 5px rgba(0, 113, 227, 0.28);
}

.mac-confirm-btn--primary:hover {
  background: #0077ed;
  border-color: #0077ed;
}

.mac-confirm-btn--primary:active {
  background: #0062c4;
  border-color: #0062c4;
}

.mac-confirm-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35);
}

/* =========================================================
   Apple macOS Dark Mode Global Theme
   ========================================================= */

.dark .app-sidebar {
  background: #18181b !important;
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-container {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-day {
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-day:hover:not(.board-day--active) {
  background: rgba(255, 255, 255, 0.03) !important;
}

.dark .board-day--active {
  background: #1e1e24 !important;
}

.dark .board-day-head {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-day-name {
  color: #f5f5f7 !important;
}

.dark .board-mini-task {
  background: #232329 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-mini-title {
  color: #f5f5f7 !important;
}

.dark .board-task-card {
  background: #232329 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-task-title {
  color: #f5f5f7 !important;
}

.dark .board-task-subtasks {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .board-subtask-row {
  color: #f5f5f7 !important;
}

.dark .board-subtask-toggle-btn {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: #1c1c20 !important;
}

.dark .board-subtask-toggle-btn:hover {
  border-color: #2F6FED !important;
  background: rgba(47, 111, 237, 0.25) !important;
}

.dark .board-subtask-toggle-btn--done {
  background: #2F6FED !important;
  border-color: #2F6FED !important;
}

.dark .board-subtask-delete-btn {
  color: #8E8E93 !important;
}

.dark .board-subtask-delete-btn:hover {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.2) !important;
}

.dark .flashcard-surface {
  background-color: #1e1e24 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

.dark .mobile-header {
  background: rgba(20, 20, 24, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mobile-bottom-nav {
  background: rgba(24, 24, 28, 0.94) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mobile-nav-tab {
  color: #8e8e93 !important;
}

.dark .mac-modal-dialog {
  background: rgba(28, 28, 32, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  color: #f5f5f7 !important;
}

.dark .mac-modal-header {
  background: rgba(24, 24, 28, 0.9) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mac-modal-title {
  color: #f5f5f7 !important;
}

.dark .mac-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #a1a1a6 !important;
}

.dark .mac-modal-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.dark .mac-input {
  background: #16161a !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f5f5f7 !important;
}

.dark .mac-input:focus {
  border-color: #2F6FED !important;
}

.dark .mac-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mac-btn-secondary {
  color: #d1d1d6 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mac-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.dark .mac-confirm-card {
  background: rgba(28, 28, 32, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.dark .mac-confirm-title {
  color: #f5f5f7 !important;
}

.dark .mac-confirm-message {
  color: #a1a1a6 !important;
}

.dark .mac-confirm-close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #a1a1a6 !important;
}

.dark .mac-confirm-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.dark .mac-confirm-btn-secondary {
  color: #d1d1d6 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .mac-confirm-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.dark .mac-confirm-icon-box--danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.1) !important;
}

.dark .mac-confirm-icon-box--warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.1) !important;
}

.dark .mac-confirm-icon-box--primary {
  background: rgba(47, 111, 237, 0.15) !important;
  border-color: rgba(47, 111, 237, 0.3) !important;
  color: #60a5fa !important;
  box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.1) !important;
}

/* Common cards & text overrides for dark mode */
.dark .bg-white {
  background-color: #1e1e24 !important;
}

.dark .bg-white\/50,
.dark .bg-white\/70,
.dark .bg-white\/75,
.dark .bg-white\/80,
.dark .bg-white\/90,
.dark .bg-white\/95 {
  background-color: rgba(30, 30, 36, 0.85) !important;
}

.dark .border-black\/\[0\.08\],
.dark .border-black\/\[0\.07\],
.dark .border-black\/\[0\.06\],
.dark .border-black\/\[0\.05\],
.dark .border-black\/\[0\.04\],
.dark .border-black\/10,
.dark .border-black\/15,
.dark .border-neutral-200,
.dark .border-neutral-300 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .text-neutral-900 {
  color: #f5f5f7 !important;
}

.dark .text-neutral-800 {
  color: #e5e5ea !important;
}

.dark .text-neutral-700 {
  color: #d1d1d6 !important;
}

.dark .text-neutral-600 {
  color: #a1a1a6 !important;
}

.dark .text-neutral-500 {
  color: #8e8e93 !important;
}

.dark .bg-neutral-50,
.dark .bg-neutral-50\/50,
.dark .bg-neutral-50\/80,
.dark .bg-neutral-50\/90 {
  background-color: #16161a !important;
}

.dark .bg-neutral-100 {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .bg-neutral-200,
.dark .bg-neutral-200\/60,
.dark .bg-neutral-200\/70,
.dark .bg-neutral-200\/80 {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.dark .bg-black\/\[0\.02\],
.dark .bg-black\/\[0\.03\],
.dark .bg-black\/\[0\.04\],
.dark .bg-black\/\[0\.05\],
.dark .bg-black\/\[0\.06\],
.dark .bg-black\/\[0\.08\] {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Universal input, select, textarea styling in dark mode */
.dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.dark select,
.dark textarea {
  color: #f5f5f7 !important;
  background-color: #16161a !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.dark select option {
  background-color: #1e1e24 !important;
  color: #f5f5f7 !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #8e8e93 !important;
}

/* Main task toggle buttons in dark mode */
.dark .board-task-toggle-btn {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: #1c1c20 !important;
}

.dark .board-task-toggle-btn:hover {
  border-color: #2F6FED !important;
  background: rgba(47, 111, 237, 0.25) !important;
}

.dark .board-task-toggle-btn--done {
  background: #2F6FED !important;
  border-color: #2F6FED !important;
}

/* Labels, meta, and empty states in dark mode */
.dark .mac-label {
  color: #a1a1a6 !important;
}

.dark .board-empty-day,
.dark .board-mini-empty {
  color: #8e8e93 !important;
}

.dark .board-day-date {
  color: #8e8e93 !important;
}

.dark .board-task-meta {
  color: #8e8e93 !important;
}

.dark .mobile-day-tab {
  color: #8e8e93 !important;
}

.dark .mobile-day-tab:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.dark .mobile-nav-tab--active {
  color: #2F6FED !important;
}


