/* =============================================================
   Naomi Hair — Calendar & Booking System
   style.css  |  Mobile-first, max-width 480px
   ============================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Base ---- */
body {
    background-color: #5f1c98;
    color: white;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

/* ---- Layout container ---- */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* ---- Utility ---- */
.hidden {
    display: none !important;
}

.field-dimmed {
    opacity: 0.2;
    pointer-events: none;
}

/* =============================================================
   PAGE HEADER
   ============================================================= */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 8px;
}

.page-header__title {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: white;
    text-align: center;
    flex: 1;
    line-height: 1.2;
}

.page-header__spacer {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* =============================================================
   CIRCULAR ICON BUTTONS  (nav arrows, +)
   ============================================================= */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 2.5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s ease;
    color: white;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-icon:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* =============================================================
   SQUARE ACTION BUTTONS  (Save / Book)
   ============================================================= */
.btn-action {
    display: block;
    width: 100%;
    background: white;
    color: black;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
    margin-top: 24px;
}

.btn-action:hover:not(:disabled):not(.disabled) {
    opacity: 0.88;
}

.btn-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.btn-action:disabled,
.btn-action.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================================
   SMALL SQUARE ICON BUTTONS  (edit / delete rows)
   ============================================================= */
.btn-square {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 5px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.btn-square:hover {
    opacity: 0.82;
}

.btn-square:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-square svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* =============================================================
   FORM INPUTS (text / email / tel)
   ============================================================= */
.form-input {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
}

.form-input:focus-visible {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.form-input.error {
    border-color: red;
}

/* ---- Form group spacing ---- */
.form-group {
    margin-bottom: 16px;
}

.field-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
}

.field-error {
    font-size: 13px;
    color: #ff8a8a;
    margin-top: 6px;
}

/* =============================================================
   DROPDOWNS / SELECT
   ============================================================= */
.form-select {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    padding: 12px 36px 12px 12px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
}

.form-select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.form-select option {
    background: #5f1c98;
    color: white;
}

/* ---- Inline time select (no border, inside Starts/Ends rows) ---- */
.time-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0 22px 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    min-width: 60px;
}

.time-select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.time-select.error {
    border-bottom: 2px solid red;
    padding-bottom: 2px;
}

.time-select option {
    background: #5f1c98;
    color: white;
}

/* =============================================================
   CHECKBOXES  (All day? / Returning customer?)
   ============================================================= */
.form-checkbox {
    width: 32px;
    height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.form-checkbox:checked {
    background: #5f1c98;
    border-color: white;
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 9px;
    height: 15px;
    border: 3px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-checkbox:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* =============================================================
   FORM ROWS  (label + checkbox / label + dropdown)
   ============================================================= */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row__label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    flex: 1;
}

/* ---- Starts / Ends rows ---- */
.starts-ends-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.starts-ends-row__label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    width: 52px;
    flex-shrink: 0;
}

.starts-ends-row__date {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    flex: 1;
}

/* =============================================================
   BOOK FORM  (two-column label + field)
   ============================================================= */
.book-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.book-form-row__label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    min-width: 90px;
    flex-shrink: 0;
}

.book-form-row__field {
    flex: 1;
}

/* ---- Price display ---- */
.price-display {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: white;
}

/* ---- Info / no-slot message ---- */
.info-message {
    background: white;
    color: black;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}

/* =============================================================
   BOOK HEADER
   ============================================================= */
.book-header-title {
    text-align: center;
    flex: 1;
}

.book-header-title__sub {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.book-header-title__date {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 26px;
    color: white;
    line-height: 1.2;
}

/* =============================================================
   LOGIN PAGE
   ============================================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-title {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 38px;
    text-align: center;
    color: white;
    margin-bottom: 36px;
}

/* =============================================================
   LOGOUT LINK
   ============================================================= */
.logout-link {
    display: block;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    margin-top: 24px;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.logout-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.logout-link:focus-visible {
    outline: 2px solid white;
    border-radius: 2px;
}

/* =============================================================
   CALENDAR
   ============================================================= */
.calendar__month-title {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 32px;
    color: white;
    text-align: center;
}

/* ---- Weekday header row ---- */
.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.calendar__weekday {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: white;
    opacity: 0.7;
    padding: 6px 0 4px;
}

/* ---- Grid ---- */
.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* ---- Cell base ---- */
.calendar__cell {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

/* Current-month day (default) */
.calendar__cell--current-month {
    background: rgba(255, 255, 255, 0.16);
}

/* Overflow / adjacent-month day */
.calendar__cell--overflow {
    background: transparent;
}

/* ---- Date number ---- */
.calendar__cell-number {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: white;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* ---- Cell label  (Today / Book / No slot) ---- */
.calendar__cell-label {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: white;
    line-height: 1;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

/* =============================================================
   DIAGONAL STRIKETHROUGH  (past / today / no-slot on public)
   Drawn from bottom-left to top-right using a rotated pseudo-element.
   ============================================================= */
.calendar__cell--strikethrough::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    /* Diagonal of a 1:1 square = √2 × 100% ≈ 141.4% */
    width: 141.4%;
    height: 3px;
    background: #5f1c98;
    transform-origin: bottom left;
    transform: rotate(-45deg);
    z-index: 2;
    pointer-events: none;
}

/* ---- Today (public calendar) ---- */
.calendar__cell--today-public {
    background: black;
}

.calendar__cell--today-public .calendar__cell-number,
.calendar__cell--today-public .calendar__cell-label {
    color: white;
}

/* ---- Today (internal calendar) ---- */
.calendar__cell--today-internal {
    background: white;
}

.calendar__cell--today-internal .calendar__cell-number {
    color: black;
}

/* ---- Bookable (public calendar) ---- */
a.calendar__cell--bookable {
    background: white;
    cursor: pointer;
}

a.calendar__cell--bookable .calendar__cell-number {
    color: black;
}

a.calendar__cell--bookable .calendar__cell-label {
    color: black;
}

a.calendar__cell--bookable:hover {
    background: rgba(255, 255, 255, 0.88);
}

a.calendar__cell--bookable:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: -2px;
}

/* ---- Highlighted cell (nearest available / available slots) ---- */
.calendar__cell--highlighted {
    outline: 5px solid #f27200;
    outline-offset: -5px;
}

/* ---- Nearest available date button ---- */
.nearest-btn-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.btn-nearest {
    display: inline-block;
    padding: 5px 14px;
    background: white;
    color: black;
    border: none;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-nearest:hover,
.btn-nearest--active {
    background: #f27200;
    color: white;
}

.nearest-btn-wrap--row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =============================================================
   APPOINTMENT COUNT CIRCLE  (internal calendar)
   ============================================================= */
.calendar__count {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

.calendar__count--today {
    background: rgba(0, 0, 0, 0.15);
}

.calendar__count-number {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: black;
    line-height: 1;
}

/* =============================================================
   INTERNAL CALENDAR — WEEK-ROW STRUCTURE
   The internal calendar groups cells into weeks so all-day event
   bars can span across multiple columns above the day cells.
   ============================================================= */
.calendar__grid--internal {
    display: flex;
    flex-direction: column;
    gap: 2px; /* vertical gap between week rows, matches original row gap */
}

/* Internal calendar cells are one third taller than the public calendar (9/16 vs 3/4) */
.calendar__grid--internal .calendar__cell {
    aspect-ratio: 9 / 16 !important;
    align-self: start;
}

.calendar__week {
    display: flex;
    flex-direction: column;
    position: relative; /* anchor for absolute-positioned allday-row */
}

/* The 7 day cells row — same layout as the original flat grid row */
.calendar__cells-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* ---- All-day event bars ---- */
/* 7 columns aligned with .calendar__cells-row; rows auto-expand for 2 bars */
.calendar__allday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 2px;
    row-gap: 2px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none; /* let clicks pass through to the cell links */
}

.calendar__allday-bar {
    height: 14px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    overflow: hidden;
    min-width: 0;
}

.calendar__allday-title {
    font-family: Arial, sans-serif;
    font-size: 9px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    pointer-events: none;
}

/* ---- Full-cell link overlay (internal cells) ---- */
.calendar__cell-link {
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.calendar__cell-link:focus-visible {
    outline: 2px solid white;
    outline-offset: -2px;
}

/* Number always at exact center of cell */
.calendar__cell-link .calendar__cell-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Count circle always pinned to bottom of cell */
.calendar__cell-link .calendar__count {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

/* =============================================================
   APPOINTMENT LIST  (date-detail.php)
   ============================================================= */
.appointment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    gap: 12px;
    transition: opacity 0.4s ease;
}

.appointment-row.fading-out {
    opacity: 0;
    pointer-events: none;
}

.appointment-row__info {
    flex: 1;
    min-width: 0;
}

.appointment-row__time {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

.appointment-row__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-badge {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.appointment-row__title {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    word-break: break-word;
}

.appointment-row__title:hover {
    text-decoration: underline;
}

.appointment-row__title:focus-visible {
    outline: 2px solid white;
    border-radius: 2px;
}

.appointment-row__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* =============================================================
   BANNER NOTIFICATIONS
   ============================================================= */
.banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    color: black;
    padding: 16px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    border-radius: 8px 8px 0 0;
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.banner--error {
    background: #ffdddd;
    color: #a00000;
}

.banner--hidden {
    display: none;
}

.banner.fading-out {
    opacity: 0;
}

.banner__undo {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
    font-size: 15px;
    font-family: Arial, sans-serif;
    padding: 0;
    margin-left: 4px;
}

.banner__undo:focus-visible {
    outline: 2px solid black;
    border-radius: 2px;
}

/* Countdown circle */
.banner__timer-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    font-size: 11px;
    font-weight: bold;
    color: black;
    vertical-align: middle;
    margin-left: 8px;
    font-family: Arial, sans-serif;
}

/* =============================================================
   LOADING SPINNER OVERLAY
   ============================================================= */
.spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 28, 152, 0.65);
    z-index: 2000;
}

.spinner-overlay--hidden {
    display: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================================
   SUCCESS MESSAGE OVERLAY
   ============================================================= */
.success-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5f1c98;
    z-index: 3000;
    padding: 24px;
    text-align: center;
}

.success-overlay--hidden {
    display: none;
}

.success-overlay__message {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: white;
    line-height: 1.3;
    white-space: pre-line;
}

/* =============================================================
   CANCEL PAGE  (cancel.php)
   ============================================================= */
.cancel-header {
    text-align: center;
    padding-top: 56px;
    margin-bottom: 56px;
}

.cancel-header__sub {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: white;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.cancel-header__main {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 34px;
    color: white;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* =============================================================
   TOP BAR
   ============================================================= */
.top-bar {
    background: #440077;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
    aspect-ratio: 6 / 1;
    max-height: 82px;
}

.top-bar__title {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: white;
}

.top-bar__title a {
    color: white;
    text-decoration: none;
}

.top-bar__sub {
    color: #a178c3;
}

.top-bar--nav {
    justify-content: space-between;
}

.top-bar__back {
    color: white;
    font-size: 20px;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.top-bar__back:focus-visible {
    outline: 2px solid white;
    border-radius: 2px;
}

/* =============================================================
   QR CODE OVERLAY  (internal.php)
   ============================================================= */
.qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.qr-overlay--hidden {
    display: none;
}

.qr-overlay__panel {
    background: white;
    border-radius: 14px;
    padding: 48px 24px 24px;
    position: relative;
    max-width: 90vw;
}

.qr-overlay__close {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.qr-overlay__close:hover {
    color: #000;
}

.qr-overlay__image {
    display: block;
    max-width: min(320px, 80vw);
    height: auto;
}

/* =============================================================
   COPY TOAST  (internal.php)
   ============================================================= */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
}

.copy-toast--visible {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* =============================================================
   ACTIVITIES BELL  (internal.php — top bar)
   ============================================================= */
.top-bar__bell {
    position: relative;
    font-size: 24px;
}

.activities-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d31876;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

/* =============================================================
   ACTIVITIES PAGE  (activities.php)
   ============================================================= */
.activities-page__title {
    flex: 1;
    text-align: center;
    font-size: 24px;
}

.activities-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    -webkit-overflow-scrolling: touch;
}

.activities-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: white;
    white-space: nowrap;
}

.activities-table th {
    text-align: left;
    padding: 6px 12px 8px;
    opacity: 0.65;
    font-weight: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.activities-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.activities-table tbody tr:last-child td {
    border-bottom: none;
}

.activities-table__action {
    white-space: nowrap;
}

.activities-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* =============================================================
   RESPONSIVE TWEAKS
   ============================================================= */
@media (max-width: 400px) {
    .calendar__cell-number {
        font-size: 13px;
    }

    .calendar__cell-label {
        font-size: 9px;
    }

    .calendar__count {
        width: 20px;
        height: 20px;
    }

    .calendar__count-number {
        font-size: 9px;
    }

    .page-header__title,
    .calendar__month-title {
        font-size: 26px;
    }

    .calendar__allday-bar {
        height: 12px;
    }

    .calendar__allday-title {
        font-size: 8px;
    }
}
