:root {
    --fc-primary: #1a1a2e;
    --fc-accent: #de5246;
    --fc-accent-hover: #c9473c;
    --fc-bg: #ffffff;
    --fc-surface: #ffffff;
    --fc-surface-hover: #f8f9fa;
    --fc-text: #1e1e1e;
    --fc-text-muted: #6b7280;
    --fc-border: #e5e7eb;
    --fc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fc-radius: 8px;
    --fc-radius-sm: 4px;
    --fc-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.fc-wrapper {
    font-family: var(--fc-font);
    background: var(--fc-bg);
    padding: 24px;
    border-radius: var(--fc-radius);
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-shadow);
}

.fc-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fc-view-toggle {
    display: flex;
    background: var(--fc-surface-hover);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid var(--fc-border);
    gap: 2px;
}

.fc-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--fc-text-muted);
    font-family: var(--fc-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fc-toggle-btn:hover {
    color: var(--fc-text);
}

.fc-toggle-btn.active {
    background: #fff;
    color: var(--fc-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fc-filter-wrapper {
    position: relative;
}

.fc-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 6px;
    font-family: var(--fc-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--fc-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-filter-btn:hover {
    border-color: var(--fc-accent);
}

.fc-filter-btn.has-filters {
    background: var(--fc-accent);
    border-color: var(--fc-accent);
    color: #fff;
}

.fc-filter-btn svg {
    width: 16px;
    height: 16px;
}

.fc-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 16px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.fc-filter-dropdown.open {
    display: block;
    animation: fc-dropdown-in 0.15s ease;
}

@keyframes fc-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-filter-dropdown-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fc-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.fc-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 14px;
}

.fc-filter-option:hover {
    background: var(--fc-surface-hover);
}

.fc-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--fc-border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--fc-accent);
}

.fc-filter-option .fc-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.1);
}

.fc-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fc-border);
}

.fc-filter-apply {
    flex: 1;
    padding: 10px;
    background: var(--fc-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--fc-font);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fc-filter-apply:hover {
    background: var(--fc-accent-hover);
}

.fc-filter-clear {
    padding: 10px 16px;
    background: transparent;
    color: var(--fc-text-muted);
    border: 1px solid var(--fc-border);
    border-radius: 6px;
    font-family: var(--fc-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-filter-clear:hover {
    border-color: var(--fc-text-muted);
    color: var(--fc-text);
}

.fc-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fc-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--fc-surface-hover);
    border: 1px solid var(--fc-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fc-text);
}

.fc-active-filter-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--fc-text-muted);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fc-active-filter-remove:hover {
    background: var(--fc-accent);
}

.fc-clear-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    font-family: var(--fc-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--fc-text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.fc-clear-all-filters:hover {
    color: var(--fc-accent);
}

.fc-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.fc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fc-text-muted);
    padding: 6px 12px;
    background: var(--fc-surface-hover);
    border-radius: 6px;
}

.fc-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.fc-view-container {
    position: relative;
}

.fc-calendar-view,
.fc-list-view {
    display: none;
}

.fc-calendar-view.active,
.fc-list-view.active {
    display: block;
}

.fc-calendar-view {
    background: var(--fc-surface);
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
}

.fc-calendar-view .fc {
    background: transparent;
}

.fc-calendar-view .fc-theme-standard td,
.fc-calendar-view .fc-theme-standard th,
.fc-calendar-view .fc-theme-standard .fc-scrollgrid {
    border-color: var(--fc-border);
}

.fc-calendar-view .fc-view-harness {
    min-height: 500px;
}

.fc-calendar-view .fc-daygrid-body,
.fc-calendar-view .fc-scrollgrid-section-body table,
.fc-calendar-view .fc-col-header {
    width: 100% !important;
}

.fc-calendar-view table {
    border-collapse: collapse;
    width: 100%;
}

.fc-calendar-view .fc-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-calendar-view .fc-toolbar.fc-header-toolbar {
    justify-content: flex-start;
    gap: 8px;
}

.fc-calendar-view .fc-toolbar-chunk:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-calendar-view .fc-toolbar-chunk:last-child {
    display: none;
}

.fc-calendar-view .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fc-text);
    margin: 0 8px;
}

.fc-calendar-view .fc-button {
    background: #fff;
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
    font-family: var(--fc-font);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--fc-radius-sm);
    transition: all 0.2s ease;
}

.fc-calendar-view .fc-button:hover {
    background: var(--fc-surface-hover);
    border-color: var(--fc-border);
    color: var(--fc-text);
}

.fc-calendar-view .fc-button-primary:not(:disabled).fc-button-active,
.fc-calendar-view .fc-button-primary:not(:disabled):active {
    background: var(--fc-accent);
    border-color: var(--fc-accent);
    color: #fff;
}

.fc-calendar-view .fc-col-header-cell {
    background: #fff;
    border-color: var(--fc-border);
    padding: 14px 0;
}

.fc-calendar-view .fc-col-header-cell-cushion {
    color: var(--fc-text-muted);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.fc-calendar-view .fc-daygrid-day {
    border-color: var(--fc-border);
    transition: background 0.15s ease;
}

.fc-calendar-view .fc-daygrid-day:hover {
    background: var(--fc-surface-hover);
}

.fc-calendar-view .fc-daygrid-day-number {
    color: var(--fc-text);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 12px;
    text-decoration: none;
}

.fc-calendar-view .fc-day-today {
    background: rgba(222, 82, 70, 0.05) !important;
}

.fc-calendar-view .fc-day-today .fc-daygrid-day-number {
    color: var(--fc-accent);
}

.fc-calendar-view .fc-day-other .fc-daygrid-day-number {
    color: #d1d5db;
}

.fc-calendar-view .fc-daygrid-event {
    border: none;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    margin: 2px 4px;
    background: #e8f4fd !important;
    color: #1e3a5f !important;
    transition: all 0.15s ease;
    position: relative;
    border-left: 3px solid #1e6bb8;
}

.fc-calendar-view .fc-daygrid-event:hover {
    background: #d4ebfc !important;
}

.fc-calendar-view .fc-daygrid-event.fc-event-multiday {
    border-radius: 4px;
    padding: 6px 8px;
    border-left-width: 4px;
    background: #e8f4fd !important;
}

.fc-calendar-view .fc-daygrid-event.fc-event-multiday .fc-event-title {
    font-weight: 600;
}

.fc-calendar-view .fc-daygrid-event.fc-event-multiday:hover {
    background: #d4ebfc !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fc-calendar-view .fc-daygrid-event.fc-event-featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-left-color: #f59e0b !important;
    border-left-width: 4px !important;
}

.fc-calendar-view .fc-daygrid-event.fc-event-featured .fc-event-title {
    font-weight: 700;
}

.fc-calendar-view .fc-daygrid-event.fc-event-featured::before {
    content: '★';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #f59e0b;
}

.fc-calendar-view .fc-daygrid-event.fc-event-sticky {
    border-left-width: 4px !important;
}

.fc-calendar-view .fc-daygrid-event .fc-event-main {
    display: block !important;
}

.fc-calendar-view .fc-event-main-frame {
    display: flex !important;
    flex-direction: column !important;
}

.fc-calendar-view .fc-daygrid-dot-event .fc-event-title {
    font-weight: 500;
}

.fc-calendar-view .fc-daygrid-event-dot {
    display: none !important;
}

.fc-calendar-view .fc-event-time {
    font-weight: 500;
    color: #5a7a9a;
    font-size: 11px;
    display: block !important;
    line-height: 1.3;
    margin-bottom: 2px;
}

.fc-calendar-view .fc-event-title {
    font-weight: 600;
    color: #1e3a5f;
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
    display: block !important;
    font-size: 12px;
}

.fc-calendar-view .fc-event-title .fc-recurring-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
}

.fc-calendar-view .fc-event-title-container {
    display: block !important;
}

.fc-calendar-view .fc-daygrid-event-harness {
    margin-bottom: 2px;
}

.fc-calendar-view .fc-more-link {
    color: var(--fc-accent);
    font-weight: 600;
    font-size: 12px;
}

.fc-calendar-view .fc-popover {
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.fc-calendar-view .fc-popover-header {
    background: var(--fc-surface-hover);
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--fc-border);
}

.fc-calendar-view .fc-scrollgrid {
    border-color: var(--fc-border);
    border-width: 0;
}

.fc-calendar-view .fc-scrollgrid td,
.fc-calendar-view .fc-scrollgrid th {
    border-color: var(--fc-border);
}

.fc-calendar-view .fc-daygrid-day-frame {
    min-height: 100px;
}

.fc-calendar-view .fc-daygrid-day-top {
    flex-direction: row;
}

.fc-calendar-view .fc-daygrid-body-balanced .fc-daygrid-day-events {
    position: relative;
}

.fc-event-tooltip {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 16px 18px;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fc-event-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.fc-event-tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--fc-text-muted);
    margin-bottom: 10px;
}

.fc-event-tooltip-recurring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--fc-surface-hover);
    border-radius: 4px;
    flex-shrink: 0;
}

.fc-event-tooltip-recurring svg {
    width: 12px;
    height: 12px;
    fill: var(--fc-text-muted);
}

.fc-event-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fc-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.fc-event-tooltip-desc {
    font-size: 13px;
    color: var(--fc-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.fc-event-tooltip-meta {
    font-size: 12px;
    color: var(--fc-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--fc-border);
}

.fc-event-tooltip-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fc-recurring-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    background: var(--fc-surface-hover);
    border-radius: 3px;
    flex-shrink: 0;
}

.fc-recurring-icon svg {
    width: 10px;
    height: 10px;
    fill: var(--fc-text-muted);
}

.fc-list-view {
    background: #fff;
    border-radius: var(--fc-radius);
    padding: 20px;
    border: 1px solid var(--fc-border);
}

.fc-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fc-text);
}

.fc-list-nav {
    display: flex;
    gap: 8px;
}

.fc-list-nav-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text);
    font-family: var(--fc-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-list-nav-btn:hover {
    background: var(--fc-surface-hover);
    border-color: var(--fc-accent);
    color: var(--fc-accent);
}

.fc-list-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fc-list-event {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--fc-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fc-list-event:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.fc-list-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #d85041;
    color: #fff;
    min-width: 100px;
    flex-shrink: 0;
    /* font-family: inherit; */
}

.fc-list-event-day {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Montserrat';
    /* font-family: inherit; */
}

.fc-list-event-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    opacity: 0.95;
    font-family: 'Montserrat';
    /* font-family: inherit; */
}

.fc-list-event-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-list-event-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fc-text);
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    /* font-family: inherit; */
}

.fc-list-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-list-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--fc-text-muted);
    /* font-family: inherit; */
}

.fc-list-event-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.fc-list-event-link {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    color: var(--fc-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-left: 1px solid var(--fc-border);
    transition: all 0.2s ease;
    white-space: nowrap;
    /* font-family: inherit; */
}

.fc-list-event-link:hover {
    background: var(--fc-surface-hover);
    color: #d85041;
}

.fc-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fc-text-muted);
}

.fc-list-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.fc-list-load-more {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: transparent;
    border: 2px dashed var(--fc-border);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text-muted);
    font-family: var(--fc-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-list-load-more:hover {
    border-color: var(--fc-accent);
    color: var(--fc-accent);
}

.fc-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fc-event-modal[aria-hidden="false"] {
    display: flex;
}

.fc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.fc-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--fc-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fc-modal-in 0.3s ease;
}

@keyframes fc-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--fc-surface-hover);
    border-radius: 50%;
    color: var(--fc-text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-modal-close:hover {
    background: var(--fc-accent);
    color: #fff;
}

.fc-modal-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--fc-surface-hover);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.fc-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fc-text);
    margin-bottom: 20px;
    padding-right: 40px;
}

.fc-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.fc-modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--fc-text-muted);
}

.fc-modal-meta-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.fc-modal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fc-modal-description {
    color: var(--fc-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.fc-modal-recurring-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(233, 69, 96, 0.15);
    color: var(--fc-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.fc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--fc-border);
}

.fc-modal-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--fc-radius-sm);
    font-family: var(--fc-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.fc-modal-btn-primary {
    background: var(--fc-accent);
    color: #fff;
}

.fc-modal-btn-primary:hover {
    background: var(--fc-accent-hover);
}

.fc-modal-btn-secondary {
    background: #fff;
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
}

.fc-modal-btn-secondary:hover {
    border-color: var(--fc-accent);
    color: var(--fc-accent);
    background: #fff;
}

.fc-modal-btn-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.fc-modal-btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.fc-add-to-calendar-dropdown {
    position: relative;
}

.fc-add-to-calendar-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    margin-bottom: 8px;
}

.fc-add-to-calendar-menu.open {
    display: block;
    animation: fc-menu-in 0.2s ease;
}

@keyframes fc-menu-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-add-to-calendar-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--fc-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}

.fc-add-to-calendar-menu a:hover {
    background: var(--fc-surface-hover);
    color: var(--fc-accent);
}

.fc-rsvp-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--fc-surface-hover);
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
}

.fc-rsvp-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-text);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-rsvp-capacity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--fc-border);
}

.fc-capacity-count {
    font-weight: 600;
    font-size: 15px;
    color: var(--fc-text);
}

.fc-spots-left {
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

.fc-capacity-full {
    font-weight: 600;
    font-size: 14px;
    color: #dc2626;
}

.fc-rsvp-section.fc-rsvp-full {
    background: #fef2f2;
    border-color: #fecaca;
}

.fc-rsvp-section.fc-rsvp-full .fc-rsvp-capacity {
    background: #fff;
    border-color: #fecaca;
    justify-content: center;
}

.fc-guests-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-guests-label {
    font-size: 13px;
    color: var(--fc-text-muted);
    white-space: nowrap;
}

.fc-guests-input {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid var(--fc-border);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.fc-guests-hint {
    font-size: 12px;
    color: var(--fc-text-muted);
}

.fc-capacity-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
}

.fc-rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-rsvp-row {
    display: flex;
    gap: 12px;
}

.fc-rsvp-row input {
    flex: 1;
}

.fc-rsvp-form input {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text);
    font-family: var(--fc-font);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-rsvp-form input:focus {
    outline: none;
    border-color: var(--fc-accent);
    box-shadow: 0 0 0 3px rgba(222, 82, 70, 0.1);
}

.fc-rsvp-form input::placeholder {
    color: #9ca3af;
}

.fc-rsvp-submit {
    width: 100%;
    margin-top: 4px;
}

.fc-rsvp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fc-rsvp-message {
    display: none;
}

.fc-rsvp-message:not(:empty) {
    display: block;
}

.fc-rsvp-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.fc-rsvp-error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.fc-single-rsvp-form .form-control {
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.fc-single-rsvp-form .form-control:focus {
    border-color: #f05643;
    box-shadow: 0 0 0 0.2rem rgba(240, 86, 67, 0.15);
}

.fc-rsvp-submit-btn {
    transition: all 0.3s ease;
}

.fc-rsvp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 86, 67, 0.3);
}

.fc-rsvp-confirmed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fc-rsvp-confirmed .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fc-rsvp-now-full {
    font-size: 12px;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 8px 12px;
    border-radius: var(--fc-radius-sm);
    margin-top: 8px;
}

.fc-rsvp-success-state {
    text-align: center;
    padding: 40px 20px;
}

.fc-rsvp-success-state .fc-success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}

.fc-rsvp-success-state .fc-success-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.fc-rsvp-success-state h3,
.fc-rsvp-success-state h4 {
    margin: 0 0 8px;
    color: #2ecc71;
    font-size: 18px;
    font-weight: 600;
}

.fc-rsvp-success-state p {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 14px;
}

.fc-donation-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.fc-donation-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: #fff;
}

.fc-rsvp-confirmed-card,
.fc-rsvp-section.fc-rsvp-confirmed {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.05) !important;
}

.fc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--fc-text-muted);
    font-size: 14px;
}

.fc-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--fc-border);
    border-top-color: var(--fc-accent);
    border-radius: 50%;
    animation: fc-spin 0.8s linear infinite;
    margin-left: 12px;
}

@keyframes fc-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fc-calendar-view.loading {
    position: relative;
    min-height: 400px;
}

.fc-calendar-view.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.fc-calendar-view.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border: 4px solid var(--fc-border);
    border-top-color: var(--fc-accent);
    border-radius: 50%;
    animation: fc-spin 0.8s linear infinite;
    z-index: 11;
}

@media (max-width: 768px) {
    .fc-wrapper {
        padding: 12px;
    }
    
    .fc-controls {
        justify-content: space-between;
    }
    
    .fc-view-toggle {
        display: none;
    }
    
    .fc-calendar-view {
        display: none !important;
    }
    
    .fc-list-view {
        display: block !important;
    }
    
    .fc-list-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .fc-list-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .fc-list-nav {
        justify-content: center;
    }
    
    .fc-list-event {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fc-list-event-date {
        flex-direction: row;
        min-width: 100%;
        padding: 16px;
        gap: 8px;
        justify-content: center;
    }
    
    .fc-list-event-day {
        font-size: 28px;
    }
    
    .fc-list-event-month {
        font-size: 13px;
        align-self: flex-end;
        padding-bottom: 2px;
    }
    
    .fc-list-event-content {
        padding: 16px;
    }
    
    .fc-list-event-title {
        font-size: 16px;
    }
    
    .fc-list-event-link {
        padding: 14px 16px;
        border-left: none;
        border-top: 1px solid var(--fc-border);
        justify-content: center;
    }
    
    .fc-old-list-event-content {
        padding: 16px;
        width: 100%;
    }
    
    .fc-list-event-time {
        display: none;
    }
    
    .fc-list-event-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .fc-list-event-datetime {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--fc-text-muted);
        margin-bottom: 8px;
    }
    
    .fc-list-event-excerpt {
        font-size: 14px;
        color: var(--fc-text-muted);
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .fc-list-event-action {
        padding: 12px 16px;
        background: var(--fc-surface-hover);
        border-top: 1px solid var(--fc-border);
    }
    
    .fc-list-event-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        background: var(--fc-accent);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-family: var(--fc-font);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease;
    }
    
    .fc-list-event-btn:hover {
        background: var(--fc-accent-hover);
    }
    
    .fc-list-empty {
        padding: 40px 20px;
    }
    
    .fc-list-empty-action {
        margin-top: 16px;
    }
    
    .fc-list-empty-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        background: var(--fc-accent);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-family: var(--fc-font);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
    
    .fc-modal-content {
        padding: 20px;
        max-height: 90vh;
    }
    
    .fc-modal-actions {
        flex-direction: column;
    }
    
    .fc-modal-btn {
        width: 100%;
    }
    
    .fc-rsvp-row {
        flex-direction: column;
    }
    
    .fc-filter-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: var(--fc-radius) var(--fc-radius) 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .fc-active-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .fc-active-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

