/* --- Calendar Edit Sheet (Bottom Modal) --- */
.sheet-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sheet-container {
    background-color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 92%; /* Taller based on screenshot */
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sheet-container.height-short {
    height: 56%; /* Optimized for single-purpose controls */
}

.sheet-overlay.active .sheet-container {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 0.5px solid #e4e6eb;
    background-color: #fff;
    flex-shrink: 0;
}

.sheet-btn { font-size: 16px; cursor: pointer; }
.sheet-btn.cancel { color: #1f2329; }
.sheet-btn.save { color: #3370ff; font-weight: 600; }
.sheet-title { font-size: 17px; font-weight: 600; color: #1f2329; }

.sheet-body {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #fff;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.sheet-section {
    padding: 0 16px;
}

/* Group Divider */
.group-divider {
    height: 12px;
    background-color: #f5f6f7;
    border-top: 0.5px solid #eef0f4;
    border-bottom: 0.5px solid #eef0f4;
    flex-shrink: 0;
}

/* Title Input */
.title-row { padding: 20px 16px 20px; }
.sheet-input-title {
    width: 100%;
    border: none;
    font-size: 24px;
    font-weight: 600;
    color: #1f2329;
    outline: none;
    background: transparent;
}
.sheet-input-title::placeholder { color: #bbbfc4; }

/* Attendee Row */
.attendee-row {
    display: flex; align-items: center; padding: 16px 0;
    border-bottom: 0.5px solid #f2f3f5;
}
.avatar-circle {
    width: 28px; height: 28px; border-radius: 50%;
    color: #fff; font-size: 10px; font-weight: 600;
    display: flex; justify-content: center; align-items: center;
}
.add-btn-circle {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid #bbbfc4; color: #646a73;
    font-size: 18px; line-height: 1;
    display: flex; justify-content: center; align-items: center;
    box-sizing: border-box;
}

/* Time Row Edit */
.time-row-edit {
    display: flex; align-items: flex-start; padding: 16px 0;
    border-bottom: 0.5px solid #f2f3f5;
}
.time-left-icon { width: 24px; margin-right: 12px; display: flex; justify-content: center; margin-top: 2px; }
.time-display-area {
    flex-grow: 1; display: flex; align-items: center; justify-content: space-between;
}
.time-block { display: flex; flex-direction: column; gap: 2px; }
.time-big { font-size: 18px; font-weight: 600; color: #1f2329; }
.date-small { font-size: 12px; color: #1f2329; }
.zone-small { font-size: 11px; color: #8f959e; margin-top: 2px; }
.time-arrow-big { color: #bbbfc4; font-size: 24px; font-weight: 300; margin: 0 16px; }

/* Option Rows */
.option-row {
    display: flex; align-items: center; padding: 16px 0;
    border-bottom: 0.5px solid #f2f3f5;
    min-height: 24px;
}
.option-row:last-child { border-bottom: none; }

.indent-row { padding-left: 36px; border-bottom: none; padding-top: 12px; padding-bottom: 12px;}

.option-icon {
    width: 24px; margin-right: 12px;
    display: flex; justify-content: center; align-items: center;
}
.option-content {
    flex-grow: 1; display: flex; align-items: center;
    font-size: 16px; color: #1f2329;
}
.option-label { font-size: 16px; color: #1f2329; }
.option-sublabel { font-size: 12px; color: #8f959e; }

.option-right-text { font-size: 14px; color: #8f959e; margin-right: 8px; }
.option-arrow { color: #bbbfc4; font-size: 20px; margin-left: 4px; }
.close-icon { color: #bbbfc4; font-size: 18px; margin-left: 12px; }

/* Toggle Switch */
.toggle-switch {
    width: 44px; height: 24px; background-color: #e4e6eb;
    border-radius: 12px; position: relative;
    cursor: pointer; transition: background-color 0.2s;
}
.toggle-switch.active { background-color: #3370ff; }
.toggle-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px; background-color: #fff;
    border-radius: 50%; transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-switch.active::after { transform: translateX(20px); }

/* --- Prep Console Panel --- */
.prep-panel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.prep-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}
.prep-panel-container {
    background-color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 70%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.prep-panel-overlay.active .prep-panel-container {
    transform: translateY(0);
}
.prep-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 0.5px solid #e4e6eb;
    background-color: #fff;
    flex-shrink: 0;
}
.prep-panel-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2329;
}
.prep-panel-back {
    font-size: 16px;
    color: #3370ff;
    cursor: pointer;
    font-weight: 500;
}
.prep-panel-close {
    font-size: 14px;
    color: #8f959e;
    cursor: pointer;
}
.prep-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 16px 30px;
}
.prep-panel-body.prep-mode-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- List Style --- */
.prep-list-header {
    font-size: 12px;
    font-weight: 600;
    color: #8f959e;
    text-transform: uppercase;
    padding: 16px 0 8px;
    letter-spacing: 0.5px;
}
.prep-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 0.5px solid #f2f3f5;
    min-height: 48px;
}
.prep-row:last-child {
    border-bottom: none;
}
.prep-row-clickable {
    cursor: pointer;
}
.prep-row-clickable:active {
    background-color: #f5f6f7;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}
.prep-row-name {
    font-size: 14px;
    color: #1f2329;
    font-weight: 500;
}
.prep-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.prep-row-val {
    font-size: 14px;
    color: #8f959e;
}
.prep-row-arrow {
    color: #c0c4cc;
    font-size: 18px;
}

/* --- Switch Style --- */
.prep-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.p-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}
.p-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e4e6eb;
    border-radius: 24px;
    transition: 0.2s;
}
.p-switch-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.p-switch-input:checked + .p-switch-slider {
    background-color: #3370ff;
}
.p-switch-input:checked + .p-switch-slider::before {
    transform: translateX(20px);
}

/* --- Detail Number --- */
.prep-detail-content {
    text-align: center;
    padding: 20px 0;
}
.prep-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2329;
    margin-bottom: 8px;
}
.prep-detail-subtitle {
    font-size: 14px;
    color: #8f959e;
    margin-bottom: 32px;
}
.prep-slider-container {
    padding: 0 8px;
    margin-bottom: 12px;
}
.prep-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e4e6eb;
    outline: none;
}
.prep-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #3370ff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.prep-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8f959e;
    padding: 0 8px;
}
.prep-slider-val {
    font-size: 24px;
    font-weight: 700;
    color: #3370ff;
}

/* --- Detail Enum --- */
.prep-enum-list {
    margin-top: 24px;
}
.prep-enum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 0.5px solid #f2f3f5;
    cursor: pointer;
    font-size: 16px;
    color: #1f2329;
}
.prep-enum-item:active {
    background-color: #f5f6f7;
}
.prep-enum-item.active {
    color: #3370ff;
    font-weight: 600;
}
.prep-enum-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #c0c4cc;
    display: inline-block;
    flex-shrink: 0;
    transition: 0.2s;
}
.prep-enum-circle.active {
    border-color: #3370ff;
    background-color: #3370ff;
    box-shadow: inset 0 0 0 4px white;
}

/* --- Save Button --- */
.prep-save-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background-color: #3370ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.prep-save-btn:active {
    background-color: #2860e0;
}
