/* Base Styles & Variables */
:root {
  --font-family: 'Outfit', 'Inter', 'Sarabun', sans-serif;
  
  /* Color Palette (Slate/Teal Theme) */
  --bg-primary: #0b0f19;
  --bg-secondary: #161f30;
  --bg-card: rgba(22, 31, 48, 0.7);
  --bg-modal: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-active: rgba(13, 148, 136, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --accent-primary: #0d9488;      /* Teal 600 */
  --accent-hover: #14b8a6;        /* Teal 500 */
  --accent-glow: rgba(13, 148, 136, 0.15);
  
  /* Status Colors */
  --status-empty: #334155;
  --status-pending: #f59e0b;      /* Amber 500 */
  --status-pending-glow: rgba(245, 158, 11, 0.15);
  --status-completed: #10b981;    /* Emerald 500 */
  --status-completed-glow: rgba(16, 185, 129, 0.15);
  --status-red: #ef4444;          /* Red 500 */
  
  /* UI Constants */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --transition-speed: 0.25s;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for footer */
}

/* App Container & Layout */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  background: rgba(13, 148, 136, 0.15);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.logo-text .sub-text {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges & Buttons */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-info {
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.btn {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-speed) ease;
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-main);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #334155;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-danger {
  background-color: var(--status-red);
  color: var(--text-main);
}

.btn-danger:hover {
  background-color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* Section Cards */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-speed) ease;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  background: var(--accent-primary);
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Step 1: Shifts Grid */
.grid-shifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shift-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-speed) ease;
}

.shift-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.shift-card.active {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.card-icon {
  font-size: 32px;
}

.card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-family);
}

/* Step 2: Wards Grid */
.grid-wards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.ward-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-family: var(--font-family);
  color: var(--text-main);
}

.ward-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.ward-card.active {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Step 3: Beds Grid & Header */
.beds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.dot-empty { background-color: var(--status-empty); }
.dot-pending { background-color: var(--status-pending); }
.dot-completed { background-color: var(--status-completed); }

.grid-beds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}

.bed-cell {
  background: var(--status-empty);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: visible;
}

.bed-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bed-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.bed-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Bed Status Styling */
.bed-cell.pending {
  background: var(--status-pending-glow);
  border-color: var(--status-pending);
}
.bed-cell.pending .bed-num {
  color: var(--status-pending);
}
.bed-cell.pending::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-pending);
  box-shadow: 0 0 6px var(--status-pending);
}

.bed-cell.completed {
  background: var(--status-completed-glow);
  border-color: var(--status-completed);
}
.bed-cell.completed .bed-num {
  color: var(--status-completed);
}
.bed-cell.completed::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-completed);
  box-shadow: 0 0 6px var(--status-completed);
}

/* Modals & Backdrop */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Drawer bottom sheet style for mobile */
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: calc(24px + var(--safe-bottom));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-header .highlight {
  color: var(--accent-hover);
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-main);
}

/* Form Controls & Styling */
.form-group {
  margin-bottom: 22px;
}

.group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  transition: border-color var(--transition-speed) ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

.inline-time {
  max-width: 150px;
  margin-top: 8px;
}

/* Custom Checkbox & Radio layouts */
.task-checkbox-wrapper {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  transition: all var(--transition-speed) ease;
}

.task-checkbox-wrapper:focus-within,
.task-checkbox-wrapper:hover {
  border-color: var(--border-color-active);
  background: rgba(13, 148, 136, 0.02);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

.custom-checkbox input:checked + .checkbox-box {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.custom-checkbox input:checked + .checkbox-box::after {
  content: '✓';
  position: absolute;
  color: var(--text-main);
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Sub-options for inputs */
.sub-options,
.sub-grid-options,
.sub-text-options {
  margin-top: 12px;
  padding-left: 32px;
  animation: fadeIn 0.2s ease-out;
}

.sub-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.custom-radio input {
  display: none;
}

.radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

.custom-radio input:checked + .radio-circle {
  border-color: var(--accent-primary);
}

.custom-radio input:checked + .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Lab Chips layout */
.sub-grid-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip-checkbox {
  cursor: pointer;
  text-align: center;
}

.chip-checkbox input {
  display: none;
}

.chip-checkbox span {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  color: var(--text-muted);
}

.chip-checkbox input:checked + span {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Radio Chip Groups (Notify & Time) */
.chip-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip-radio {
  cursor: pointer;
}

.chip-radio input {
  display: none;
}

.chip-radio span {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  color: var(--text-muted);
}

.chip-radio input:checked + span {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Modal Actions Layout */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

.right-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Summary Section Details */
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.summary-actions {
  display: flex;
  gap: 8px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: rgba(255,255,255,0.01);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
}

/* Summary Cards */
.summary-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color var(--transition-speed) ease;
}

.summary-card.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.02);
}

.summary-card.done .summary-card-header h4 {
  text-decoration: line-through;
  color: var(--text-muted);
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-hover);
}

.summary-card-header h4 .bed-badge {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-right: 4px;
}

.card-status-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform var(--transition-speed) ease;
}

.card-status-btn:hover {
  transform: scale(1.1);
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-indicator-badge.pending {
  background: var(--status-pending-glow);
  color: var(--status-pending);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator-badge.completed {
  background: var(--status-completed-glow);
  color: var(--status-completed);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.summary-card-body {
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
  padding-left: 4px;
}

.summary-item-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.item-label {
  color: var(--text-muted);
  font-weight: 500;
  width: 90px;
  flex-shrink: 0;
}

.item-val {
  color: var(--text-main);
  font-weight: 500;
}

.badge-lab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
  display: inline-block;
}

.summary-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 8px;
}

.card-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.card-action-btn.delete:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

/* App Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 40px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Triage Selector */
.triage-selector {
  display: flex;
  gap: 10px;
  width: 100%;
}

.triage-btn {
  flex: 1;
  cursor: pointer;
}

.triage-btn input {
  display: none;
}

.triage-badge {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.triage-btn:hover .triage-badge {
  background: rgba(255, 255, 255, 0.05);
}

.triage-green input:checked + .triage-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--status-completed);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.triage-yellow input:checked + .triage-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--status-pending);
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.triage-red input:checked + .triage-badge {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--status-red);
  color: #f87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Bed Triage Color Borders */
.bed-cell.triage-border-green {
  border-color: var(--status-completed) !important;
}
.bed-cell.triage-border-yellow {
  border-color: var(--status-pending) !important;
}
.bed-cell.triage-border-red {
  border-color: var(--status-red) !important;
  animation: pulse-border-red 2s infinite;
}

@keyframes pulse-border-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Dynamic Notification Rows */
.notification-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  animation: fadeIn 0.2s ease-out;
}

.notification-row select.form-control,
.notification-row input.form-control {
  flex: 1;
  padding: 8px;
  font-size: 13px;
}

.notification-row input.notify-custom-time {
  max-width: 100px;
  flex: 0 0 100px;
}

.btn-remove-notification {
  background: none;
  border: none;
  color: var(--status-red);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
}

.btn-remove-notification:hover {
  transform: scale(1.2);
  color: #f87171;
}

/* Layout Utilities for CT and Clinical */
.dual-inputs {
  display: flex;
  gap: 8px;
}
.input-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-label-sm {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-success {
  background-color: var(--status-completed);
  color: var(--text-main);
}

.btn-success:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 12px var(--status-completed-glow);
  transform: translateY(-1px);
}

.task-row-completed span {
  opacity: 0.55;
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-done-toggle-btn {
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.task-done-toggle-btn:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Media Queries (Responsive Styling) */
@media (min-width: 600px) {
  .modal-overlay {
    align-items: center; /* Center modal on tablet/desktop */
  }
  
  .modal-content {
    border-radius: var(--border-radius-lg);
    max-height: 85vh;
  }
  
  .grid-wards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .chip-radio-group {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .sub-grid-options {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Custom Checkbox for selecting which tasks to notify */
.notify-select-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  margin-top: 3px;
  background-color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notify-select-checkbox:hover {
  border-color: var(--accent-hover);
}

.notify-select-checkbox:checked {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.notify-select-checkbox:checked::after {
  content: "✔";
  font-size: 10px;
  color: #0b0f19;
  font-weight: 800;
}

/* Red circular badge in the top-right corner of the bed cell */
.bed-task-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--status-red);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
