* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin:0; background:#f6f7fb; color:#222; padding-top:0; }
/* Configurable variables */
:root { --day-min-height:300px; --task-font-scale:1; --task-height:54px; --header-height:0px; --controls-offset:0px; }
header { 
  background:#3949ab; 
  color:#fff; 
  padding:0.4rem 1rem 10px 1rem; 
  display:flex; 
  flex-direction:column; 
  gap:0;
  position:fixed; 
  top:0; 
  left:0; 
  right:0; 
  z-index:600; 
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
header h1 { margin:0; font-size:1.4rem; }
.header-logo-container { position:absolute; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; }
.header-logo { height:55px; max-width:200px; object-fit:contain; }
@media (max-width: 768px) {
  /* Header - 50% smaller */
  header {
    padding: 0.2rem 0.5rem !important;
    gap: 0 !important;
    min-height:65px !important;
  }
  
  header h1 {
    font-size: 1.4rem !important;
  }
  
  /* Main title span - smaller on mobile */
  #mainTitle span {
    font-size: 1.1rem !important;
  }
  
  /* Free, Private, Easy to Use text - 10% smaller */
  header small {
    font-size: 0.675rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .header-logo-container { 
    position:static; 
    transform:none; 
    text-align:center; 
    margin-bottom:0; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
  }
  
  /* Main title row - increase gap on mobile */
  header > div:nth-child(2) {
    margin-top: 0.6rem !important;
  }
  
  .header-logo { 
    height: 60px !important; 
    max-width:120px !important; 
    border-bottom: -15px !important;
    margin-bottom: -15px !important;
  }
  
  .month-nav { 
    gap:.15rem !important;
  }
  
  .month-nav button { 
    padding:.2rem .3rem !important; 
    font-size:0.65rem !important; 
  }
  
  #taskLibraryBtn, #showTasksTableBtn { 
    margin-left:0.15rem !important; 
    padding:0.25rem 0.4rem !important; 
    font-size:0.65rem !important; 
  }
  
  .goto-date-input {
    font-size: 1.224rem !important;
  }
  
  .goto-date-input input[type="date"] {
    padding: 0.35rem 0.4rem !important;
    font-size: 1.224rem !important;
  }
}
.month-nav { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.goto-date-input { font-size:0.8rem; display:flex; align-items:center; gap:0.3rem; }
.goto-date-input input[type="date"] { padding:0.3rem 0.4rem; border:1px solid rgba(255,255,255,0.3); border-radius:4px; background:rgba(255,255,255,0.9); font-size:0.8rem; cursor:pointer; }
.goto-date-input input[type="date"]:hover { background:#fff; }
.month-nav button { background:#283593; border:none; color:#fff; padding:.4rem .6rem; cursor:pointer; border-radius:4px; }
.month-nav button:hover { background:#1e2c6e; }
.controls-toggle { display:none; background:#2196f3; color:#fff; border:none; padding:.5rem 1rem; width:100%; text-align:center; font-weight:bold; cursor:pointer; position:fixed; left:0; right:0; top:0; z-index:585; box-shadow:0 2px 4px rgba(0,0,0,.15); font-size:.85rem; }
.controls-toggle:hover { background:#176ec0; }
.controls { padding:.5rem 1rem; background:#fff; display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-start; border-bottom:1px solid #ddd; position:fixed; left:0; right:0; top:0; z-index:590; box-shadow:0 2px 4px rgba(0,0,0,.15); }
.controls.collapsed { display:none; }
@media (max-width: 768px) {
  .controls-toggle { display:block; }
  .controls { max-height: 60vh; overflow-y: auto; }
}
#taskForm { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
#taskForm label { font-family: Arial, sans-serif; font-size: 0.85rem; }
#taskForm input[type=text], #taskForm input[type=date], #taskForm input[type=number] { padding:.5rem .7rem; border:1px solid #ddd; border-radius:8px; font-size:0.9rem; transition:all 0.2s ease; box-shadow:0 1px 3px rgba(0,0,0,.08); }
#taskForm input[type=text]:focus, #taskForm input[type=date]:focus, #taskForm input[type=number]:focus { border-color:#2196f3; outline:none; box-shadow:0 0 0 3px rgba(33,150,243,.1); }
#taskDuration, #editDuration { width:4.2rem; }
#taskHours, #editHours { width:4.2rem; }
.modal-content input#editDuration { width:4.2rem; }
#taskForm button { background:#2196f3; color:#fff; border:none; padding:.5rem .9rem; border-radius:8px; cursor:pointer; font-weight:500; transition:all 0.2s ease; box-shadow:0 2px 4px rgba(33,150,243,.2); }
#taskForm button:hover { background:#176ec0; box-shadow:0 3px 6px rgba(33,150,243,.3); transform:translateY(-1px); }
#taskForm button:active { transform:translateY(0); }
/* legacy select removed for color; palette styles below */
.modes { display:flex; gap:.5rem; align-items:center; }
.modes button { background:#546e7a; color:#fff; border:none; padding:.5rem .8rem; border-radius:8px; cursor:pointer; font-family:Arial, sans-serif; font-size:0.85rem; font-weight:500; transition:all 0.2s ease; box-shadow:0 2px 4px rgba(84,110,122,.2); }
.modes button:hover { background:#37474f; box-shadow:0 3px 6px rgba(84,110,122,.3); transform:translateY(-1px); }
.modes button:active { transform:translateY(0); }
.file-upload-btn { background:#546e7a; color:#fff; border:none; padding:.5rem .8rem; border-radius:8px; cursor:pointer; display:inline-block; font-family:Arial, sans-serif; font-size:0.85rem; font-weight:500; transition:all 0.2s ease; box-shadow:0 2px 4px rgba(84,110,122,.2); }
.file-upload-btn:hover { background:#37474f; box-shadow:0 3px 6px rgba(84,110,122,.3); transform:translateY(-1px); }
/* Resource filter input */
#resourceFilter { padding:.5rem .7rem; border:1px solid #ddd; border-radius:8px; font-size:0.85rem; transition:all 0.2s ease; box-shadow:0 1px 3px rgba(0,0,0,.08); font-family:Arial, sans-serif; }
#resourceFilter:focus { border-color:#2196f3; outline:none; box-shadow:0 0 0 3px rgba(33,150,243,.1); }
.calendar-grid { position:relative; display:grid; grid-template-columns:repeat(7,1fr); gap:0; border-top:1px solid #ccc; border-left:1px solid #ccc; }
.calendar-grid.hide-weekends { grid-template-columns:repeat(5,1fr); }
.day { min-height:var(--day-min-height); background:#fff; border-right:1px solid #ccc; border-bottom:1px solid #ccc; position:relative; padding:2px; overflow:visible; }
#calendarWrapper.vertical-months { display:flex; flex-direction:column; gap:1.5rem; }
.month-block { display:flex; flex-direction:column; }
.month-block h3 { margin:.2rem 0 .4rem; font-size:1.3rem; font-weight:600; color:#3949ab; padding-left:2px; }
.month-block .calendar-grid { margin-bottom:.2rem; }

.day.drag-target { outline:2px dashed #2196f3; outline-offset:-2px; }
.day.dummy { background:#f0f0f0; cursor:default; }
.day-header { font-size:0.8rem; font-weight:normal; opacity:.7; }
.day.today { background:#e3f2fd; }
.day.holiday { background:#fff3e0; border-left:3px solid #ff9800; }
#calendarWrapper { position:relative; margin:1rem; }
.task { position:absolute; top:0; left:-2px; width:100%; height:var(--task-height); border-radius:6px; padding:4px 6px 6px; display:flex; flex-direction:column; gap:4px; cursor:grab; box-shadow:0 4px 8px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.2); overflow:hidden; border:1px solid rgba(0,0,0,.1); transform:translateZ(0); transition:transform 0.2s ease, box-shadow 0.2s ease; }
.task.dragging { opacity:.6; transform:translateY(-2px) scale(1.02); box-shadow:0 8px 16px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2); }
.task-header { display:flex; justify-content:flex-start; align-items:center; gap:6px; position:relative; padding-right:22px; }
.task-dates { font-size:calc(.8rem * var(--task-font-scale)); font-weight:600; color:rgba(255,255,255,.95); margin-left:6px; }
.task-title { font-size:calc(.9rem * var(--task-font-scale)); font-weight:700; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.45); letter-spacing:.25px; }
.task-resources { display:flex; flex-wrap:wrap; gap:2px; }
.resource-badge { background:rgba(255,255,255,.9); color:#222; padding:0 6px; font-size:calc(.70rem * var(--task-font-scale)); font-weight:700; line-height:16px; border-radius:3px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); display:inline-flex; align-items:center; text-shadow:none; }
#calendarWrapper .task-note-inline { background:rgba(255,255,255,.5); color:#222; font-size:calc(.65rem * var(--task-font-scale)); line-height:16px; padding:0 6px; border-radius:3px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); margin-left:auto; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:text; display:flex; align-items:center; }
#calendarWrapper .task-note-inline:focus { outline:2px solid #3949ab; white-space:normal; }
#calendarWrapper .task-note-inline.empty { opacity:.55; font-style:italic; }
#taskEnd { background:#f2f2f2; }
footer { text-align:center; padding:1rem; font-size:.7rem; color:#555; }
/* Multi-day span container (wrapper) */
.task-span { position:absolute; height:var(--task-height); }
/* Config sliders */
.config-group { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.slider-label { font-size:.55rem; display:flex; flex-direction:column; gap:2px; min-width:110px; }
.slider-label input[type=range] { width:140px; }
.slider-value { font-size:.55rem; opacity:.8; }
/* Start/End tags */
.task-tag { position:static; background:rgba(0,0,0,.35); color:#fff; font-size:.5rem; line-height:1; padding:2px 5px 3px; border-radius:3px; letter-spacing:.5px; text-transform:uppercase; margin-left:6px; align-self:center; display:inline-block; }
.end-duplicate .task-tag { background:rgba(0,0,0,.55); }
/* Editing overlay */
.task.editing { outline:2px dashed #ffc107; }
/* Removed dependency arrows & markers */
.task.hidden-by-filter { display:none; }
.task-dim { opacity:.25; }
/* Modal */
.modal.hidden { display:none; }
.modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; z-index:1000; overflow-y:auto; -webkit-overflow-scrolling:touch; }
/* Modals that can be called from other modals need higher z-index */
#successModal { z-index:10001; } /* Error/success messages */
#confirmModal { z-index:10001; } /* Confirmation dialogs */
#createPlannerModal { z-index:10002; } /* Called from plannerSelectionModal */
#recurringModal { z-index:10001; } /* Can be called from editModal */
#hiddenNotesModal { z-index:10002; } /* Can be called from editModal or recurringModal */
/* Library modals - ensure clickable background for close-on-outside-click */
#taskLibrary, #plannerHutLibrary { 
  background: transparent;
  align-items: flex-start;
  padding-top: 2rem;
  pointer-events: none;
}
#taskLibrary .modal-content, #plannerHutLibrary .modal-content { 
  pointer-events: auto;
}
.modal-content { background:#fff; padding:1.5rem 1.5rem; width:300px; max-width:90%; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,.3); display:flex; flex-direction:column; gap:1.2rem; box-sizing:border-box; }
#editModal .modal-content { width:320px; max-width:90%; padding:1rem 1rem; gap:0.8rem; box-sizing:border-box; }
#editModal input[type="date"] { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
#editModal input[type="time"] { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
#editModal input[type="number"] { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
#editModal label { font-size: 0.75rem; }
#recurringModal .modal-content { width:350px; max-width:90%; }
.modal-content h2 { margin:.2rem 0 .8rem; font-size:1rem; }

/* Modal title bar styling */
.modal-title-bar {
  background: #3949ab;
  color: white;
  text-align: center;
  margin: -1.5rem -1.5rem 1rem -1.5rem !important;
  padding: 0.75rem 1rem;
  border-radius: 6px 6px 0 0;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#editModal .modal-title-bar {
  margin: -1rem -1rem 0.8rem -1rem !important;
}

.modal-title-bar h2 {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
}

.modal-header-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal-header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile modal fixes */
@media (max-width: 768px) {
  .modal-content { 
    max-height: 90vh; 
    overflow-y: auto; 
    padding: 1rem;
  }
  #editModal .modal-content,
  #recurringModal .modal-content {
    max-height: 85vh;
  }
  .modal-title-bar {
    margin: -1rem -1rem 1rem -1rem !important;
  }
}

.modal-content form { display:flex; flex-direction:column; gap:1.2rem; }
.modal-content form label { font-size:.7rem; display:flex; flex-direction:column; gap:.35rem; margin:0; }
.modal-content input[type=text], .modal-content input[type=date], .modal-content input[type=number] { padding:.5rem .7rem; border:1px solid #ddd; border-radius:8px; font-size:0.9rem; transition:all 0.2s ease; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.modal-content input[type=text]:focus, .modal-content input[type=date]:focus, .modal-content input[type=number]:focus { border-color:#2196f3; outline:none; box-shadow:0 0 0 3px rgba(33,150,243,.1); }
/* Color palette */
.color-palette { display:flex !important; flex-wrap:wrap !important; gap:3px; width:175px !important; max-width:175px !important; padding:0.5rem; box-sizing:border-box; position:absolute; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,.3); border-radius:6px; z-index:1000; margin-top:0.25rem; }
.color-swatch { width:24px; height:24px; border-radius:4px; cursor:pointer; position:relative; border:2px solid transparent; box-shadow:0 1px 2px rgba(0,0,0,.25); display:block; flex-shrink:0; }
.color-swatch[aria-checked="true"] { outline:2px solid #000; border-color:#fff; }
.color-swatch:focus-visible { outline:2px solid #3949ab; }
.color-swatch .swatch-label { display:none; }
/* New simple toggle */
.color-picker-group { display:flex; flex-direction:column; gap:.3rem; width:100%; max-width:100%; position:relative; }
.color-picker-group > div:first-of-type { display:flex; align-items:center; gap:0.5rem; flex-wrap:nowrap; }
.color-toggle { background:#eee; border:1px solid #ccc; font-size:.75rem; cursor:pointer; padding:4px 8px; color:#222; border-radius:4px; }
.color-toggle:hover { background:#e0e0e0; }
.color-toggle:focus-visible { outline:2px solid #3949ab; }
.color-toggle[aria-expanded="true"] { background:#d5d5d5; }
#editColorToggle,
#recurringColorToggle { display:none !important; }
.hidden { display:none !important; }
.modal-actions { display:flex; gap:.5rem; justify-content:flex-end; margin-top:.4rem; }
.modal-actions button { background:#3949ab; color:#fff; border:none; padding:.5rem .9rem; border-radius:8px; cursor:pointer; font-size:0.9rem; font-weight:500; transition:all 0.2s ease; box-shadow:0 2px 4px rgba(57,73,171,.2); }
.modal-actions button:hover { background:#283593; box-shadow:0 3px 6px rgba(57,73,171,.3); transform:translateY(-1px); }
.modal-actions button:active { transform:translateY(0); }
/* Edit modal buttons - order: Save left, Cancel center, Template right */
#editModal .modal-actions {
  justify-content: space-between;
}
#editModal button[type="submit"] {
  order: 1;
}
#editModal #cancelEdit {
  order: 2;
}
#editModal #saveToLibraryBtn {
  order: 3;
}
/* Recurring modal buttons - order: Save left, Cancel right */
#recurringModal .modal-actions {
  justify-content: space-between;
}
#recurringModal button[type="submit"] {
  order: 1;
}
#recurringModal #cancelRecurring {
  order: 2;
}
/* Confirm modal specific styles */
.confirm-modal { width:400px; max-width:90%; }
.confirm-modal h2 { color:#3949ab; font-size:1.2rem; margin-bottom:0.5rem; }
.confirm-modal .modal-actions button { min-width:120px; font-weight:bold; }
.confirm-modal .modal-actions button:first-child:hover { background:#c62828; }
.confirm-modal .modal-actions button:last-child:hover { background:#37474f; }
/* File open modal specific styles */
.file-open-modal { width:450px; max-width:90%; }
.file-open-modal h2 { color:#3949ab; font-size:1.2rem; margin-bottom:0.5rem; }
.file-drop-zone { border:2px dashed #3949ab; border-radius:8px; padding:2rem; text-align:center; cursor:pointer; transition:all 0.3s ease; background:#f6f7fb; }
.file-drop-zone:hover { background:#e3f2fd; border-color:#1976d2; }
.file-drop-zone.drag-over { background:#bbdefb; border-color:#1565c0; border-style:solid; }
.file-drop-icon { font-size:3rem; margin-bottom:0.5rem; }
.task-delete { background:rgba(0,0,0,.25); border:none; color:#fff; font-size:.7rem; line-height:1; padding:2px 6px; border-radius:4px; cursor:pointer; }
.task-delete:hover { background:rgba(0,0,0,.45); }
.task-header .task-delete { position:absolute; top:2px; right:2px; }
.task-link-icon { background:transparent; border:none; color:#fff; font-size:.65rem; line-height:1; padding:1px 3px; border-radius:4px; cursor:default; pointer-events:none; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.task-header .task-link-icon { position:absolute; top:2px; right:26px; }

/* Tasks Table Modal */
.tasks-table-modal {
  width: 95vw;
  max-width: 1400px;
}

.tasks-table-modal .library-header {
  background: #3949ab;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
  margin: -1.5rem -1.5rem 0 -1.5rem;
}

#tasksTableContainer table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.85rem;
}
#tasksTableContainer th,
#tasksTableContainer td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
}
#tasksTableContainer th {
  background: #3949ab;
  color: #fff;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}
#tasksTableContainer tr:nth-child(even) {
  background: #f6f7fb;
}
#tasksTableContainer tr:hover {
  background: #e3f2fd;
}
#tasksTableContainer tbody tr {
  cursor: pointer;
}
.color-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.color-swatch-cell {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Checkbox styling to match header color */
input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #3949ab;
  border-radius: 4px;
}

/* Range slider styling to match header color */
input[type="range"] {
  cursor: pointer;
  accent-color: #3949ab;
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3949ab;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(57,73,171,.3);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #283593;
  box-shadow: 0 3px 6px rgba(57,73,171,.4);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3949ab;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(57,73,171,.3);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #283593;
  box-shadow: 0 3px 6px rgba(57,73,171,.4);
  transform: scale(1.1);
}

/* Task Library Modal */
#taskLibrary {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 999;
  padding-top: 2rem;
  pointer-events: none;
}

#taskLibrary .modal-content {
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: auto;
  z-index: 998;
}

/* Mobile-specific touch handling */
@media (hover: none) and (pointer: coarse) {
  .modal-backdrop {
    touch-action: auto;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Disable browser's default touch handling on tasks - let mobile-touch.js handle it */
  /* pan-x allows horizontal scrolling, pan-y allows vertical scrolling */
  .task, .task-span {
    touch-action: pan-x pan-y;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }
}

.modal-backdrop.hidden {
  display: none;
}

.task-library-modal {
  max-width: 400px !important;
  width: 400px;
  margin: 1rem;
  max-height: calc(100vh - 2rem);
}

.task-library-modal .library-header {
  background: #3949ab;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
  margin: -1rem -1rem 0 -1rem;
}

.draggable-header {
  cursor: move;
  user-select: none;
}

.task-library-modal .library-container {
  padding: 1rem;
  background: #f5f5f5;
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
  border: none;
  margin: 1rem 0 0 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  align-content: start;
  grid-auto-rows: min-content;
}

/* Remove old media queries for library grid since we're using auto-fill now */

.library-container:empty::after {
  content: 'Drop tasks here to save as templates';
  display: block;
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 2rem;
  grid-column: 1 / -1;
}

.library-task {
  background: #2196f3;
  color: white;
  padding: 0.75rem;
  margin: 0;
  border-radius: 8px;
  cursor: move;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  font-size: 0.9rem;
  position: relative;
  transition: transform 0.2s ease;
}

.library-task:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
}

/* Day Tasks Modal Styling */
.day-tasks-modal {
  max-width: 600px;
  width: 90%;
}

.day-tasks-modal h2 {
  color: #283593;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

#dayTasksContainer {
  margin: 1rem 0;
}

#dayTasksContainer::-webkit-scrollbar {
  width: 8px;
}

#dayTasksContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#dayTasksContainer::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#dayTasksContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Burger Menu Styles */
.burger-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 610;
}

.burger-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu-btn:hover span {
  background: #e3f2fd;
}

.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 90vw;
  background: white;
  z-index: 650;
  box-shadow: -4px 0 16px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.burger-menu.hidden {
  transform: translateX(100%);
}

.burger-menu:not(.hidden) {
  transform: translateX(0);
}

.burger-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.burger-menu-header {
  background: #3949ab;
  color: white;
  padding: 1rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.burger-menu-header h2 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.sign-in-icon-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.sign-in-icon-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.sign-in-icon-btn svg {
  width: 20px;
  height: 20px;
}

.sign-out-icon-btn {
  background: rgba(255,152,0,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.sign-out-icon-btn:hover {
  background: rgba(255,152,0,0.35);
  transform: scale(1.05);
}

.sign-out-icon-btn svg {
  width: 20px;
  height: 20px;
}

.profile-icon-btn {
  background: rgba(76,175,80,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.profile-icon-btn:hover {
  background: rgba(76,175,80,0.35);
  transform: scale(1.05);
}

.profile-icon-btn svg {
  width: 20px;
  height: 20px;
}

.close-burger-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-burger-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.burger-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.burger-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.burger-section:last-child {
  border-bottom: none;
}

.burger-section h3 {
  margin: 0 0 0.65rem 0;
  font-size: 0.9rem;
  color: #3949ab;
  font-weight: 600;
}

.burger-section button {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.burger-section button:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.burger-section button:active {
  transform: translateY(0);
}

.burger-section input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
}

.burger-section input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.burger-section label {
  font-size: 0.85rem;
  user-select: none;
}

.burger-section .slider-label {
  font-size: 0.85rem;
  color: #555;
}

.burger-section .slider-value {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 600;
  color: #3949ab;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .burger-menu {
    width: 100vw;
    max-width: 100vw;
  }
  
  /* Position modals at the top on mobile */
  .modal {
    align-items: flex-start !important;
    padding-top: 1rem;
  }
  
  /* Make all modals adapt to content on mobile with max height constraint */
  .modal-content,
  #taskLibrary .modal-content,
  #plannerHutLibrary .modal-content {
    max-height: 85vh !important;
    height: auto !important;
    min-height: auto !important;
    overflow-y: auto !important;
    width: calc(95vw - 10px) !important;
    max-width: calc(95vw - 10px) !important;
    margin: 5px !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  
  /* Force proper sizing on Android */
  .modal {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }
  
  .modal-content * {
    box-sizing: border-box !important;
  }
  
  /* Welcome modal - adapt to content */
  #welcomeModal .modal-content {
    max-height: 90vh !important;
    height: auto !important;
    padding: 1rem !important;
  }
  
  /* Welcome modal title - slightly bigger on mobile */
  #welcomeModal .modal-content h2 {
    font-size: 1.2rem !important;
  }
  
  /* Manage Planners modal - auto height on mobile */
  #plannerSelectionModal .modal-content {
    height: auto !important;
    padding: 1rem !important;
  }
  
  /* Manage Planners modal title - bigger on mobile */
  #plannerSelectionModal .modal-content h2 {
    font-size: 1.2rem !important;
  }
  
  /* Create Planner modal - auto height on mobile */
  #createPlannerModal .modal-content {
    height: auto !important;
    padding: 1rem !important;
  }
  
  /* Create Planner modal title - bigger on mobile */
  #createPlannerModal .modal-content h2 {
    font-size: 1.2rem !important;
  }
  
  /* Create Planner modal buttons - spread on mobile */
  #createPlannerModal .modal-actions {
    justify-content: space-between !important;
  }
  
  /* Tasks table modal - adapt to content */
  .tasks-table-modal {
    max-height: 85vh !important;
    height: auto !important;
    width: 95vw !important;
    max-width: 95vw !important;
  }
  
  /* Task library modal - adapt to content */
  .task-library-modal {
    max-height: 85vh !important;
    height: auto !important;
    width: 95vw !important;
    max-width: 95vw !important;
  }
  
  /* Adjust library container for mobile */
  .task-library-modal .library-container {
    max-height: calc(85vh - 150px) !important;
  }
  
  /* Edit/recurring modals - adapt to content on mobile */
  #editModal .modal-content,
  #recurringModal .modal-content {
    max-height: 90vh !important;
    height: auto !important;
    overflow-y: auto !important;
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 1.2rem !important;
  }
  
  /* Day tasks modal - auto height to fit content */
  #dayTasksModal .modal-content {
    height: auto !important;
    max-height: 85vh !important;
    padding: 1rem 0.75rem 0.5rem 0.75rem !important;
  }
  
  /* Ensure modals are aligned to top on mobile */
  #editModal,
  #recurringModal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 2vh !important;
    overflow-y: auto !important;
  }
  
  /* Edit/recurring modals title - bigger on mobile */
  #editModal .modal-content h2,
  #recurringModal .modal-content h2 {
    font-size: 1.3rem !important;
  }
  
  /* Edit modal buttons - rearrange on mobile: Save left, Cancel center, Template right */
  #editModal .modal-actions {
    display: flex !important;
    justify-content: space-between !important;
  }
  
  #editModal button[type="submit"] {
    order: 1 !important;
  }
  
  #editModal #cancelEdit {
    order: 2 !important;
  }
  
  #editModal #saveToLibraryBtn {
    order: 3 !important;
  }
  
  /* Position all modals at the top on mobile */
  .modal {
    align-items: flex-start !important;
    padding-top: 2vh !important;
  }
  
  /* Tasks table container scrolling */
  #tasksTableContainer {
    max-height: calc(85vh - 180px) !important;
    min-height: 150px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
  }
  
  /* Table styling for mobile - slightly smaller but readable */
  #tasksTableContainer table {
    font-size: 0.75rem !important;
  }
  
  #tasksTableContainer th,
  #tasksTableContainer td {
    padding: 0.35rem 0.3rem !important;
    font-size: 0.75rem !important;
  }
  
  #tasksTableContainer th {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.3rem !important;
  }
  
  /* All Activities modal controls - 2 per row on mobile */
  .tasks-table-modal .modal-actions {
    flex-direction: column !important;
    gap: 0.3rem !important;
    margin-top: 0.3rem !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.1rem !important;
    border-top: 1px solid #ddd;
  }
  
  .tasks-table-modal .modal-actions > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.3rem !important;
    width: 100% !important;
    align-items: center !important;
  }
  
  .tasks-table-modal .modal-actions label {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }
  
  .tasks-table-modal .modal-actions input,
  .tasks-table-modal .modal-actions select {
    width: 100% !important;
    font-size: 0.75rem !important;
    padding: 0.25rem !important;
  }
  
  .tasks-table-modal .modal-actions button {
    width: 100% !important;
    padding: 0.4rem 0.3rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }
  
  /* Compact modal content on mobile */
  .tasks-table-modal .modal-content {
    padding: 0.5rem 0.4rem 0.1rem 0.4rem !important;
  }
  
  .tasks-table-modal .library-header {
    margin: -0.5rem -0.4rem 0 -0.4rem !important;
    padding: 0.35rem 0.4rem !important;
  }
  
  .tasks-table-modal .library-header h3 {
    font-size: 0.95rem !important;
  }
  
  /* Task library modal - more compact */
  .modal-content.task-library-modal {
    padding: 0.5rem 0.4rem 0rem 0.4rem !important;
    overflow: hidden !important;
    resize: none !important; /* Disable resize handle on mobile */
  }
  
  .task-library-modal .library-header {
    margin: -0.5rem -0.4rem 0 -0.4rem !important;
    padding: 0.35rem 0.4rem !important;
  }
  
  .task-library-modal .library-header h3 {
    font-size: 0.95rem !important;
  }
  
  .task-library-modal .library-container {
    margin: 0.3rem 0 0rem 0 !important;
    padding: 0.4rem 0.4rem 0.2rem 0.4rem !important;
    margin-bottom: 0rem !important;
    max-height: 200px !important;
    border: none !important;
  }
  
  /* My Templates library container - mobile specific */
  #taskLibraryContainer {
    max-height: calc(50vh - 90px) !important;
    overflow-y: auto !important;
    padding: 0.4rem 0.4rem 0.2rem 0.4rem !important;
    margin: 0.3rem 0 0rem 0 !important;
  }
  
  /* Planner Hut library modal - more compact */
  #plannerHutLibrary .modal-content {
    padding: 0.5rem 0.4rem 0rem 0.4rem !important;
    overflow: hidden !important;
  }
  
  /* Position library modals higher on mobile - just below header */
  #taskLibrary, #plannerHutLibrary {
    padding-top: 5px !important;
    align-items: flex-start !important;
  }
  
  #plannerHutLibrary .library-header h3 {
    font-size: 0.95rem !important;
  }
  
  #plannerHutLibraryContainer {
    max-height: calc(50vh - 90px) !important;
    overflow-y: auto !important;
    padding: 0.4rem 0.4rem 0.2rem 0.4rem !important;
    margin: 0.3rem 0 0rem 0 !important;
  }
  
  /* Library tasks - revert to normal fonts, tight spacing */
  .library-task {
    margin: 0.4rem !important;
    padding: 0.6rem !important;
  }
  
  /* Modal headers - smaller fonts */
  .modal-content h2:not(.confirm-modal h2) {
    font-size: 0.9rem !important;
    margin: 0.2rem 0 0.5rem !important;
  }
  
  .modal-title-bar {
    font-size: 0.95rem !important;
    padding: 0.4rem 0.5rem !important;
    margin: -0.5rem -0.4rem 0.5rem -0.4rem !important;
  }
  
  .modal-header-btn {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  /* Confirmation modal - ultra compact (50% height reduction) */
  .modal-content.confirm-modal {
    padding: 0.25rem 0.5rem 0.2rem 0.5rem !important;
    width: 85vw !important;
    max-width: 85vw !important;
    max-height: fit-content !important;
    height: auto !important;
  }
  
  .modal-content.confirm-modal h2 {
    font-size: 1rem !important;
    margin: 0 0 0.3rem 0 !important;
  }
  
  .modal-content.confirm-modal p {
    margin: 0.2rem 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
  
  .modal-content.confirm-modal .modal-actions {
    margin-top: 0.4rem !important;
    gap: 0.3rem !important;
  }
  
  .modal-content.confirm-modal .modal-actions button {
    min-width: 70px !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Day tasks modal - reduce spacing on mobile */
  .day-tasks-modal {
    padding: 0.8rem 0.8rem 0.5rem 0.8rem !important;
  }
  
  .day-tasks-modal h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #dayTasksContainer {
    margin: 0.5rem 0 0.5rem 0 !important;
    max-height: 50vh !important;
  }
  
  .day-tasks-modal .modal-actions {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    gap: 0.5rem !important;
  }
  
  .day-tasks-modal .modal-actions button {
    flex: 1 !important;
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
  }
  
  /* File open modal - compact */
  .file-open-modal {
    padding: 0.5rem 0.5rem 0.4rem 0.5rem !important;
    width: 90vw !important;
    max-width: 90vw !important;
  }
  
  .file-open-modal h2 {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .file-open-modal p {
    margin: 0.3rem 0 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .file-drop-zone {
    padding: 1rem !important;
  }
  
  .file-drop-icon {
    font-size: 2rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .file-drop-zone p {
    font-size: 0.8rem !important;
  }
  
  .file-open-modal .modal-actions {
    margin-top: 0.5rem !important;
  }
  
  /* Recurring modal - match edit modal styling on mobile */
  #recurringModal .modal-title-bar {
    margin: -1.2rem -1.2rem 0.8rem -1.2rem !important;
  }
  
  #recurringModal form {
    gap: 0.8rem !important;
  }
  
  #recurringModal label {
    font-size: 0.75rem !important;
  }
  
  #recurringModal input[type="date"],
  #recurringModal input[type="time"],
  #recurringModal input[type="number"],
  #recurringModal input[type="text"] {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.5rem !important;
  }
  
  /* Make frequency row more compact on mobile */
  #recurringFrequencyRow {
    font-size: 0.75rem !important;
  }
  
  #recurringFrequencyRow label {
    font-size: 0.75rem !important;
    gap: 0.2rem !important;
  }
  
  #recurringModal .modal-actions {
    margin-top: 0.8rem !important;
    gap: 0.5rem !important;
  }
  
  #recurringModal .modal-actions button {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Calendar zoom for mobile - make days wider and scrollable */
  #calendarWrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .calendar-grid {
    min-width: 200vw; /* Adjusted to fit 2 days on screen */
    width: max-content;
  }
  
  .calendar-grid.hide-weekends {
    min-width: 140vw; /* Adjusted for 5-day view */
  }
  
  .day {
    min-width: 48vw; /* ~2 days fit on screen (50% each minus margins) */
    min-height: 220px; /* Slightly taller for better task visibility */
  }
  
  /* Month block styling for mobile */
  .month-block {
    margin-bottom: 1rem;
  }
  
  .month-block h3 {
    position: sticky;
    left: 0.5rem;
    z-index: 10;
    background: #f6f7fb;
    padding: 0.5rem;
    border-radius: 4px;
    width: fit-content;
  }
  
  /* Task styling adjustments for mobile */
  .task {
    font-size: 0.9rem; /* Slightly larger for better readability */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  .task-title {
    font-size: calc(0.9rem * var(--task-font-scale));
    -webkit-user-select: none;
    user-select: none;
  }
  
  .task-span {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  .task-dates {
    font-size: calc(0.8rem * var(--task-font-scale));
  }
  
  .resource-badge {
    font-size: calc(0.7rem * var(--task-font-scale));
  }
  
  /* Emoji picker mobile positioning fixes */
  .emoji-picker {
    max-height: 60vh !important;
    top: 45% !important;
    width: 90vw !important;
    max-width: 380px !important;
  }
  
  /* Ensure close buttons in modals are always visible above emoji picker */
  .modal-header button[style*="position: absolute"] {
    z-index: 2001 !important;
  }
  
  /* Adjust modal content when emoji picker is open */
  .modal-content {
    z-index: 1500;
  }
}

/* Planner Selection Styles */
.planner-item {
  display: block;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.planner-item:hover {
  background: #e3f2fd;
  border-color: #3949ab;
  transform: translateX(5px);
}

.planner-item.selected {
  background: #e3f2fd;
  border-color: #3949ab;
}

.planner-info {
  width: 100%;
}

.planner-name {
  font-weight: 600;
  font-size: 16px;
  color: #283593;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.planner-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.planner-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.planner-delete-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  white-space: nowrap;
}

.planner-delete-btn:hover {
  background: #c62828;
}

/* Cloud Planner Item Styles */
.cloud-planner-item {
  transition: background 0.2s ease;
}

.cloud-planner-item:last-child {
  border-bottom: none !important;
}

.delete-cloud-planner-btn:hover {
  background: #c62828 !important;
  transform: scale(1.05);
}

/* Mobile landscape orientation fixes */
@media screen and (max-width: 900px) and (orientation: landscape) {
  /* Force library containers to single column in landscape */
  .library-container {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure library modal content stacks vertically */
  #taskLibraryContainer,
  #plannerHutLibraryContainer {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Library modal adjustments for landscape */
  #taskLibrary .modal-content,
  #plannerHutLibrary .modal-content {
    max-height: 70vh !important;
    height: 70vh !important;
  }
  
  /* View All (tasks table) modal - taller in landscape */
  .tasks-table-modal {
    max-height: 85vh !important;
    height: 85vh !important;
  }
  
  /* Cloud Planners modal in landscape */
  #cloudPlannersModal .modal-content {
    max-height: 80vh !important;
  }
  
  /* Removed restrictive cloudPlannersList height - handled below in main mobile section */
}

/* Mobile portrait adjustments */
@media screen and (max-width: 768px) {
  /* Fix modal positioning on mobile - align to top instead of center */
  .modal {
    align-items: flex-start !important;
    padding-top: 2rem;
    overflow-y: auto;
  }
  
  /* Override all fixed widths on mobile - let modals adapt to content */
  .modal-content {
    width: auto !important;
    max-width: 95% !important;
    min-width: 90% !important;
    margin: 0 auto 2rem auto;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible;
  }
  
  /* Auth modal adjustments */
  #authModal .modal-content {
    overflow-y: visible;
    min-width: 90% !important;
  }
  
  #authModal input {
    font-size: 16px !important; /* Prevent zoom on iOS */
    box-sizing: border-box;
  }
  
  /* Cloud planners modal adjustments */
  #cloudPlannersModal .modal-content {
    overflow-y: visible;
    min-width: 90% !important;
  }
  
  #cloudPlannersList {
    max-height: 50vh !important; /* Flexible height based on viewport */
    overflow-y: auto;
  }
  
  .cloud-planner-item {
    padding: 0.75rem !important;
  }
  
  .delete-cloud-planner-btn {
    width: 100%;
    padding: 0.5rem !important;
  }
  
  #cloudPlannerNameInput {
    font-size: 16px !important; /* Prevent zoom on iOS */
    box-sizing: border-box;
  }
  
  /* Success and sign out modals - let them size to content */
  #successModal .modal-content,
  #signOutModal .modal-content {
    overflow-y: visible;
    min-width: 85% !important;
  }
  
  /* Task library and planner hut modals - these can be tall, so add scrolling */
  #taskLibrary .modal-content,
  #plannerHutLibrary .modal-content {
    max-height: none !important;
    overflow-y: visible;
  }
  
  /* View all tasks modal */
  .tasks-table-modal {
    max-height: none !important;
    overflow-y: visible;
  }
  
  /* Edit modal - ensure proper sizing */
  #editModal .modal-content {
    width: auto !important;
  }
  
  /* Recurring modal */
  #recurringModal .modal-content {
    width: auto !important;
  }
}

/* Desktop/Mobile visibility toggles */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
}




