/* ============================================================
   Cabin Fever Digital · CPM Tool · cpm-calendar.css
   ============================================================
   Batch 3h — additive styles for the calendar/appointments page.
   ============================================================ */

/* Add / edit appointment form */
.appt-form {
    background: #232325;
    border: 1px solid rgba(184, 150, 62, 0.3);
    border-radius: 8px;
    padding: 20px 22px 14px;
    margin-bottom: 24px;
}

/* Date group */
.appt-date-group {
    margin-bottom: 28px;
}
.appt-date-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.07);
    margin-bottom: 6px;
}
.appt-date-day {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B8963E;
}
.appt-date-full {
    font-size: 12px;
    color: rgba(245, 240, 232, 0.42);
}

/* Appointment row */
.appt-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(245, 240, 232, 0.06);
    background: #232325;
    margin-bottom: 4px;
    transition: background 100ms;
}
.appt-row:hover { background: #2A2A2C; }
.appt-row.appt-status-completed { opacity: 0.65; }
.appt-row.appt-status-cancelled { opacity: 0.45; }

/* Time column */
.appt-time-col {
    flex-shrink: 0;
    width: 110px;
    padding-top: 2px;
}
.appt-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(245, 240, 232, 0.55);
    white-space: nowrap;
}

/* Body column */
.appt-body-col { flex: 1; min-width: 0; }
.appt-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.appt-title {
    font-size: 14px;
    font-weight: 500;
    color: #F5F0E8;
    word-break: break-word;
}
.appt-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(245, 240, 232, 0.52);
}
.appt-meta-item a {
    color: rgba(245, 240, 232, 0.52);
    text-decoration: none;
}
.appt-meta-item a:hover { color: #D4B055; }
.appt-notes {
    font-size: 12px;
    color: rgba(245, 240, 232, 0.48);
    margin-top: 4px;
    white-space: pre-wrap;
    font-style: italic;
}

/* Type chips */
.appt-type-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.appt-type-site      { background: rgba(80,180,120,0.14); border: 1px solid rgba(80,180,120,0.35); color: #7ecf93; }
.appt-type-meeting   { background: rgba(80,120,200,0.14); border: 1px solid rgba(80,120,200,0.35); color: #8aaee8; }
.appt-type-inspection{ background: rgba(184,150,62,0.14); border: 1px solid rgba(184,150,62,0.35); color: #D4B055; }
.appt-type-delivery  { background: rgba(160,80,180,0.14); border: 1px solid rgba(160,80,180,0.35); color: #c49ee0; }
.appt-type-other     { background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.14); color: rgba(245,240,232,0.5); }

/* Status chips (non-scheduled only) */
.appt-status-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.appt-status-completed  { background: rgba(60,140,80,0.14);  border: 1px solid rgba(60,140,80,0.35);  color: #7ecf93; }
.appt-status-cancelled  { background: rgba(194,84,80,0.12);  border: 1px solid rgba(194,84,80,0.35);  color: #E58884; }
.appt-status-rescheduled{ background: rgba(184,150,62,0.12); border: 1px solid rgba(184,150,62,0.35); color: #D4B055; }

/* Actions column */
.appt-actions-col {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 120ms;
    padding-top: 1px;
}
.appt-row:hover .appt-actions-col { opacity: 1; }
.appt-edit-btn,
.appt-delete-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    color: rgba(245, 240, 232, 0.4);
}
.appt-edit-btn:hover   { color: #D4B055; background: rgba(184,150,62,0.1); }
.appt-delete-btn:hover { color: #E58884; background: rgba(194,84,80,0.1); }

@media (max-width: 640px) {
    .appt-time-col { width: 80px; }
    .appt-actions-col { opacity: 1; }
}
