/* --- 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-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); }
