/* Kid Activity Calendar — supplements the shared /style.css tokens. */

/* This page doesn't load the Bootstrap theme, so define the one utility class
   its markup relies on to hide the modals (both overlays start hidden). */
.d-none { display: none !important; }

.act-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 0 6px; flex-wrap: wrap; }

.act-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.act-monthnav { display: flex; align-items: center; gap: 8px; }
.act-month-label { font-weight: 600; font-size: 15px; min-width: 130px; text-align: center; }
.act-navbtn { border: 1px solid var(--border); background: #fff; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; line-height: 1; }
.act-navbtn:hover { border-color: var(--primary); color: var(--primary); }
.act-todaybtn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.act-todaybtn:hover { border-color: var(--primary); color: var(--primary); }
.act-addbtn { border: none; background: var(--primary); color: #fff; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.act-addbtn:hover { opacity: .9; }

.cal-daylabels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 4px; }
.cal-daylabels span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; min-height: 92px; box-shadow: 0 2px 6px -2px rgba(55,56,78,0.06); }
.cal-cell.other-month { opacity: .38; }
.cal-cell.is-today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(118,109,244,.16) inset; }
/* light background context for school days / holidays / sick days */
.cal-cell.day-school { background: #f0fbf6; }
.cal-cell.day-holiday { background: #fff6ea; }
.cal-cell.day-sick { background: #fdeef1; }
.cal-daymark { font-size: 9px; line-height: 1.25; margin-bottom: 3px; padding: 1px 4px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.day-school .cal-daymark { color: #0e9973; background: #dcf5ea; }
.day-holiday .cal-daymark { color: #b98a00; background: #ffedcf; }
.day-sick .cal-daymark { color: #c2405f; background: #fbdae2; }

.act-markbtn { border: none; color: #fff; border-radius: 20px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.act-markbtn:hover { opacity: .9; }

/* weekday picker in the school/holiday modal */
.mf-weekdays { display: flex; gap: 5px; flex-wrap: wrap; }
.mf-wd { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.mf-wd.on { background: #16c995; border-color: #16c995; color: #fff; }
.cal-daynum { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.cal-cell.is-today .cal-daynum { color: var(--primary); font-weight: 700; }

.cal-pill { display: block; width: 100%; text-align: left; border: none; border-radius: 6px; padding: 2px 5px; margin-bottom: 3px; font-size: 10.5px; line-height: 1.35; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; font-family: inherit; }
.cal-pill.pill-tracker { background: #e8590c !important; cursor: default; }
.cal-pill.pill-moved-to { outline: 2px solid #ffb15c; outline-offset: -2px; }
.cal-pill.pill-moved-from { background: #eceef7 !important; color: var(--muted); text-decoration: line-through; }
.cal-pill.pill-cancelled { background: #f3f3f3 !important; color: #b3261e; text-decoration: line-through; }

@media (max-width: 640px) {
  .cal-cell { min-height: 58px; padding: 3px; }
  .cal-pill { font-size: 9px; padding: 1px 4px; }
  .act-month-label { min-width: 110px; font-size: 13px; }
}

/* My Classes list */
.act-class-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; box-shadow: 0 2px 8px -3px rgba(55,56,78,0.08); }
.act-class-main { display: flex; align-items: center; gap: 10px; }
.act-class-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.act-class-name { font-weight: 600; font-size: 13.5px; }
.act-class-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.act-class-price { font-size: 12.5px; font-weight: 600; color: var(--primary); }
.act-edit-btn { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: 11.5px; cursor: pointer; }
.act-edit-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Modals */
.act-overlay { position: fixed; inset: 0; background: rgba(11,15,25,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.act-box { background: #fff; border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.25); max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px 24px; position: relative; }
.act-box-sm { max-width: 380px; }
.act-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; color: #9397ad; cursor: pointer; }
.act-field { margin-bottom: 12px; }
.act-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.act-field input, .act-field select { width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13.5px; background: #fff; color: var(--text, #2b2f3e); }
.act-field input:focus, .act-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(118,109,244,.12); }
.act-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act-perclass { font-size: 12px; color: var(--primary); background: #f1effe; border-radius: 8px; padding: 6px 10px; margin: -4px 0 12px; }
.act-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.act-btn-primary { border: none; background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.act-btn-primary:hover { opacity: .9; }
.act-btn-secondary { border: 1px solid var(--border); background: #fff; color: var(--text, #2b2f3e); border-radius: 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.act-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.act-btn-danger { border: 1px solid #f8c7d2; background: #fde8ec; color: #b3261e; border-radius: 10px; padding: 9px 14px; font-size: 12.5px; cursor: pointer; }
.act-btn-danger:hover { background: #f8c7d2; }
.act-resched-orig { font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
