/**
 * Finance Calendar - Unified Styles
 * Single source of truth for all calendar styling
 * Supports both Full and Basic modes via .calendar-mode-basic / .calendar-mode-full classes
 * 
 * Usage:
 *   - Both modes share core styles
 *   - Full mode features hidden with .calendar-mode-basic
 *   - Basic mode features hidden with .calendar-mode-full
 */

/* ========================================
   CALENDAR TITLE
   ======================================== */
.calendar-title {
    text-align: center;
    margin-bottom: 12px;
    padding-top: 16px;
}

.calendar-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #74b9ff;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ========================================
   CALENDAR CONTAINER
   ======================================== */
.finance-calendar-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(0, 206, 201, 0.08));
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

/* ========================================
   CALENDAR HEADER
   ======================================== */
.calendar-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.calendar-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 32px;
}

.calendar-header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.calendar-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   LIQUID CASH DISPLAY
   ======================================== */
.calendar-liquid-cash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.liquid-cash-amount {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    flex-shrink: 0;
}

.liquid-cash-label {
    font-size: clamp(0.5rem, 1.2vw, 0.7rem);
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.liquid-cash-value {
    font-size: clamp(0.6rem, 1.5vw, 0.85rem);
    font-weight: 600;
    color: #00b894;
    white-space: nowrap;
}

.liquid-cash-value.negative {
    color: #e74c3c;
}

/* Account Logos */
.header-account-logo {
    height: clamp(10px, 2vw, 16px);
    border-radius: 3px;
    object-fit: contain;
}

.header-account-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Credit Cards Row */
.credit-cards-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: wrap;
}

/* Credit section container */
.credit-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.credit-card-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 4px;
    padding: 3px 6px;
}

.credit-card-item .header-account-logo {
    height: clamp(8px, 1.5vw, 12px);
}

.credit-card-item .credit-balance {
    font-size: clamp(0.55rem, 1.3vw, 0.8rem);
    font-weight: 600;
    color: #e74c3c;
    white-space: nowrap;
}

.credit-card-item .credit-card-name {
    font-size: clamp(0.5rem, 1.2vw, 0.7rem);
    color: #8892b0;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   ECC & UPDATED INFO
   ======================================== */
.calendar-updated {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.6rem;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.calendar-updated i {
    font-size: 0.55rem;
}

/* ========================================
   STATS BUTTON & POPUP
   ======================================== */
.stats-popup-btn {
    background: rgba(116, 185, 255, 0.12);
    border: 1px solid rgba(116, 185, 255, 0.25);
    color: #74b9ff;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-popup-btn:hover {
    background: rgba(116, 185, 255, 0.25);
    border-color: #74b9ff;
}

.stats-popup-btn i {
    font-size: 0.5rem;
}

/* Stats Popup Overlay */
.stats-popup-overlay {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    padding: 15px;
    box-sizing: border-box;
    margin: 0;
    transform: none !important;
    overflow: auto;
}

.stats-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.stats-popup {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    min-width: 280px;
    max-width: 350px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.stats-popup-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.stats-popup-header h3 {
    color: #74b9ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-popup-close {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.stats-popup-close:hover {
    color: #e74c3c;
}

.stats-popup-body {
    padding: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.stats-col {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.stats-col.income {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.stats-col.expense {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.stats-col.net {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.stats-col-label {
    font-size: 0.65rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stats-type {
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.stats-type.actual {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.stats-type.proj {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: #8892b0;
}

.stats-value {
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-value.income {
    color: #00b894;
}

.stats-value.expense {
    color: #e74c3c;
}

.stats-value.net.positive {
    color: #00b894;
}

.stats-value.net.negative {
    color: #e74c3c;
}

/* ========================================
   MONTH NAVIGATION
   ======================================== */
.calendar-month-nav-standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
    margin-bottom: 3px;
}

.calendar-month-nav-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.calendar-month-nav-btn:hover {
    background: rgba(0, 184, 148, 0.2);
    border-color: #00b894;
    color: #00b894;
}

.calendar-month-display {
    font-size: 0.65rem;
    font-weight: 600;
    color: #f5f5f5;
    min-width: 75px;
    text-align: center;
}

/* ========================================
   MONTH NET SUMMARY
   ======================================== */
.month-net-summary {
    display: none;
}

.month-net-label {
    color: #8892b0;
    font-size: 0.7rem;
}

.month-net-value {
    font-size: 0.8rem;
    font-weight: 600;
}

.month-net-value.positive {
    color: #00b894;
}

.month-net-value.negative {
    color: #e74c3c;
}

/* ========================================
   PROJECTION VARIANCE BAR
   ======================================== */
.projection-variance-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0 auto 6px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.variance-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    text-align: center;
}

.variance-status.inline {
    flex-direction: row;
    gap: 5px;
    flex: unset;
}

.variance-label {
    color: #636e72;
    font-size: clamp(0.5rem, 1.2vw, 0.65rem);
    white-space: nowrap;
}

.variance-value {
    font-size: clamp(0.6rem, 1.4vw, 0.75rem);
    font-weight: 600;
}

.variance-value.positive {
    color: #00b894;
}

.variance-value.negative {
    color: #e74c3c;
}

.variance-value.neutral {
    color: #8892b0;
}

.variance-value.warning {
    color: #fdcb6e;
}

.variance-indicator {
    font-size: clamp(0.5rem, 1.1vw, 0.6rem);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.variance-indicator.under {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.variance-indicator.over {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.variance-indicator.on-track {
    background: rgba(136, 146, 176, 0.2);
    color: #8892b0;
}

.variance-warning {
    display: none;
    font-size: 0.55rem;
    color: #fdcb6e;
    padding: 2px 6px;
    background: rgba(253, 203, 110, 0.1);
    border-radius: 3px;
    margin-left: 4px;
    white-space: nowrap;
}

.variance-warning.visible {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ========================================
   CALIBRATION INFO (Full Mode Only)
   ======================================== */
.calibration-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.calibration-date {
    color: #636e72;
    font-size: 0.6rem;
}

.recalibrate-btn {
    background: rgba(116, 185, 255, 0.12);
    border: 1px solid rgba(116, 185, 255, 0.25);
    color: #74b9ff;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.recalibrate-btn:hover {
    background: rgba(116, 185, 255, 0.25);
    border-color: #74b9ff;
}

.recalibrate-btn i {
    font-size: 0.55rem;
}

/* ========================================
   CREDIT PROJECTION BAR
   ======================================== */
.credit-projection-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 15px;
    background: rgba(155, 89, 182, 0.08);
    border-radius: 4px;
    margin: 0 auto 6px;
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.credit-projection-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.credit-projection-status:last-child {
    flex: 1;
    align-items: flex-start;
}

.credit-projection-label {
    color: #636e72;
    font-size: 0.55rem;
    text-align: center;
    white-space: nowrap;
}

.credit-projection-date {
    color: #9b59b6;
    font-weight: 500;
}

.credit-projection-cards {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 50%;
    padding: 6px 10px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: 6px;
}

.credit-projection-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 4px;
}

.credit-projection-card .card-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
}

.credit-projection-card .card-name {
    font-size: 0.65rem;
    color: #8892b0;
    font-weight: 500;
}

.credit-projection-card .card-balance {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e74c3c;
}

.credit-projection-card .card-balance.paid-off {
    color: #00b894;
}

/* ========================================
   CALENDAR GRID
   ======================================== */
.calendar-grid-wrapper {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

/* ========================================
   CALENDAR DAY
   ======================================== */
.calendar-day {
    min-height: 75px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 5px;
    transition: all 0.15s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: rgba(0, 184, 148, 0.1);
}

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

.calendar-day.today {
    border: 2px solid #00b894;
    background: rgba(0, 184, 148, 0.08);
}

.calendar-day.past {
    opacity: 0.5;
}

.calendar-day.has-warning {
    border-left: 3px solid #e74c3c;
}

.calendar-day.selected {
    border: 2px solid #74b9ff;
    background: rgba(116, 185, 255, 0.12);
    box-shadow: 0 0 8px rgba(116, 185, 255, 0.3);
}

.calendar-day.selected.today {
    border: 2px solid #74b9ff;
}

.calendar-day-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 4px;
}

.calendar-day.empty .calendar-day-number {
    visibility: hidden;
}

.calendar-day.today .calendar-day-number {
    color: #00b894;
}

/* ========================================
   DAY EVENTS
   ======================================== */
.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.calendar-event {
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.income {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.calendar-event.income.projected {
    background: rgba(0, 184, 148, 0.1);
    border: 1px dashed rgba(0, 184, 148, 0.3);
}

.calendar-event.payment {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.calendar-event.mortgage {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.calendar-event.payment.projected {
    background: rgba(231, 76, 60, 0.1);
    border: 1px dashed rgba(231, 76, 60, 0.3);
}

.calendar-event-more {
    font-size: 0.55rem;
    color: #74b9ff;
    text-align: center;
    padding: 2px 6px;
    cursor: pointer;
    background: rgba(116, 185, 255, 0.15);
    border-radius: 3px;
    margin-top: 2px;
    transition: all 0.15s;
}

.calendar-event-more:hover {
    background: rgba(116, 185, 255, 0.3);
}

.calendar-event.hidden-event {
    display: none;
}

.calendar-day.expanded .calendar-event.hidden-event {
    display: block;
}

.calendar-day.expanded .calendar-event-more {
    display: none;
}

.calendar-event-collapse {
    display: none;
    font-size: 0.55rem;
    color: #74b9ff;
    text-align: center;
    padding: 2px 6px;
    cursor: pointer;
    background: rgba(116, 185, 255, 0.15);
    border-radius: 3px;
    margin-top: 2px;
    transition: all 0.15s;
}

.calendar-event-collapse:hover {
    background: rgba(116, 185, 255, 0.3);
}

.calendar-day.expanded .calendar-event-collapse {
    display: block;
}

/* ========================================
   DAY BALANCE
   ======================================== */
.calendar-day-balance {
    font-size: 0.55rem;
    text-align: right;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-day-balance.positive {
    color: #00b894;
}

.calendar-day-balance.negative {
    color: #e74c3c;
}

.calendar-day-balance.warning {
    color: #fdcb6e;
}

/* ========================================
   DAY ACTION LINK
   ======================================== */
.day-action-link {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: rgba(116, 185, 255, 0.15);
    color: #74b9ff;
    font-size: 0.7rem;
    border-radius: 0 4px 0 6px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.15s;
    align-items: center;
    justify-content: center;
}

.day-action-link:hover {
    background: rgba(116, 185, 255, 0.4);
    color: #fff;
}

.calendar-day.selected .day-action-link {
    display: flex;
}

/* ========================================
   DAY INFO POPUP (Basic Mode)
   ======================================== */
.day-info-popup-overlay {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    padding: 15px;
    margin: 0;
    transform: none !important;
    box-sizing: border-box;
    overflow: auto;
}

.day-info-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.day-info-popup {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    min-width: 280px;
    max-width: 350px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.day-info-popup-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.day-info-popup-header h3 {
    color: #74b9ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-info-popup-close {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.day-info-popup-close:hover {
    color: #e74c3c;
}

.day-info-popup-body {
    padding: 15px;
}

.day-info-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 12px;
    text-align: center;
}

.day-info-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.day-info-balance-label {
    font-size: 0.75rem;
    color: #8892b0;
}

.day-info-balance-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.day-info-balance-value.positive {
    color: #00b894;
}

.day-info-balance-value.negative {
    color: #e74c3c;
}

.day-info-balance-value.warning {
    color: #fdcb6e;
}

.day-info-warning {
    font-size: 0.7rem;
    color: #e74c3c;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.day-info-section {
    margin-bottom: 12px;
}

.day-info-section-title {
    font-size: 0.7rem;
    color: #8892b0;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-info-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.day-info-event.income span:last-child {
    color: #00b894;
    font-weight: 600;
}

.day-info-event.expense span:last-child {
    color: #e74c3c;
    font-weight: 600;
}

.day-info-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
}

.day-info-empty {
    text-align: center;
    color: #636e72;
    font-size: 0.8rem;
    padding: 20px;
}

/* ========================================
   FULL MODE SPECIFIC: Bank TX Widget
   ======================================== */
.calendar-day-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 4px;
}

.bank-tx-widget {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bank-tx-widget:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.bank-tx-widget.positive {
    color: #00b894;
}

.bank-tx-widget.negative {
    color: #e74c3c;
}

.bank-tx-widget .tx-icon {
    font-size: 0.5rem;
}

.bank-tx-widget .tx-count {
    font-weight: 600;
}

.bank-tx-widget .tx-amount {
    font-size: 0.5rem;
    opacity: 0.8;
}

/* ========================================
   FULL MODE SPECIFIC: Day Snapshot Panel
   ======================================== */
.day-snapshot-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 35, 50, 0.98);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    z-index: 1000;
    min-width: 280px;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.day-snapshot-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.day-snapshot-overlay.visible {
    display: block;
}

.day-snapshot-panel.visible {
    display: block;
    animation: popupFadeIn 0.15s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.day-snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.day-snapshot-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5f5f5;
}

.day-snapshot-close {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.day-snapshot-close:hover {
    color: #e74c3c;
}

.day-snapshot-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

.day-snapshot-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.day-snapshot-balance-label {
    font-size: 0.7rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.day-snapshot-balance-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.day-snapshot-balance-value.positive { color: #00b894; }
.day-snapshot-balance-value.negative { color: #e74c3c; }
.day-snapshot-balance-value.warning { color: #fdcb6e; }

.day-snapshot-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 10px;
}

.day-snapshot-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.day-snapshot-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 120px;
    overflow-y: auto;
}

.day-snapshot-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 2px solid #8892b0;
    transition: background 0.15s;
}

.day-snapshot-event:hover {
    background: rgba(255, 255, 255, 0.08);
}

.day-snapshot-event.income {
    border-left-color: #00b894;
}

.day-snapshot-event.expense {
    border-left-color: #e74c3c;
}

.day-snapshot-event.custom {
    border-left-color: #a29bfe;
}

.day-snapshot-event-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.day-snapshot-event-name {
    font-size: 0.75rem;
    color: #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-snapshot-event-meta {
    font-size: 0.6rem;
    color: #666;
}

.day-snapshot-event-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.day-snapshot-event-amount {
    font-size: 0.8rem;
    font-weight: 600;
}

.day-snapshot-event-amount.income { color: #00b894; }
.day-snapshot-event-amount.expense { color: #e74c3c; }

.day-snapshot-event-edit,
.day-snapshot-event-delete {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    padding: 2px;
    font-size: 0.65rem;
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s;
}

.day-snapshot-event-edit:hover {
    opacity: 1;
    color: #74b9ff;
}

.day-snapshot-event-delete:hover {
    opacity: 1;
    color: #e74c3c;
}

.day-snapshot-empty {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 0.75rem;
}

.day-snapshot-footer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
}

.day-snapshot-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.1s, opacity 0.1s;
}

.day-snapshot-btn:hover {
    transform: scale(1.02);
}

.day-snapshot-btn:active {
    transform: scale(0.98);
}

.day-snapshot-btn.income {
    background: rgba(0, 184, 148, 0.25);
    color: #00b894;
}

.day-snapshot-btn.expense {
    background: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

/* ========================================
   BASIC MODE OVERRIDES
   Hide full-mode-only elements
   ======================================== */
.calendar-mode-basic .recalibrate-btn,
.calendar-mode-basic .calendar-edit-btn,
.calendar-mode-basic .calibration-info,
.calendar-mode-basic .day-snapshot-footer,
.calendar-mode-basic .day-snapshot-event-edit,
.calendar-mode-basic .day-snapshot-event-delete,
.calendar-mode-basic .bank-tx-widget {
    display: none !important;
}

.calendar-mode-basic .liquid-total-item {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* ========================================
   VIEW TOGGLE BUTTONS
   ======================================== */
.view-toggle-group {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    z-index: 10;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.view-toggle-btn {
    background: rgba(30, 40, 60, 0.6);
    border: none;
    color: #8892b0;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle-btn:first-child {
    border-right: 1px solid rgba(116, 185, 255, 0.2);
}

.view-toggle-btn:hover:not(.active) {
    background: rgba(116, 185, 255, 0.1);
    color: #a8b2d1;
}

.view-toggle-btn.active {
    background: rgba(116, 185, 255, 0.25);
    color: #74b9ff;
}

/* ========================================
   BASIC VIEW SECTION
   ======================================== */
.basic-view-section {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 768px) {
    .calendar-header {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .calendar-header-row {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-header-left,
    .calendar-header-right {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .liquid-cash-amount {
        padding: 2px 6px;
    }
    
    .liquid-cash-label {
        font-size: 0.5rem;
    }
    
    .liquid-cash-value {
        font-size: 0.6rem;
    }
    
    .header-account-logo {
        height: 11px;
    }
    
    .credit-cards-row {
        justify-content: center;
    }
    
    .credit-card-item {
        padding: 2px 4px;
    }
    
    .credit-card-item .header-account-logo {
        height: 10px;
    }
    
    .credit-card-item .credit-balance {
        font-size: 0.55rem;
    }
    
    .credit-card-item .credit-card-name {
        font-size: 0.5rem;
    }
    
    .calendar-updated {
        font-size: 0.5rem;
    }
    
    .stats-popup-btn {
        padding: 4px 10px;
        font-size: 0.5rem;
    }
    
    .calendar-month-nav-standalone {
        gap: 6px;
        padding: 4px 8px;
    }
    
    .projection-variance-bar {
        gap: 6px;
        padding: 8px 12px;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }
    
    .credit-projection-bar {
        gap: 6px;
        padding: 8px 12px;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }
    
    .calendar-grid-wrapper {
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-weekdays {
        min-width: 420px;
    }
    
    .calendar-weekday {
        font-size: 0.6rem;
        padding: 6px 0;
        min-width: 58px;
    }
    
    .calendar-days {
        min-width: 420px;
    }
    
    .calendar-day {
        min-height: 60px;
        min-width: 58px;
        padding: 3px;
    }
    
    .calendar-day-number {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .calendar-event-more {
        font-size: 0.5rem;
        padding: 1px 4px;
    }
    
    .calendar-day-balance {
        font-size: 0.5rem;
        padding-top: 2px;
    }
    
    .day-action-link {
        font-size: 0.65rem;
    }
    
    .stats-popup,
    .day-info-popup {
        min-width: 260px;
        max-width: 90vw;
    }
}

@media screen and (max-width: 480px) {
    .calendar-header {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .calendar-header-row {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-header-left {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 6px;
    }
    
    .calendar-header-right {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }
    
    .liquid-cash-label {
        display: none;
    }
    
    .liquid-cash-value {
        font-size: 0.55rem;
    }
    
    .liquid-cash-amount {
        padding: 2px 6px;
    }
    
    .header-account-logo {
        height: 10px;
    }
    
    .credit-cards-row {
        gap: 4px;
        justify-content: center;
        width: 100%;
    }
    
    .credit-card-item {
        padding: 2px 5px;
    }
    
    .credit-card-item .header-account-logo {
        height: 10px;
    }
    
    .credit-card-item .credit-balance {
        font-size: 0.55rem;
    }
    
    .credit-card-item .credit-card-name {
        font-size: 0.45rem;
    }
    
    .calendar-updated {
        font-size: 0.45rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .calendar-updated i {
        font-size: 0.45rem;
    }
    
    .stats-popup-btn {
        padding: 4px 10px;
        font-size: 0.5rem;
    }
    
    .calendar-month-nav-standalone {
        padding: 6px 10px;
        margin: 8px 0;
    }
    
    .projection-variance-bar {
        padding: 10px;
        gap: 5px;
        width: 100%;
        min-width: 0;
    }
    
    .variance-label {
        font-size: 0.55rem;
    }
    
    .variance-value {
        font-size: 0.75rem;
    }
    
    .variance-indicator {
        font-size: 0.55rem;
    }
    
    .credit-projection-bar {
        padding: 10px;
        gap: 5px;
        width: 100%;
        min-width: 0;
    }
    
    .credit-projection-label {
        font-size: 0.55rem;
    }
    
    .calendar-grid-wrapper {
        padding: 4px;
        border-radius: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-weekdays {
        gap: 1px;
        margin-bottom: 4px;
        min-width: 350px;
    }
    
    .calendar-weekday {
        font-size: 0.55rem;
        padding: 4px 0;
        letter-spacing: 0;
        min-width: 48px;
    }
    
    .calendar-days {
        gap: 1px;
        min-width: 350px;
    }
    
    .calendar-day {
        min-height: 55px;
        min-width: 48px;
        padding: 2px;
        border-radius: 3px;
    }
    
    .calendar-day-number {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 1px 2px;
        border-radius: 2px;
    }
    
    .calendar-event-more {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .calendar-day-balance {
        font-size: 0.45rem;
        padding-top: 1px;
    }
    
    .day-action-link {
        font-size: 0.6rem;
    }
    
    .credit-projection-card .card-logo {
        width: 14px;
        height: 14px;
    }
    
    .credit-projection-card .card-name {
        font-size: 0.55rem;
    }
    
    .credit-projection-card .card-balance {
        font-size: 0.6rem;
    }
    
    .stats-popup,
    .day-info-popup {
        min-width: auto;
        max-width: 320px;
    }
    
    .stats-popup-header,
    .day-info-popup-header {
        padding: 10px 12px;
    }
    
    .stats-popup-header h3,
    .day-info-popup-header h3 {
        font-size: 0.8rem;
    }
    
    .day-info-date {
        font-size: 0.8rem;
    }
    
    .day-info-event {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 360px) {
    .calendar-day {
        min-height: 45px;
    }
    
    .calendar-day-number {
        font-size: 0.5rem;
    }
    
    .calendar-event {
        font-size: 0.4rem;
    }
    
    .calendar-day-balance {
        font-size: 0.4rem;
    }
    
    .calendar-weekday {
        font-size: 0.45rem;
    }
}

/* ========================================
   FULLSCREEN MODE
   ======================================== */
.fullscreen-btn {
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    border: 1px solid rgba(116, 185, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
    margin-right: 10px;
}

.fullscreen-btn:hover {
    background: rgba(116, 185, 255, 0.3);
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.button-row .logout-btn,
.button-row .fullscreen-btn {
    margin: 0;
}

.fs-top-controls {
    display: none;
}

body.fullscreen-mode .fs-top-controls {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 101;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

body.fullscreen-mode .fs-top-controls .fullscreen-btn {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
    border-color: rgba(0, 184, 148, 0.3);
    padding: 4px 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

body.fullscreen-mode .fs-top-controls .logout-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
}

body.fullscreen-mode .button-row {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    padding: 6px 8px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

body.fullscreen-mode .button-row > .fullscreen-btn,
body.fullscreen-mode .button-row > .logout-btn {
    display: none;
}

.fs-month-nav {
    display: none;
}

body.fullscreen-mode .button-row .fs-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 4px;
}

.fs-month-nav .nav-btn {
    background: rgba(116, 185, 255, 0.15);
    border: 1px solid rgba(116, 185, 255, 0.25);
    color: #74b9ff;
    width: 50px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fs-month-nav .nav-btn:hover {
    background: rgba(116, 185, 255, 0.25);
}

.fs-month-nav .month-label {
    color: #74b9ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

body.fullscreen-mode .calendar-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding-bottom: 60px;
}

body.fullscreen-mode .calendar-days {
    flex: 1;
}

body.fullscreen-mode .calendar-day {
    min-height: 70px;
}

body.fullscreen-mode .calendar-header {
    padding: 10px 8px 6px 8px;
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.fullscreen-mode .calendar-header::after {
    display: none;
}

body.fullscreen-mode .calendar-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 4px 0;
    min-height: 36px;
}

body.fullscreen-mode .calendar-header-row:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

body.fullscreen-mode .calendar-liquid-cash {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 4px;
}

body.fullscreen-mode .liquid-cash-amount {
    flex: 1;
    text-align: center;
    padding: 6px 8px !important;
    margin: 0 !important;
    border: none !important;
    min-height: 32px;
}

body.fullscreen-mode .liquid-cash-label {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 2px;
}

body.fullscreen-mode .liquid-cash-value {
    font-size: 0.9rem;
    font-weight: 600;
}

body.fullscreen-mode .liquid-total-item .liquid-cash-value {
    color: #00b894;
}

body.fullscreen-mode .credit-cards-row {
    font-size: 0.8rem;
}

body.fullscreen-mode .calendar-header-row:nth-child(2) {
    flex-wrap: nowrap;
    justify-content: center;
}

body.fullscreen-mode .calendar-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.fullscreen-mode .calendar-updated {
    font-size: 0.7rem;
    white-space: nowrap;
}

body.fullscreen-mode .calendar-updated i {
    font-size: 0.6rem;
}

body.fullscreen-mode .header-collapsed-summary {
    display: none !important;
}

body.fullscreen-mode .calendar-header.collapsed .calendar-header-row {
    display: flex;
}

body.fullscreen-mode .calendar-month-nav-standalone {
    display: none;
}

body.fullscreen-mode .calendar-header-row:nth-child(2) .calendar-header-right {
    display: none;
}

body.fullscreen-mode .projection-variance-bar,
body.fullscreen-mode .credit-projection-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 2px auto;
    justify-content: space-around;
    align-items: center;
    min-width: auto;
    width: 100%;
}

body.fullscreen-mode .variance-status,
body.fullscreen-mode .credit-projection-status {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    flex: 1;
    text-align: center;
    padding: 0 2px;
    margin: 0 !important;
}

body.fullscreen-mode .variance-label,
body.fullscreen-mode .credit-projection-label {
    font-size: 0.5rem !important;
    text-align: center !important;
    margin-bottom: 1px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: block !important;
}

body.fullscreen-mode .variance-value,
body.fullscreen-mode #monthProjectionLabel,
body.fullscreen-mode #projectedNetBar,
body.fullscreen-mode #monthIncomeBar,
body.fullscreen-mode #monthExpenseBar,
body.fullscreen-mode #dayProjectionLabel,
body.fullscreen-mode #projectedLiquidBar {
    font-size: 0.65rem !important;
    font-weight: 600;
    margin: 0 !important;
}

body.fullscreen-mode .variance-indicator {
    font-size: 0.5rem;
    padding: 1px 4px;
}

body.fullscreen-mode .variance-warning {
    display: none !important;
}

body.fullscreen-mode .credit-projection-cards {
    font-size: 0.6rem;
}

@media screen and (max-width: 480px) {
    body.fullscreen-mode .calendar-header {
        padding: 6px;
    }
    
    body.fullscreen-mode .calendar-month-nav-standalone {
        padding: 4px 8px;
        margin: 4px 0;
    }
    
    body.fullscreen-mode .projection-variance-bar,
    body.fullscreen-mode .credit-projection-bar {
        padding: 6px 10px;
        margin: 3px auto;
    }
    
    body.fullscreen-mode .calendar-grid-wrapper {
        padding: 4px;
        min-width: 0;
    }
    
    body.fullscreen-mode .calendar-weekdays,
    body.fullscreen-mode .calendar-days {
        min-width: 0;
    }
    
    body.fullscreen-mode .calendar-day {
        min-width: 0;
        min-height: 60px;
    }
    
    body.fullscreen-mode .calendar-weekday {
        min-width: 0;
    }
}

@media screen and (min-width: 769px) {
    .fullscreen-btn {
        display: none;
    }
}

/* Recurring Edit Prompt Modal */
.recurring-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease-out;
}

.recurring-edit-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.recurring-edit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recurring-edit-title i {
    color: #a29bfe;
}

.recurring-edit-subtitle {
    font-size: 0.85rem;
    color: #8892b0;
    margin-bottom: 20px;
    line-height: 1.4;
}

.recurring-edit-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.recurring-edit-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.15s ease;
}

.recurring-edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
}

.recurring-edit-btn i {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.recurring-edit-btn.this-only i {
    color: #74b9ff;
}

.recurring-edit-btn.all-events i {
    color: #a29bfe;
}

.recurring-edit-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.recurring-edit-btn small {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
}

.recurring-edit-cancel {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #8892b0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.recurring-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
}
