/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-v0xkmarp5r] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-v0xkmarp5r] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row[b-v0xkmarp5r] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-row[b-v0xkmarp5r]  a, .top-row[b-v0xkmarp5r]  .btn-link {
    white-space: nowrap;
    text-decoration: none;
}

.top-row[b-v0xkmarp5r]  a:hover, .top-row[b-v0xkmarp5r]  .btn-link:hover {
    text-decoration: underline;
}

/* Mobile header — hidden on desktop */
.mobile-header[b-v0xkmarp5r] {
    display: none;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 2.75rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

article[b-v0xkmarp5r] {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Mobile bottom tab bar — hidden on desktop */
.mobile-tab-bar[b-v0xkmarp5r] {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #d6d5d5;
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item[b-v0xkmarp5r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 4px 8px;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active[b-v0xkmarp5r] {
    color: #1b6ec2;
}

.tab-icon[b-v0xkmarp5r] {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 2px;
}

.tab-icon-svg[b-v0xkmarp5r] {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.tab-label[b-v0xkmarp5r] {
    font-weight: 500;
}

/* === Mobile breakpoint === */
@media (max-width: 768px) {
    .desktop-header[b-v0xkmarp5r] {
        display: none !important;
    }

    .mobile-header[b-v0xkmarp5r] {
        display: flex;
    }

    .mobile-tab-bar[b-v0xkmarp5r] {
        display: flex;
    }

    .main-content[b-v0xkmarp5r] {
        padding-bottom: 64px !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    article[b-v0xkmarp5r] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
/* /Pages/Schedule.razor.rz.scp.css */
/* === Wrapper: Header + All-day + Scrollable grid === */
.schedule-wrapper[b-y0ak1t3r1j] {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

/* === Row 1: Day name headers === */
.schedule-header-row[b-y0ak1t3r1j] {
    display: flex;
    flex-shrink: 0;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
    scrollbar-gutter: stable;
    overflow-y: auto;
}

.schedule-header-cell[b-y0ak1t3r1j] {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex: 1;
    min-width: 100px;
}

.schedule-time-col[b-y0ak1t3r1j] {
    flex: 0 0 60px;
    min-width: 60px;
}

/* === Today highlight === */
.today-header[b-y0ak1t3r1j] {
    color: #fff;
    background: #1b6ec2;
}

.today-column .schedule-day-body[b-y0ak1t3r1j] {
    background: rgba(27, 110, 194, 0.03);
}

/* === Row 2: All-day events === */
.schedule-allday-row[b-y0ak1t3r1j] {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
    background: rgba(66, 133, 244, 0.04);
    min-height: 28px;
    scrollbar-gutter: stable;
    overflow-y: auto;
}

.schedule-allday-label[b-y0ak1t3r1j] {
    flex: 0 0 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #6c757d;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 2px;
}

.schedule-allday-cell[b-y0ak1t3r1j] {
    flex: 1;
    min-width: 100px;
    padding: 3px 4px;
    border-right: 1px solid #e9ecef;
    overflow: hidden;
}

.schedule-allday-cell:last-child[b-y0ak1t3r1j] {
    border-right: none;
}

/* === Row 3: Scrollable time grid === */
.schedule-container[b-y0ak1t3r1j] {
    display: flex;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
}

.schedule-times[b-y0ak1t3r1j] {
    flex-shrink: 0;
    width: 60px;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
}

.schedule-time-label[b-y0ak1t3r1j] {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 0.75rem;
    color: #6c757d;
    padding-top: 2px;
    border-top: 1px solid #e9ecef;
}

.schedule-day-column[b-y0ak1t3r1j] {
    flex: 1;
    min-width: 100px;
    border-right: 1px solid #e9ecef;
}

.schedule-day-column:last-child[b-y0ak1t3r1j] {
    border-right: none;
}

.schedule-day-body[b-y0ak1t3r1j] {
    cursor: pointer;
}

.schedule-grid-line[b-y0ak1t3r1j] {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #e9ecef;
    pointer-events: none;
}

/* === Entries — positioned with left/width for overlap === */
.schedule-entry[b-y0ak1t3r1j] {
    position: absolute;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: grab;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.15s, opacity 0.15s;
    font-size: 0.8rem;
    box-sizing: border-box;
}

.schedule-entry:hover[b-y0ak1t3r1j] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.schedule-entry:active[b-y0ak1t3r1j] {
    cursor: grabbing;
    opacity: 0.7;
}

.schedule-entry-title[b-y0ak1t3r1j] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-entry-time[b-y0ak1t3r1j] {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
}

.schedule-entry-desc[b-y0ak1t3r1j] {
    font-size: 0.7rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Drag indicator === */
.drag-indicator[b-y0ak1t3r1j] {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

[b-y0ak1t3r1j] .schedule-day-body:global(.dragover) {
    background-color: rgba(33, 150, 243, 0.05);
}

/* === Google Calendar timed entries === */
.gcal-entry[b-y0ak1t3r1j] {
    cursor: default !important;
    opacity: 0.85;
}

.gcal-entry:hover[b-y0ak1t3r1j] {
    cursor: default;
    box-shadow: 0 1px 4px rgba(66, 133, 244, 0.3);
}

.gcal-entry:active[b-y0ak1t3r1j] {
    cursor: default;
    opacity: 0.85;
}

.gcal-title[b-y0ak1t3r1j] {
    color: #1a56c4;
}

.gcal-time[b-y0ak1t3r1j] {
    color: #4274c9;
}

.gcal-date-label[b-y0ak1t3r1j] {
    font-size: 0.65rem;
    color: #4285F4;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcal-location[b-y0ak1t3r1j] {
    font-size: 0.65rem;
    color: #5a6673;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcal-icon[b-y0ak1t3r1j] {
    font-size: 0.7rem;
}

/* === All-day event items (in the dedicated row) === */
.gcal-allday-item[b-y0ak1t3r1j] {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 6px;
    margin: 1px 0;
    background: #4285F4;
    border-radius: 3px;
}

.gcal-allday-item .gcal-date[b-y0ak1t3r1j] {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.gcal-allday-item .gcal-icon[b-y0ak1t3r1j] {
    font-size: 0.65rem;
}

/* === Task entries in time grid === */
.task-entry[b-y0ak1t3r1j] {
    cursor: pointer !important;
}

.task-entry:hover[b-y0ak1t3r1j] {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.task-entry:active[b-y0ak1t3r1j] {
    cursor: pointer;
    opacity: 0.85;
}

.task-checkbox[b-y0ak1t3r1j] {
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    color: #6c757d;
}

.task-checkbox:hover[b-y0ak1t3r1j] {
    color: #28a745;
}

/* === Split-screen layout === */
.split-container[b-y0ak1t3r1j] {
    display: flex;
    height: calc(100vh - 130px);
}

.task-panel[b-y0ak1t3r1j] {
    overflow-y: auto;
    border-right: 2px solid #dee2e6;
    padding: 8px;
    background: #fafbfc;
}

.task-pool-item[b-y0ak1t3r1j] {
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #fff;
    border-radius: 4px;
    cursor: grab;
    transition: box-shadow 0.15s, background-color 0.15s;
    font-size: 0.85rem;
}

.task-pool-item:hover[b-y0ak1t3r1j] {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    background: #f0f4ff;
}

.task-pool-item:active[b-y0ak1t3r1j] {
    cursor: grabbing;
    opacity: 0.7;
}

.task-pool-title[b-y0ak1t3r1j] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

.task-pool-meta[b-y0ak1t3r1j] {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
}

.split-divider[b-y0ak1t3r1j] {
    width: 6px;
    cursor: col-resize;
    background: #e9ecef;
    flex-shrink: 0;
    transition: background 0.15s;
}

.split-divider:hover[b-y0ak1t3r1j] {
    background: #ced4da;
}

.schedule-panel[b-y0ak1t3r1j] {
    flex: 1;
    overflow: auto;
}

/* === Mobile toolbar === */
.schedule-toolbar-mobile[b-y0ak1t3r1j] {
    display: none;
    margin-bottom: 0.5rem;
}

/* === Mobile responsive === */
@media (max-width: 768px) {
    .schedule-toolbar-desktop[b-y0ak1t3r1j] {
        display: none !important;
    }

    .schedule-toolbar-mobile[b-y0ak1t3r1j] {
        display: block;
    }

    /* Hide task panel on mobile */
    .task-panel[b-y0ak1t3r1j],
    .split-divider[b-y0ak1t3r1j] {
        display: none !important;
    }

    .split-container[b-y0ak1t3r1j] {
        height: calc(100vh - 110px) !important;
    }

    .schedule-wrapper[b-y0ak1t3r1j] {
        max-height: calc(100vh - 130px);
    }

    /* Wider time column entries on mobile day view */
    .schedule-day-column[b-y0ak1t3r1j] {
        min-width: 0;
    }

    .schedule-header-cell[b-y0ak1t3r1j] {
        font-size: 0.75rem;
        min-width: 0;
    }

    /* Larger touch targets for entries */
    .schedule-entry[b-y0ak1t3r1j] {
        min-height: 28px;
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .schedule-entry-title[b-y0ak1t3r1j] {
        font-size: 0.85rem;
    }

    .schedule-entry-time[b-y0ak1t3r1j] {
        font-size: 0.75rem;
    }

    /* Touch-friendly task items */
    .task-pool-item[b-y0ak1t3r1j] {
        padding: 10px 12px;
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

    .task-pool-title[b-y0ak1t3r1j] {
        font-size: 0.85rem;
    }

    /* Modal dialogs — full width on mobile */
    [b-y0ak1t3r1j] .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
}
/* /Pages/Tasks.razor.rz.scp.css */
.task-card[b-3n9pdx1bm2] {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.15s;
}

.task-card:hover[b-3n9pdx1bm2] {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.task-card-warning[b-3n9pdx1bm2] {
    background: #fff5f5;
    border-color: #f5c6cb;
}

.task-card-done[b-3n9pdx1bm2] {
    opacity: 0.6;
}

@media (max-width: 768px) {
    [b-3n9pdx1bm2] .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
}
