/* ----------------------------------------------------------------------------
   Calendar Container (Main Content Area)
   ---------------------------------------------------------------------------- */
#calendar-container {
    width: 97.5%;
    max-width: 600px;
    margin: 0px auto;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ----------------------------------------------------------------------------
   Calendar Header (Month/Year Navigation)
   ---------------------------------------------------------------------------- */
#calendar-header {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    flex-shrink: 0;
}

#calendar-header button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 8px;
    border-radius: 5px;
    width: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calendar-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#currentMonthYear {
    font-size: 1.4em;
    font-weight: bold;
}

/* Header Buttons (children of #calendar-header) */
.google-calendar-import-btn {
    position: absolute;
    top: -25px;
    left: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 10;
    border: 1px solid #555 !important;
    background-color: rgba(60, 60, 60, 0.75) !important;
    transition: border-width 0.3s ease, border-color 0.3s ease;
}

.google-calendar-import-btn i {
    font-size: 1.3em;
    color: #4285f4;
}

.google-calendar-import-btn:hover i {
    color: #5a9df5;
}

/* Google Calendar Import Button - Connected State */
.google-calendar-import-btn.google-calendar-connected {
    border-width: 3px !important;
    border-color: rgba(66, 133, 244, 0.9) !important;
}

.icon-btn {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.1);
}

/* Add Event Button */
.add-event-header-btn {
    position: absolute;
    top: -25px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 10;
    border: 1px solid #555 !important;
    background-color: rgba(60, 60, 60, 0.75) !important;
    transition: border-width 0.3s ease, border-color 0.3s ease;
}

.add-event-header-btn i {
    font-size: 1.3em;
    color: #fff;
}

.add-event-header-btn:hover {
    background-color: rgba(80, 80, 80, 0.85) !important;
    transform: scale(1.1);
}

/* ----------------------------------------------------------------------------
   Calendar Grid (Main Content)
   ---------------------------------------------------------------------------- */
#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#calendar-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------------------
   Calendar Day Headers
   ---------------------------------------------------------------------------- */
.calendar-day-header {
    padding: 10px 5px;
    border-radius: 4px;
    min-height: 2vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: flex-start;
    font-weight: bold;
    color: #bbb;
    font-size: 0.9em;
}

/* ----------------------------------------------------------------------------
   Calendar Day Cells
   ---------------------------------------------------------------------------- */
.calendar-day {
    padding: 10px 5px;
    border-radius: 4px;
    min-height: 2vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-day.today {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #4caf50 !important;
    box-sizing: border-box;
}

/* Today's Date */
.calendar-day.today.has-today-event {
    background-color: rgba(220, 53, 69, 0.3) !important;
    border: 1px solid rgba(220, 53, 69, 0.6) !important;
}

.calendar-day .day-number {
    font-size: 1em;
}

/* Event Occurrence Styling */
.calendar-day.has-past-event {
    background-color: rgba(180, 180, 180, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.calendar-day.is-past-day {
    background-color: rgba(195, 195, 195, 0.1);
}

.calendar-day .day-number.past-day-text {
    color: #888;
}

.calendar-day.has-tomorrow-event {
    background-color: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.6);
}

.calendar-day.has-future-event {
    background-color: rgba(255, 193, 7, 0.25);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Google Calendar Event Styling */
.calendar-day.has-google-calendar-event {
    border-width: 3px !important;
    border-color: rgba(66, 133, 244, 0.8) !important;
}

.calendar-day.has-google-calendar-event.has-tomorrow-event {
    border-width: 3px !important;
    border-color: rgba(66, 133, 244, 0.8) !important;
}

.calendar-day.has-google-calendar-event.has-future-event {
    border-width: 3px !important;
    border-color: rgba(66, 133, 244, 0.8) !important;
}

.calendar-day.has-google-calendar-event.has-past-event {
    border-width: 3px !important;
    border-color: rgba(66, 133, 244, 0.6) !important;
}

.calendar-day.has-google-calendar-event.today {
    border-width: 3px !important;
    border-color: #0b2c0c !important; /* Green border for today takes precedence */
}

/* Event Count Indicator on Day Cell */
.day-event-count-indicator {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #e74d3ca1;
    border: 1px solid #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 4x 4px;
    font-size: 0.75em;
    font-weight: bold;
    line-height: 1.2;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------------------------
   Upcoming Events Panel (Below Calendar)
   ---------------------------------------------------------------------------- */
#upcoming-events-panel {
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    color: #eee;
}

#upcoming-events-panel.hidden {
    display: none;
}

#upcoming-events-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #ddd;
    font-size: 1.1em;
}

#upcoming-events-list {
    display: flex;
    overflow-x: auto;
    justify-content: left;

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 95%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0) 100%
    );
}

.upcoming-event-btn {
    padding: 5px 12px;
    margin: 10px 7px;
    font-size: 0.85em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    max-width: 140px;
    flex-basis: 0;
    flex-grow: 1;
    line-height: 1.3;
    border-radius: 25px;
    background-color: #c7995c3b;
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #eee; 
}

.upcoming-event-btn-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.upcoming-event-btn-datetime {
    font-size: 0.8em;
    color: #ccc;
    display: block;
}

.upcoming-event-btn.is-tomorrow,
.upcoming-event-btn.within-48-hours {
    background-color: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.6);
}

#no-upcoming-events-placeholder {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 5px 0;
    margin: auto;
}

/* Upcoming Event Items */
.upcoming-event-item {
    padding: 8px 12px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    max-width: 175px;
    flex-shrink: 0;
}

.upcoming-event-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.upcoming-event-item .event-title {
    font-weight: bold;
    color: #eee;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-event-item .event-date {
    font-size: 0.85em;
    color: #ccc;
}

.upcoming-event-item.within-48-hours {
    background-color: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.6);
}

.upcoming-event-item.within-48-hours:hover {
    background-color: rgba(220, 53, 69, 0.4);
    border: 1px solid rgba(220, 53, 69, 0.8);
}

/* Imported Google Calendar Event Panels - Thick Blue Border */
.upcoming-event-item.has-google-calendar-event {
    border: 3px solid rgba(66, 133, 244, 0.9) !important;
    border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   Reminders Section (Event Form)
   ---------------------------------------------------------------------------- */
.reminders-section {
    margin-top: 15px;
    margin-bottom: 10px;
}

.reminders-section > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

#remindersContainer .reminder-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background-color: rgba(0,0,0,0.05);
    padding: 5px;
    border-radius: 5px;
}

#remindersContainer .reminder-item input[type="datetime-local"] {
    flex-grow: 1;
    margin-right: 8px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    background-color: #fff;
    color: #333;
}

#remindersContainer .reminder-item .remove-reminder-btn {
    background: none;
    border: none;
    color: var(--danger-color, #e74c3c);
    cursor: pointer;
    font-size: 1.3em;
    padding: 5px;
    line-height: 1;
}

#remindersContainer .reminder-item .remove-reminder-btn:hover {
    color: var(--danger-hover-color, #c0392b);
}

#addReminderBtn {
    margin-top: 5px;
    padding: 8px 10px;
    background-color: #c7995c3b;
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 25px;
}

#addReminderBtn i {
    margin-right: 5px;
}

/* ----------------------------------------------------------------------------
   Day Action Dialog
   ---------------------------------------------------------------------------- */
#dayActionDialogTitle {
    color: #eee;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: center;
}

.day-action-events-list {
    padding: 0;
    margin: 0 0 15px 0;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.day-action-events-list a {
    display: block;
    padding: 8px 12px;
    color: #b0e0e6;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9em;
}

.day-action-events-list a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.day-action-events-list a.has-google-calendar-event {
    border: 3px solid rgba(66, 133, 244, 0.9) !important;
    border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   Google Calendar Import Modal
   Note: Generic modal styles (.modal, .modal-content) are in main.css
   ---------------------------------------------------------------------------- */
.connection-status {
    margin: 20px 0;
}

/* Accounts Container - All accounts displayed as rows */
.google-calendar-accounts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.connection-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}

.email-with-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.email-with-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4285f4;
    flex-shrink: 0;
}

.email-with-checkbox label {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: #eee;
    font-size: 1em;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-status-row button {
    flex-shrink: 0;
}

.connection-status-row .button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.account-visibility-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4285f4;
    flex-shrink: 0;
}

.account-name-label {
    margin: 0;
    flex: 1;
    color: #eee;
    font-size: 1em;
    cursor: pointer;
    user-select: none;
}

.account-name-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eee;
    font-size: 1em;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    max-width: 100%;
}

.account-name-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(66, 133, 244, 0.6);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Add Account Button */
.google-calendar-add-account-btn {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    color: #4285f4;
    transition: all 0.2s ease;
}

.google-calendar-add-account-btn:hover {
    background-color: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.5);
    transform: translateY(-1px);
}

.google-calendar-add-account-btn i {
    font-size: 14px;
}

.google-calendar-account-limit {
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 6px;
    color: #aaa;
    font-size: 0.9em;
    text-align: center;
}

.google-calendar-account-limit.hidden {
    display: none;
}

.google-calendar-edit-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.2s ease;
}

.google-calendar-edit-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.google-calendar-edit-btn.has-custom-name {
    color: #4285f4;
    border-color: rgba(66, 133, 244, 0.4);
}

.google-calendar-edit-btn.has-custom-name:hover {
    background-color: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.6);
}

.google-calendar-edit-btn i {
    font-size: 14px;
}

.google-calendar-custom-name-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eee;
    font-size: 1em;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    max-width: 100%;
}

.google-calendar-custom-name-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(66, 133, 244, 0.6);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.google-calendar-custom-name-input::placeholder {
    color: #999;
}

.google-calendar-refresh-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.2s ease;
}

.google-calendar-refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.google-calendar-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-calendar-refresh-btn i {
    font-size: 14px;
}

.google-calendar-disconnect-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ff6b6b;
    transition: all 0.2s ease;
}

.google-calendar-disconnect-btn:hover {
    background-color: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff5252;
    transform: scale(1.05);
}

.google-calendar-disconnect-btn i {
    font-size: 14px;
}

/* ----------------------------------------------------------------------------
   Single Day View Modal
   ---------------------------------------------------------------------------- */
.single-day-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: 95vw;
    max-width: 900px;
    height: 90vh;
    min-height: 800px;
    background-color: rgba(20, 20, 20, 0.98);
    z-index: 100003;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    border-radius: 25px;
    box-shadow: 1px 2px 4px rgba(45, 45, 45, 0.25);
    box-sizing: border-box;
}

.single-day-view-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.single-day-view-modal.hidden {
    display: none;
}

/* Single Day View Header */
.single-day-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(30, 30, 30, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.single-day-view-title {
    flex: 1;
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #eee;
    text-align: center;
}

.close-single-day-view-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-single-day-view-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.close-single-day-view-btn i {
    font-size: 18px;
}

/* Day View Selector Button */
.day-view-selector-container {
    position: relative;
    flex-shrink: 0;
}

.day-view-selector-container.hidden {
    display: none;
}

.day-view-selector-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-view-selector-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.day-view-selector-btn i {
    font-size: 18px;
}

.day-view-selector-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

.day-view-selector-dropdown.hidden {
    display: none;
}

.day-view-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    color: #eee;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 0.95em;
}

.day-view-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.day-view-option.active {
    background-color: rgba(66, 133, 244, 0.2);
    color: #4285f4;
    font-weight: 600;
}

/* Add Event FAB */
.create-event-single-day-btn-fab {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(66, 133, 244, 0.9);
    border: 2px solid rgba(66, 133, 244, 1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.create-event-single-day-btn-fab:hover {
    background-color: rgba(66, 133, 244, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.create-event-single-day-btn-fab i {
    font-size: 24px;
}

/* Single Day View Content */
.single-day-view-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    position: relative;
}

.single-day-view-time-track {
    position: relative;
    min-height: 2160px;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Time Track Content Row */
.single-day-view-time-track-content {
    display: flex;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0 24px 24px 24px;
    box-sizing: border-box;
}

/* Multi-day View Headers Row */
.multi-day-view-headers-row {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(30, 30, 30, 0.95);
    position: sticky;
    top: 0;
    z-index: 6;
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 0 24px 0 24px;
    box-sizing: border-box;
}

.multi-day-view-header-cell {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: #eee;
    font-size: 0.9em;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
    box-sizing: border-box;
}

.multi-day-view-header-cell:last-child {
    border-right: none;
}

.time-label-header-cell {
    flex: 0 0 80px;
    width: 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Multi-day View Columns */
.multi-day-view-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.multi-day-view-column:last-child {
    border-right: none;
}

.single-day-view-time-labels {
    width: 80px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    background-color: rgba(20, 20, 20, 0.98);
    z-index: 5;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.single-day-view-time-label {
    height: 90px;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
    color: #999;
    font-size: 0.85em;
    position: relative;
}

.single-day-view-time-label::after {
    content: '';
    position: absolute;
    left: 0;
    right: -16px;
    top: 0;
    height: 0;
    border-top: 1px dotted rgba(255, 255, 255, 0.15);
}

.single-day-view-time-label.half-hour::after {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.single-day-view-events-container {
    flex: 1;
    position: relative;
    padding-left: 16px;
    min-height: 2160px;
}

.single-day-view-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dotted rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}

.single-day-view-event-item {
    position: absolute;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(66, 133, 244, 0.8);
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 30px;
    overflow: hidden;
    z-index: 2;
}

.single-day-view-event-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.single-day-view-event-item.has-google-calendar-event {
    border-left-width: 6px;
    border-left-color: rgba(66, 133, 244, 0.9);
    background-color: rgba(66, 133, 244, 0.25);
}

.single-day-view-event-time {
    font-size: 0.85em;
    color: #4285f4;
    margin-bottom: 4px;
    font-weight: 500;
}

.single-day-view-event-title {
    font-size: 1em;
    font-weight: 600;
    color: #eee;
    margin-bottom: 4px;
    line-height: 1.3;
}

.single-day-view-event-details {
    font-size: 0.85em;
    color: #bbb;
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-day-view-event-details:empty {
    display: none;
}

.single-day-view-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.single-day-view-empty.hidden {
    display: none;
}

.single-day-view-empty p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.single-day-view-empty button {
    margin-top: 10px;
}

/* ----------------------------------------------------------------------------
   Google Calendar Import Modal
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 769px) {
    .day-view-selector-container {
        display: block;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .day-view-option[data-view="5"] {
        display: none;
    }
}

@media screen and (min-width: 1025px) {
    .day-view-option[data-view="5"] {
        display: block;
    }
}

/* ----------------------------------------------------------------------------
   View Event Modal
   ---------------------------------------------------------------------------- */
.view-event-content {
    margin: 20px 0;
}

.view-event-field {
    margin-bottom: 20px;
}

.view-event-field label {
    display: block;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.view-event-value {
    color: #eee;
    font-size: 1em;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    min-height: 20px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.view-event-value:empty {
    color: #999;
    font-style: italic;
}

.view-event-value a {
    color: #4a9eff;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-event-value a:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.view-event-value a.event-link {
    color: #4a9eff;
}

.view-event-value a.event-location-link {
    color: #4caf50;
}

.view-event-value a.event-location-link:hover {
    color: #66bb6a;
}

/* ----------------------------------------------------------------------------
   Confirm Dialog Description Text
   ---------------------------------------------------------------------------- */
.confirm-dialog p + p,
#disconnectGoogleCalendarConfirmDialog p:not(:first-child),
#saveCustomCalendarNameConfirmDialog p:not(:first-child),
#saveCustomCalendarNamePreview {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 10px;
}