/* === Evolve Digital - Modern Monday.com Timestamp, AJAX Media & RichText Styles === */

/* --- 1. Monday.com-Style Timestamp Selector --- */
.monday-timestamp-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.monday-timestamp-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bs-body-bg, #fff);
    border: 1px solid var(--ed-border, #d1d5db);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease-in-out;
    font-size: 0.85rem;
    color: var(--ed-text, #1f2937);
    min-height: 38px;
}

.monday-timestamp-trigger:hover {
    border-color: var(--bs-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.monday-timestamp-trigger.active {
    border-color: var(--bs-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.monday-timestamp-trigger .monday-date-val {
    font-weight: 600;
    color: var(--ed-text, #111827);
    display: flex;
    align-items: center;
    gap: 6px;
}

.monday-timestamp-trigger .monday-time-val {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    color: var(--bs-primary, #3b82f6);
    background-color: var(--bs-primary-bg-subtle, rgba(59, 130, 246, 0.1));
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.82rem;
    border: 1px solid var(--bs-primary-border-subtle, rgba(59, 130, 246, 0.2));
}

.monday-timestamp-trigger .monday-sep {
    color: var(--ed-text-muted, #9ca3af);
    opacity: 0.6;
}

/* Monday Popover Modal / Dropdown */
.monday-picker-popover {
    position: fixed;
    z-index: 99999;
    width: 340px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    box-sizing: border-box;
    background-color: var(--ed-card-bg, #ffffff);
    border: 1px solid var(--ed-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 5px 12px rgba(0, 0, 0, 0.12);
    padding: 14px;
    display: none;
    animation: mondayPopoverFadeIn 0.16s ease-out forwards;
}

[data-bs-theme="dark"] .monday-picker-popover {
    background-color: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), 0 6px 14px rgba(0, 0, 0, 0.4);
}

@keyframes mondayPopoverFadeIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.monday-picker-popover.show {
    display: block;
}

/* Calendar Header */
.monday-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.monday-cal-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ed-text, #111827);
}

.monday-cal-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--ed-border, #e5e7eb);
    border-radius: 6px;
    color: var(--ed-text, #374151);
    cursor: pointer;
    transition: all 0.15s ease;
}

.monday-cal-btn:hover {
    background-color: var(--bs-primary-bg-subtle, rgba(59, 130, 246, 0.1));
    color: var(--bs-primary, #3b82f6);
    border-color: var(--bs-primary, #3b82f6);
}

/* Quick Date Presets */
.monday-quick-presets {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.monday-preset-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: var(--ed-bg, #f3f4f6);
    border: 1px solid var(--ed-border, #e5e7eb);
    color: var(--ed-text-muted, #4b5563);
    cursor: pointer;
    transition: all 0.15s ease;
}

.monday-preset-pill:hover, .monday-preset-pill.active {
    background-color: var(--bs-primary, #3b82f6);
    color: #fff;
    border-color: var(--bs-primary, #3b82f6);
}

/* Calendar Grid */
.monday-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    margin-bottom: 12px;
}

.monday-day-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ed-text-muted, #9ca3af);
    padding: 4px 0;
}

.monday-day-cell {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ed-text, #1f2937);
    transition: all 0.12s ease;
}

.monday-day-cell:hover:not(.disabled) {
    background-color: var(--bs-primary-bg-subtle, rgba(59, 130, 246, 0.15));
    color: var(--bs-primary, #3b82f6);
}

.monday-day-cell.other-month {
    color: var(--ed-text-muted, #9ca3af);
    opacity: 0.35;
}

.monday-day-cell.today {
    border: 1px solid var(--bs-primary, #3b82f6);
    font-weight: 700;
}

.monday-day-cell.selected {
    background-color: var(--bs-primary, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Time Picker Section (Granular Down to Seconds) */
.monday-time-section {
    padding-top: 10px;
    border-top: 1px solid var(--ed-border, #e5e7eb);
}

.monday-time-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ed-text-muted, #6b7280);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.monday-time-steppers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--ed-bg, #f9fafb);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--ed-border, #e5e7eb);
}

[data-bs-theme="dark"] .monday-time-steppers {
    background-color: #242424;
    border-color: #383838;
}

.monday-stepper-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.monday-stepper-col .stepper-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ed-text-muted, #9ca3af);
    margin-top: 2px;
}

.monday-stepper-btn {
    width: 100%;
    height: 20px;
    background: transparent;
    border: none;
    color: var(--ed-text-muted, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.12s ease;
}

.monday-stepper-btn:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--bs-primary, #3b82f6);
}

.monday-stepper-input {
    width: 100%;
    height: 32px;
    text-align: center;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ed-text, #111827);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
}

.monday-stepper-input:focus {
    background-color: var(--bs-body-bg, #fff);
    border-color: var(--bs-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.monday-stepper-sep {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ed-text-muted, #9ca3af);
    margin-top: -12px;
}

/* Quick Time Buttons */
.monday-time-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.monday-time-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--ed-border, #d1d5db);
    color: var(--ed-text, #4b5563);
    cursor: pointer;
    transition: all 0.12s ease;
}

.monday-time-chip:hover {
    border-color: var(--bs-primary, #3b82f6);
    color: var(--bs-primary, #3b82f6);
    background-color: var(--bs-primary-bg-subtle, rgba(59, 130, 246, 0.1));
}

/* Popover Footer */
.monday-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ed-border, #e5e7eb);
}

.monday-live-val {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--ed-text-muted, #6b7280);
    font-weight: 600;
}


/* --- 2. AJAX Media Upload & Pre-Submit Preview --- */
.ed-ajax-media-uploader {
    width: 100%;
}

.ed-media-dropzone {
    border: 1.5px dashed var(--ed-border, #d1d5db);
    background-color: var(--ed-bg, #f9fafb);
    border-radius: 8px;
    padding: 6px 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.ed-media-dropzone:hover, .ed-media-dropzone.drag-over {
    border-color: var(--bs-primary, #3b82f6);
    background-color: var(--bs-primary-bg-subtle, rgba(59, 130, 246, 0.08));
}

[data-bs-theme="dark"] .ed-media-dropzone {
    background-color: #1d1d1d;
    border-color: #383838;
}

.ed-media-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.ed-media-preview-container:empty {
    display: none;
    margin: 0;
}

.ed-media-tile {
    position: relative;
    border: 1px solid var(--ed-border, #e5e7eb);
    border-radius: 8px;
    background-color: var(--ed-card-bg, #fff);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-bs-theme="dark"] .ed-media-tile {
    background-color: #242424;
    border-color: #3a3a3a;
}

.ed-media-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.ed-media-tile-preview {
    height: 80px;
    background-color: var(--ed-bg, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ed-media-tile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-media-tile-meta {
    padding: 6px 8px;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ed-media-tile-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ed-text, #111827);
}

.ed-media-tile-size {
    font-family: monospace;
    color: var(--ed-text-muted, #9ca3af);
    font-size: 0.65rem;
}

.ed-media-tile-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    z-index: 2;
}

.ed-media-tile-remove:hover {
    background-color: #ef4444;
}

.ed-media-tile-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background-color: rgba(16, 185, 129, 0.9);
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


/* --- 3. Clean Rich Text Editor (Bold, Italics, Headings, Lists) --- */
.ed-richtext-wrapper {
    border: 1px solid var(--ed-border, #d1d5db);
    border-radius: 8px;
    background-color: var(--bs-body-bg, #fff);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ed-richtext-wrapper:focus-within {
    border-color: var(--bs-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ed-richtext-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 5px 8px;
    background-color: var(--ed-bg, #f9fafb);
    border-bottom: 1px solid var(--ed-border, #e5e7eb);
}

[data-bs-theme="dark"] .ed-richtext-toolbar {
    background-color: #222222;
    border-color: #333333;
}

.ed-rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ed-text, #374151);
    cursor: pointer;
    transition: all 0.12s ease;
}

.ed-rt-btn:hover {
    background-color: rgba(59, 130, 246, 0.12);
    color: var(--bs-primary, #3b82f6);
}

.ed-rt-btn.active {
    background-color: var(--bs-primary, #3b82f6);
    color: #fff;
}

.ed-rt-sep {
    width: 1px;
    height: 18px;
    background-color: var(--ed-border, #d1d5db);
    margin: 0 3px;
}

.ed-rt-draft-status {
    margin-left: auto;
    font-size: 0.72rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.ed-richtext-editor {
    min-height: 95px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ed-text, #111827);
    outline: none;
}

.ed-richtext-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--ed-text-muted, #9ca3af);
    pointer-events: none;
    display: block;
}

.ed-richtext-editor h1, .ed-richtext-editor h2, .ed-richtext-editor h3 {
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 700;
}
.ed-richtext-editor h1 { font-size: 1.25rem; }
.ed-richtext-editor h2 { font-size: 1.1rem; }
.ed-richtext-editor h3 { font-size: 0.98rem; }

.ed-richtext-editor p {
    margin-bottom: 6px;
}

.ed-richtext-editor ul, .ed-richtext-editor ol {
    margin-bottom: 6px;
    padding-left: 20px;
}

.ed-richtext-editor blockquote {
    border-left: 3px solid var(--bs-primary, #3b82f6);
    padding-left: 10px;
    margin: 6px 0;
    color: var(--ed-text-muted, #6b7280);
    font-style: italic;
}

/* Pasted & Uploaded Images inside Rich Text and Log History Feeds */
.ed-pasted-img,
.ed-richtext-editor img,
.ed-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, transform 0.15s ease;
    cursor: zoom-in;
}

[data-bs-theme="dark"] .ed-pasted-img,
[data-bs-theme="dark"] .ed-richtext-editor img,
[data-bs-theme="dark"] .ed-rich-content img {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ed-rich-content p {
    margin-bottom: 0.35rem;
}
.ed-rich-content p:last-child {
    margin-bottom: 0;
}
.ed-rich-content ul,
.ed-rich-content ol {
    margin-bottom: 0.35rem;
    padding-left: 1.25rem;
}
.ed-rich-content blockquote {
    border-left: 3px solid rgba(120, 130, 140, 0.4);
    padding-left: 8px;
    margin: 4px 0;
    color: inherit;
    opacity: 0.85;
}
.ed-rich-content pre,
.ed-rich-content code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(120, 130, 140, 0.12);
    border-radius: 4px;
}
.ed-rich-content code {
    padding: 0.1em 0.3em;
}
.ed-rich-content pre {
    padding: 0.5em;
    overflow-x: auto;
}

.ed-pasted-img.uploading {
    opacity: 0.55;
    filter: grayscale(60%);
    outline: 2px dashed #0d6efd;
    outline-offset: 3px;
    cursor: wait;
    animation: edPulseUpload 1.5s infinite ease-in-out;
}

@keyframes edPulseUpload {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

.ed-richtext-editor.drag-over {
    background-color: rgba(13, 110, 253, 0.05) !important;
    outline: 2px dashed #0d6efd !important;
    outline-offset: -2px;
}

/* =========================================================================
   MONDAY.COM TIMER COMPONENT (timer1.png & timer2.png)
   ========================================================================= */

.monday-timer-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.monday-timer-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background-color: var(--bs-body-bg, #ffffff);
    border: 1px solid var(--ed-border, #d1d5db);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease-in-out;
    min-height: 40px;
    width: 100%;
}

.monday-timer-trigger:hover,
.monday-timer-trigger.active {
    border-color: #0073ea;
    box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.15);
}

.monday-timer-play-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    background-color: #0073ea;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 0;
}

.monday-timer-play-btn:hover {
    background-color: #0060c2;
    transform: scale(1.05);
}

.monday-timer-play-btn.ticking {
    background-color: #e2445c !important;
    animation: mondayTimerPulse 1.5s infinite;
}

@keyframes mondayTimerPulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 68, 92, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(226, 68, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 68, 92, 0); }
}

.monday-timer-duration {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ed-text, #323338);
    letter-spacing: 0.2px;
}

/* Timer Popover Container */
.monday-timer-popover {
    position: fixed;
    z-index: 99999;
    width: 360px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    box-sizing: border-box;
    background-color: var(--ed-card-bg, #ffffff);
    border: 1px solid var(--ed-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22), 0 5px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: none;
    animation: mondayTimerFadeIn 0.16s ease-out forwards;
}

[data-bs-theme="dark"] .monday-timer-popover {
    background-color: #1e1e1e;
    border-color: #333333;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65);
}

@keyframes mondayTimerFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.monday-timer-popover.show {
    display: block;
}

/* Pointer arrow */
.monday-timer-arrow {
    position: absolute;
    top: -7px;
    left: 22px;
    width: 12px;
    height: 12px;
    background-color: var(--ed-card-bg, #ffffff);
    border-left: 1px solid var(--ed-border, #e5e7eb);
    border-top: 1px solid var(--ed-border, #e5e7eb);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 1;
}

.monday-timer-popover.flipped .monday-timer-arrow {
    top: auto;
    bottom: -7px;
    border-left: none;
    border-top: none;
    border-right: 1px solid var(--ed-border, #e5e7eb);
    border-bottom: 1px solid var(--ed-border, #e5e7eb);
}

[data-bs-theme="dark"] .monday-timer-arrow {
    background-color: #1e1e1e;
    border-color: #333333;
}

.monday-timer-popover::-webkit-scrollbar,
.monday-picker-popover::-webkit-scrollbar {
    width: 6px;
}

.monday-timer-popover::-webkit-scrollbar-thumb,
.monday-picker-popover::-webkit-scrollbar-thumb {
    background-color: rgba(120, 120, 120, 0.25);
    border-radius: 4px;
}

@media (max-width: 480px) {
    .monday-timer-popover,
    .monday-picker-popover {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        padding: 12px !important;
    }
    .monday-cal-grid-days,
    .monday-calendar-grid {
        gap: 3px !important;
    }
    .monday-cal-day-cell,
    .monday-day-cell {
        height: 32px !important;
        font-size: 0.8rem !important;
    }
}

/* Common Header */
.monday-timer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.monday-timer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ed-text, #323338);
    margin: 0;
}

.monday-timer-link-btn {
    background: transparent;
    border: none;
    color: var(--ed-text-muted, #676879);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.monday-timer-link-btn:hover {
    color: #0073ea;
    background-color: rgba(0, 115, 234, 0.08);
}

/* View 1: Summary List */
.monday-add-session-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--ed-border, #c3c6cb);
    border-radius: 6px;
    color: var(--ed-text, #323338);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all 0.15s ease;
}

.monday-add-session-btn:hover {
    background-color: rgba(0, 115, 234, 0.08);
    border-color: #0073ea;
    color: #0073ea;
}

.monday-session-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.monday-session-item:hover {
    background-color: var(--ed-bg, #f5f6f8);
}

[data-bs-theme="dark"] .monday-session-item:hover {
    background-color: #2a2a2a;
}

.monday-session-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: #e2445c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.monday-session-date {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ed-text, #323338);
    white-space: nowrap;
}

.monday-session-time-range {
    font-size: 0.84rem;
    font-weight: 500;
    color: #0073ea;
    background-color: rgba(0, 115, 234, 0.08);
    border: 1px dashed rgba(0, 115, 234, 0.4);
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.monday-session-time-range:hover {
    background-color: rgba(0, 115, 234, 0.16);
    border-color: #0073ea;
}

.monday-session-duration {
    font-size: 0.84rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--ed-text, #323338);
    margin-left: auto;
    font-weight: 500;
    white-space: nowrap;
}

.monday-session-del-btn {
    background: transparent;
    border: none;
    color: var(--ed-text-muted, #9ca3af);
    padding: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.monday-session-del-btn:hover {
    color: #e2445c;
}

/* View 2: Update Session Calendar & Time */
.monday-cal-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.monday-cal-selects {
    display: flex;
    align-items: center;
    gap: 8px;
}

.monday-cal-select {
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-text, #323338);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    outline: none;
}

.monday-cal-select:hover,
.monday-cal-select:focus {
    background-color: var(--ed-bg, #f0f1f3);
    border-color: var(--ed-border, #d1d5db);
}

[data-bs-theme="dark"] .monday-cal-select:hover,
[data-bs-theme="dark"] .monday-cal-select:focus {
    background-color: #2a2a2a;
    border-color: #444;
}

.monday-cal-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
}

.monday-cal-arrow-btn {
    background: transparent;
    border: none;
    color: var(--ed-text, #323338);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.15s ease;
}

.monday-cal-arrow-btn:hover {
    background-color: var(--ed-bg, #f0f1f3);
}

[data-bs-theme="dark"] .monday-cal-arrow-btn:hover {
    background-color: #2a2a2a;
}

.monday-cal-grid-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ed-text-muted, #676879);
    margin-bottom: 6px;
}

.monday-cal-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 16px;
}

.monday-cal-day-cell {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ed-text, #323338);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease;
}

.monday-cal-day-cell:hover:not(.selected) {
    background-color: var(--ed-bg, #f0f1f3);
}

[data-bs-theme="dark"] .monday-cal-day-cell:hover:not(.selected) {
    background-color: #2a2a2a;
}

.monday-cal-day-cell.other-month {
    color: #b2b4b8 !important;
}

.monday-cal-day-cell.today {
    border: 2px solid #0073ea;
    font-weight: 700;
}

.monday-cal-day-cell.selected {
    background-color: #0073ea !important;
    color: #ffffff !important;
    font-weight: 700;
}

.monday-cal-day-cell.other-selected {
    border: 2px dashed #0073ea !important;
    background-color: rgba(0, 115, 234, 0.12) !important;
    color: #0073ea !important;
    font-weight: 600;
}

.monday-cal-active-indicator {
    font-size: 0.74rem;
    padding: 3px 8px;
    background-color: rgba(0, 115, 234, 0.08);
    border: 1px solid rgba(0, 115, 234, 0.15);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Start at / End at Time Boxes */
.monday-time-boxes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.monday-time-box-group {
    border: 1px solid var(--ed-border, #e5e7eb);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: var(--bs-body-bg, #ffffff);
}

.monday-time-box-group:hover {
    border-color: var(--ed-border-hover, #c3c6cb);
}

.monday-time-box-group.active {
    border-color: #0073ea !important;
    background-color: rgba(0, 115, 234, 0.04) !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

.monday-time-box-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ed-text, #323338);
}

.monday-time-box-group.active label {
    color: #0073ea !important;
}

.monday-time-date-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ed-text-muted, #676879);
    background-color: rgba(103, 104, 121, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
}

.monday-time-box-group.active .monday-time-date-badge {
    background-color: #0073ea;
    color: #ffffff;
}

.monday-time-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ed-border, #c3c6cb);
    border-radius: 6px;
    padding: 6px 10px;
    background-color: var(--bs-body-bg, #ffffff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.monday-time-input-box:focus-within {
    border-color: #0073ea;
    box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

.monday-time-input-box i {
    color: var(--ed-text-muted, #676879);
    font-size: 0.85rem;
}

.monday-time-input-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ed-text, #323338);
    outline: none;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

/* Footer row */
.monday-timer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--ed-border, #e5e7eb);
}

.monday-footer-duration {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ed-text, #323338);
    letter-spacing: 0.3px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.monday-update-session-btn {
    background-color: #0073ea;
    border: 1px solid #0073ea;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.monday-update-session-btn:hover {
    background-color: #0060c2;
    border-color: #0060c2;
}

