/**
 * PLC Custom Calendar Styles
 * Matches production calendar appearance
 */

/* =================================================================
   CALENDAR WRAP - FADE TRANSITION
   ================================================================= */

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Desktop: Fade in with upward movement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: Fade in only, no movement (prevents jarring shift) */
@media (max-width: 768px) {
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(0);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@keyframes stickyPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.plc-calendar-wrap {
    opacity: 1;
}

.plc-calendar-wrap.fade-out {
    animation: fadeOut 0.15s ease-out forwards;
}

.plc-calendar-wrap.fade-in {
    animation: fadeIn 0.15s ease-in forwards;
}

/* Event cards fade in when scrolled into view */
.plc-event-card {
    opacity: 0;
    transition: none;
}

.plc-event-card.visible {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Month headers - always visible (no fade animation on initial load) */
.plc-month-group {
    opacity: 1;
}

.plc-month-group.visible {
    /* animation: fadeInUp 0.3s ease-out forwards; */ /* Disabled - caused October to be hidden on mobile */
}

/* =================================================================
   SEARCH AND FILTER UI
   ================================================================= */

.plc-search-filter-wrap {
    background: linear-gradient(135deg, #e8e9ea 0%, #d4d6d8 100%); /* Darker gray gradient */
    border: 1px solid #c8cacc; /* Darker border */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1 !important; /* Always visible */
    position: relative;
    z-index: 1000; /* Above month headers (z-index: 999) and their white fade */
    isolation: isolate; /* Create new stacking context to prevent box-shadow bleed */
}

.plc-search-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search row with filter button */
.plc-search-row {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

/* Event Filters toggle button - subdued styling */
.plc-toggle-filters {
    flex-shrink: 0;
    padding: 14px 24px;
    font-size: 14px; /* Reduced from 16px */
    font-weight: 500; /* Reduced from 600 to be less bold */
    color: #666; /* Changed from white to gray for subdued look */
    background: #f5f5f5; /* Changed from bright blue to light gray */
    border: 1px solid #ddd; /* Added subtle border */
    border-radius: 6px; /* Reduced from 8px for less rounded look */
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plc-toggle-filters:hover {
    background: #e8e8e8; /* Subtle hover - light gray */
    border-color: #ccc; /* Slightly darker border on hover */
}

.plc-toggle-filters:active {
    background: #ddd; /* Slightly darker when clicked */
}

.plc-filter-arrow {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.plc-filter-arrow.plc-arrow-open {
    transform: rotate(180deg);
}

/* Collapsible filters container */
.plc-filters-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
}

/* Search Input */
.plc-search-input-wrap {
    position: relative;
    flex-grow: 1;
}

.plc-search-input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plc-search-input:focus {
    outline: none;
    border-color: #1959A0;
    box-shadow: 0 0 0 3px rgba(25, 89, 160, 0.1);
}

.plc-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    opacity: 0.5;
}

/* Category Filters */
.plc-category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.plc-filter-label {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.plc-category-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    user-select: none;
}

.plc-category-checkbox:hover {
    border-color: #1959A0;
    background: #f0f7ff;
}

.plc-category-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.plc-category-checkbox input[type="checkbox"]:checked {
    accent-color: #1959A0;
}

/* Label Filters */
.plc-label-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.plc-label-toggle-btn {
    background: linear-gradient(135deg, #4A8FD8 0%, #3a7bc8 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plc-label-toggle-btn:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #2a6bb8 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.plc-label-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.plc-label-toggle-btn.active .plc-label-arrow {
    transform: rotate(180deg);
}

.plc-label-content {
    overflow: hidden;
}

.plc-label-include-group,
.plc-label-exclude-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.plc-label-exclude-group {
    display: none;
}

.plc-label-group-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.plc-label-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    user-select: none;
}

.plc-label-include:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.plc-label-exclude:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.plc-label-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.plc-label-include input[type="checkbox"]:checked {
    accent-color: #28a745;
}

.plc-label-exclude input[type="checkbox"]:checked {
    accent-color: #dc3545;
}

.plc-no-labels {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
}

.plc-no-labels a {
    color: #1959A0;
    text-decoration: underline;
}

/* Quick Filter Buttons */
.plc-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 3px; /* Reduced from 4px to fit buttons on one line on mobile */
    margin: 0;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

/* Mobile: reduce quick filter margins */
@media (max-width: 768px) {
    .plc-quick-filters {
        margin: 0; /* No margin - very tight */
    }
}

.plc-quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Reduced from 5px to save more space */
    padding: 5px 8px; /* Reduced from 6px 10px to fit on one line on mobile */
    border-radius: 20px;
    font-size: 11px; /* Reduced from 12px to fit on one line on mobile */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
}

.plc-quick-filter input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Interclub - Yellow */
.plc-quick-interclub {
    background-color: #ffc107;
    color: #000;
}

.plc-quick-interclub:hover {
    background-color: #ffca28;
    border-color: #ff9800;
}

.plc-quick-interclub input[type="checkbox"]:checked {
    accent-color: #ff9800;
}

/* Meeting - Blue */
.plc-quick-meeting {
    background-color: #1959A0;
    color: #fff;
}

.plc-quick-meeting:hover {
    background-color: #1565C0;
    border-color: #0d47a1;
}

.plc-quick-meeting input[type="checkbox"]:checked {
    accent-color: #0d47a1;
}

/* Volunteer Opp - Purple */
.plc-quick-volunteer {
    background-color: #6f42c1;
    color: #fff;
}

.plc-quick-volunteer:hover {
    background-color: #7952cc;
    border-color: #5a32a3;
}

.plc-quick-volunteer input[type="checkbox"]:checked {
    accent-color: #5a32a3;
}

/* Donation Opp - Dark Green */
.plc-quick-donation {
    background-color: #1e7e34;
    color: #fff;
}

.plc-quick-donation:hover {
    background-color: #28a745;
    border-color: #1a6b2e;
}

.plc-quick-donation input[type="checkbox"]:checked {
    accent-color: #1a6b2e;
}

/* Filter Actions */
.plc-filter-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.plc-clear-filters {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 1s ease, visibility 1s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.plc-clear-filters.visible {
    opacity: 1;
    visibility: visible;
}

.plc-clear-filters:hover {
    background: rgba(220, 220, 220, 0.95);
    border-color: rgba(180, 180, 180, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.plc-clear-filters:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plc-event-count-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    min-height: 42px; /* Reserve space for event count to prevent layout shift */
}

.plc-event-count {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #1959A0;
    padding: 8px 16px;
    background: #fff;
    border-radius: 6px;
    border: none;
    opacity: 0;
    transition: opacity 1s ease;
    visibility: hidden; /* Hide but still take up space */
    min-width: 150px; /* Fixed width to prevent layout shift when count changes */
    text-align: center;
}

.plc-event-count.visible {
    opacity: 1;
    visibility: visible; /* Show when ready */
}

/* No Results Message */
.plc-no-results {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #856404;
    font-size: 18px;
    font-weight: 500;
}

/* Responsive Design for Search/Filter */
@media screen and (max-width: 768px) {
    .plc-search-filter-wrap {
        padding: 8px; /* Reduced from 10px to save space on mobile */
        margin-bottom: 8px; /* Reduced from 10px to save space */
        border-radius: 8px;
    }

    .plc-search-controls {
        gap: 8px; /* Reduced from 10px to save space */
    }

    /* Stack search input and button vertically on mobile */
    .plc-search-row {
        flex-direction: column;
        gap: 6px; /* Reduced from 8px to save space */
    }

    .plc-toggle-filters {
        width: 100%;
        justify-content: center;
        padding: 10px 20px; /* Reduced from 14px 24px to save height */
    }

    .plc-filters-container {
        padding-top: 10px; /* Reduced from 15px to save space */
        margin-top: 10px; /* Reduced from 15px to save space */
    }

    .plc-category-filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .plc-filter-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .plc-category-checkbox {
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .plc-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px; /* Reduced from 10px to save space */
    }

    .plc-clear-filters {
        width: 100%;
    }

    .plc-event-count {
        text-align: center;
    }

    /* Reduce event count wrap spacing on mobile */
    .plc-event-count-wrap {
        min-height: 36px; /* Reduced from 42px to save vertical space */
        gap: 10px; /* Reduced from 15px */
        margin: 5px 0; /* Reduced from 10px 0 */
    }
}

/* =================================================================
   CALENDAR DISPLAY
   ================================================================= */

.plc-calendar-wrap {
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.4s ease-in, min-height 0.3s ease-out;
    position: relative;
}

/* Event fade overlay disabled - causes issues with fading visible content */

.plc-calendar-wrap.loaded {
    opacity: 1;
}

.plc-calendar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Month grouping */
.plc-month-group {
    margin-bottom: 40px;
    overflow: visible;
}

.plc-month-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    /* Gold gradient always - only pop animation changes, no color/gradient changes */
    background: linear-gradient(to bottom, #e8f2ff 0%, #f0d060 100%);
    color: #1959A0 !important;
    padding: 20px 25px;
    border-radius: 8px;
    border: 2px solid #d4af37; /* Gold border */
    /* White fade ABOVE and BELOW header - prevents events from showing above, fades events scrolling below */
    box-shadow:
        0 -20px 0 20px rgba(255, 255, 255, 1),      /* Solid white above to block events */
        0 -40px 20px 0px rgba(255, 255, 255, 0.9),  /* Fade above */
        0 10px 0 10px rgba(255, 255, 255, 1),       /* Solid white below */
        0 30px 20px 0px rgba(255, 255, 255, 0.9),   /* Gradual fade below */
        0 4px 12px rgba(0, 0, 0, 0.2);              /* Depth shadow */
    margin-top: 5px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 28px;
    font-weight: 700;
    position: -webkit-sticky;
    position: sticky;
    top: 88px; /* Positioned below site header (80px) + 8px gap */
    z-index: 999;
    will-change: top;
}

.plc-month-header.sticky-pop {
    animation: stickyPop 0.3s ease-out;
}

.plc-month-header.is-sticky {
    background: linear-gradient(to bottom, #e8f2ff 0%, #f0d060 100%);
    border-color: #d4af37;
    transition: background 0.3s ease, border-color 0.3s ease;
    /* Add white fade effect above and below sticky header to hide scrolling events */
    box-shadow:
        0 -5px 0 5px rgba(255, 255, 255, 1),        /* Solid white 5px above */
        0 -10px 5px 0px rgba(255, 255, 255, 0.8),   /* Short fade above (not overlapping buttons) */
        0 5px 0 5px rgba(255, 255, 255, 1),         /* Shorter solid white 5px below */
        0 15px 10px 0px rgba(255, 255, 255, 1),     /* Shorter, more gradual fade below */
        0 4px 12px rgba(0, 0, 0, 0.2);              /* Original shadow for depth */
}

/* Account for WordPress admin bar if present (when logged in) */
.admin-bar .plc-month-header {
    top: 120px; /* 80px site header + 32px admin bar + 8px gap */
}


@media screen and (max-width: 782px) {
    .plc-month-header {
        top: 85px; /* Positioned below mobile navbar (84px tall) */
    }

    .admin-bar .plc-month-header {
        top: 131px; /* 85px mobile navbar + 46px mobile admin bar */
    }

}

/* Calendar icon before month header */
.plc-month-header::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231959A0"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Event card - Option 11 design with colored left border */
.plc-event-card {
    background: #f5f5f5;
    border: 2px solid transparent; /* Invisible border to prevent layout shift on hover */
    border-left: 6px solid #dee2e6; /* Default grey for uncategorized */
    border-radius: 8px;
    padding: 20px;
    padding-left: 8px; /* Reduced left padding to move date closer to edge */
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Admin quick-edit button */
.plc-admin-edit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #1959A0;
    background: white;
    color: #1959A0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.plc-admin-edit-btn:hover {
    background: #1959A0;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 89, 160, 0.4);
}

.plc-admin-edit-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.plc-event-card:hover {
    box-shadow: 0 4px 16px rgba(25, 89, 160, 0.2);
    transform: translateY(-2px);
}

/* =====================================================
   CATEGORY AND LABEL COLOR CODING
   Original colors restored - DO NOT CHANGE without approval
   ===================================================== */

/* CATEGORY COLORS (organizational type) */

/* Meeting - Blue (original) */
article.plc-event-card.plc-cat-meeting,
article.plc-event-card.plc-cat-meetings {
    border-left-color: #1959A0;
}

article.plc-event-card.plc-cat-meeting:hover,
article.plc-event-card.plc-cat-meetings:hover {
    border: 2px solid #1959A0;
    border-left: 6px solid #1959A0;
}

/* Volunteer - Purple (original) */
article.plc-event-card.plc-cat-volunteer {
    border-left-color: #6f42c1;
}

article.plc-event-card.plc-cat-volunteer:hover {
    border: 2px solid #6f42c1;
    border-left: 6px solid #6f42c1;
}

/* Event - Green (original) */
article.plc-event-card.plc-cat-event,
article.plc-event-card.plc-cat-events {
    border-left-color: #28a745;
}

article.plc-event-card.plc-cat-event:hover,
article.plc-event-card.plc-cat-events:hover {
    border: 2px solid #28a745;
    border-left: 6px solid #28a745;
}

/* Fundraiser - Gold */
article.plc-event-card.plc-cat-fundraiser,
article.plc-event-card.plc-cat-fundraisers {
    border-left-color: #d4af37;
}

article.plc-event-card.plc-cat-fundraiser:hover,
article.plc-event-card.plc-cat-fundraisers:hover {
    border: 2px solid #d4af37;
    border-left: 6px solid #d4af37;
}

/* Interclub - Yellow (original - when used as category) */
article.plc-event-card.plc-cat-interclub {
    border-left-color: #ffc107;
}

article.plc-event-card.plc-cat-interclub:hover {
    border: 2px solid #ffc107;
    border-left: 6px solid #ffc107;
}

/* Service Proj - Pink */
article.plc-event-card.plc-cat-service-proj {
    border-left-color: #ff69b4;
}

article.plc-event-card.plc-cat-service-proj:hover {
    border: 2px solid #ff69b4;
    border-left: 6px solid #ff69b4;
}

/* Flex container for date badge + content */
.plc-event-card-inner {
    display: flex;
    gap: 15px; /* Space between date and content */
    align-items: flex-start; /* Align date to top instead of center */
}

/* Date badge (left side) - minimal grey design */
.plc-date-badge {
    flex-shrink: 0;
    width: 75px; /* Increased from 65px to 75px */
    text-align: center;
    background: transparent;
    padding: 0;
    margin-top: -8px; /* Pull date badge up to align with title */
}

.plc-weekday {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
}

.plc-day {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.plc-day-suffix {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    vertical-align: super;
}

.plc-time {
    font-size: 13px; /* Increased from 11px to 13px */
    color: #555;
    margin-top: 2px;
}

/* Event content */
.plc-event-content {
    flex: 1;
}

.plc-event-title {
    font-size: 22px;
    font-weight: 700;
    color: #1959A0;
    margin: 0 0 4px 0;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(25, 89, 160, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    display: inline;
    transition: all 0.2s ease;
}

.plc-event-title:hover {
    text-decoration-color: #1959A0;
}

/* Arrow after title - Arrow A variation (➜) */
.plc-event-title::after {
    content: '\00A0\279C'; /* Non-breaking space + right arrow emoji */
    font-size: 20px;
    color: #1959A0;
}

.plc-event-time {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.plc-event-location {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    margin-top: 0;
    font-style: italic;
}

.plc-event-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Category badges */
.plc-event-categories {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.plc-category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category badge colors - match date badge colors */

/* Meeting badges - Blue */
.plc-category-badge[data-category="meeting"],
.plc-category-badge[data-category="meetings"] {
    background-color: #1959A0;
    color: #fff;
}

/* Event badges - Green */
.plc-category-badge[data-category="event"],
.plc-category-badge[data-category="events"] {
    background-color: #28a745;
    color: #fff;
}

/* Interclub badges - Yellow with black text */
.plc-category-badge[data-category="interclub"] {
    background-color: #ffc107;
    color: #000;
}

/* Volunteer badges - Purple */
.plc-category-badge[data-category="volunteer"],
.plc-category-badge[data-category="volunteer opportunity"] {
    background-color: #6f42c1;
    color: #fff;
}

/* Fundraiser badges - Gold */
.plc-category-badge[data-category="fundraiser"] {
    background-color: #d4af37;
    color: #fff;
}

/* Default category badge - Gray */
.plc-category-badge {
    background-color: #6c757d;
    color: #fff;
}

/* LABEL BADGES (pills next to category badges) */
.plc-label-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* Ticketed - Light Green with black text */
.plc-label-badge-ticketed {
    background-color: #90ee90;
    color: #000;
}

/* RSVP - White with black text */
.plc-label-badge-rsvp {
    background-color: #fff;
    color: #000;
}

/* Volunteer Opp - Purple */
.plc-label-badge-volunteer-opp {
    background-color: #6f42c1;
    color: #fff;
}

/* Donation Opp - Dark Green */
.plc-label-badge-donation-opp {
    background-color: #1e7e34;
    color: #fff;
}

/* Dinner - Pink with white text */
.plc-label-badge-dinner {
    background-color: #ff69b4;
    color: #fff;
}

/* Headcount Req - Black with white text */
.plc-label-badge-headcount-req {
    background-color: #000;
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Keep left-margin layout on mobile */
    .plc-event-card-inner {
        display: flex;
        gap: 12px; /* Slightly reduce gap on mobile */
    }

    .plc-date-badge {
        width: 55px; /* Slightly narrower on mobile */
    }

    .plc-weekday {
        font-size: 9px;
    }

    .plc-day {
        font-size: 24px; /* Slightly smaller on mobile */
    }

    .plc-day-suffix {
        font-size: 12px;
    }

    .plc-time {
        font-size: 10px;
    }

    .plc-event-title {
        font-size: 18px; /* Smaller title on mobile */
    }

    .plc-event-location {
        font-size: 13px;
    }

    .plc-event-description {
        font-size: 14px;
    }

    .plc-month-header {
        font-size: 24px;
        padding: 15px 20px;
        top: 104px; /* Mobile navbar (84px) + 20px gap */
    }

    .plc-month-header::before {
        width: 40px;
        height: 40px;
    }
}

/* Match Astra theme spacing */
.entry-content .plc-calendar-wrap {
    margin-top: 30px;
}

/* Ensure parent containers don't clip the sticky pop animation */
.entry-content,
.site-content,
.ast-container {
    overflow: visible !important;
}

/* MEC's built-in modal system handles all modal styling */

/* Subscribe button and modal - Location B: below search, above calendar */
.calendar-subscribe-button {
    background: #1959A0;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(25, 89, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    text-align: center;
}

.calendar-subscribe-button:hover {
    background: #2070BB;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 89, 160, 0.4);
}

/* Floating subscribe button - Location C: bottom-right corner */
.calendar-subscribe-floating {
    background: linear-gradient(135deg, #d4af37 0%, #e8c547 100%);
    color: #1959A0;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: fixed;
    bottom: 30px; /* Same height as scroll-to-top */
    right: 100px; /* To the left of scroll-to-top button (further left to avoid overlap) */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.calendar-subscribe-floating.visible {
    opacity: 1;
    visibility: visible;
}

.calendar-subscribe-floating:hover {
    background: linear-gradient(135deg, #e8c547 0%, #f0d060 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
}

.calendar-subscribe-floating .icon {
    font-size: 16px;
    background: rgba(25, 89, 160, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive for subscribe buttons */
@media (max-width: 768px) {
    .calendar-subscribe-button {
        font-size: 14px;
        padding: 10px 18px; /* Reduced from 12px 20px to save space */
        margin: 10px auto; /* Reduced from 15px auto to save space */
    }

    .calendar-subscribe-floating {
        bottom: 30px; /* Same height as scroll-to-top on mobile */
        right: 70px; /* To the left of scroll-to-top button on mobile */
        padding: 8px 16px;
        font-size: 11px;
        gap: 8px;
    }

    .calendar-subscribe-floating .icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* Extra small screens - smaller category and label badges */
@media (max-width: 400px) {
    .plc-category-badge,
    .plc-label-badge {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 10px;
        letter-spacing: 0.3px;
    }
}

.calendar-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.calendar-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.calendar-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.calendar-modal-close:hover,
.calendar-modal-close:focus {
    color: #000;
}

.calendar-modal h3 {
    margin-top: 0;
    color: #1959A0;
}

#iphoneInstructions,
#androidInstructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* =================================================================
   CALENDAR V3.0 - DATA ATTRIBUTES AND CONSTRAINTS
   ================================================================= */

/* Hide months with data-visible="false" (set by JavaScript) */
.plc-month-group[data-visible="false"] {
    display: none;
}

/* Style for disabled dropdown options */
.plc-month-filter option:disabled {
    color: #999;
    font-style: italic;
}

/* Month filter dropdowns */
.plc-month-filter-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.plc-month-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plc-month-range-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.plc-month-filter {
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.plc-month-filter:focus {
    outline: none;
    border-color: #1959A0;
    box-shadow: 0 0 0 3px rgba(25, 89, 160, 0.1);
}

.plc-month-filter:hover {
    border-color: #adb5bd;
}

/* Responsive adjustments for month filters */
@media screen and (max-width: 768px) {
    .plc-month-filter-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .plc-month-range-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .plc-month-filter {
        width: 100%;
    }
}

/* ================================================================
   MEC MODAL CLOSE BUTTON IMPROVEMENTS
   ================================================================

   MEC uses Lity lightbox. The structure is:
   .lity-wrap (container, position: relative)
     .lity-container (modal box)
       .lity-content (content)
       .lity-close (close button)

   Goal: Position close button on top-right corner of modal (not viewport).
   ================================================================ */

/* Make lity-wrap positioning context for close button */
.lity-wrap {
    position: relative !important;
}

/* Style and position the Lity close button */
.lity-close {
    /* Size and shape */
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    border-radius: 50% !important;

    /* Color scheme - red with white border */
    background: #dc3545 !important;
    color: white !important;
    border: 3px solid white !important;

    /* Shadow for visibility */
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;

    /* Position - absolute relative to .lity-wrap, top-right of modal */
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    z-index: 9999 !important;

    /* Font styling - center the X */
    font-size: 32px !important;
    font-weight: bold !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;

    /* Animation */
    transition: all 0.2s ease !important;
    cursor: pointer !important;

    /* Remove default opacity */
    opacity: 1 !important;
}

.lity-close:hover {
    background: #c82333 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.5) !important;
    opacity: 1 !important;
}

/* =================================================================
   CUSTOM MODAL - Clean replacement for MEC's broken Lity modal
   ================================================================= */

.plc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plc-modal-overlay.plc-modal-visible {
    opacity: 1;
}

.plc-modal {
    background: white;
    border-radius: 8px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.plc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #dc3545;
    color: white;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plc-modal-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.plc-modal-content {
    padding: 60px 40px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

@media screen and (max-width: 768px) {
    .plc-modal {
        width: 95%;
        max-height: 95vh;
    }

    .plc-modal-content {
        padding: 50px 20px 20px;
    }
}

/* Loading state - fixed size while content loads */
.plc-modal-content.plc-modal-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner animation */
.plc-modal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(25, 89, 160, 0.2);
    border-top-color: #1959A0;
    border-radius: 50%;
    animation: plc-spin 0.8s linear infinite;
}

@keyframes plc-spin {
    to { transform: rotate(360deg); }
}

/* Hidden modal state - invisible until content loads */
.plc-modal.plc-modal-hidden {
    opacity: 0;
    transform: scale(0.9);
}

/* Spinner centered in overlay (not inside modal) */
/* Using margin instead of transform to avoid conflict with rotation */
.plc-modal-overlay > .plc-modal-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px; /* Half of spinner height (50px) */
    margin-left: -25px; /* Half of spinner width (50px) */
    z-index: 1000000;
}

/* =================================================================
   ADMIN QUICK-EDIT MODAL
   ================================================================= */

.plc-admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    /* Prevent modal from creating new containing block for sticky elements */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.plc-admin-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

.plc-admin-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plc-admin-modal-header {
    background: linear-gradient(135deg, #1959A0 0%, #2070BB 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plc-admin-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.plc-admin-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.plc-admin-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.plc-admin-modal-body {
    padding: 30px;
}

.plc-admin-form-group {
    margin-bottom: 20px;
}

.plc-admin-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
}

/* Add New Location/Organizer button */
.plc-add-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: #1959A0;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    padding: 0;
}

.plc-add-new-btn:hover {
    background: #144a7d;
    text-decoration: none;
}

.plc-add-new-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Refresh Location/Organizer button */
.plc-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    padding: 0;
}

.plc-refresh-btn:hover:not(:disabled) {
    background: #218838;
}

.plc-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plc-refresh-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Spinning animation for refresh button */
.plc-spin {
    animation: plc-spin-animation 0.8s linear infinite;
}

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

.plc-admin-form-group input[type="text"],
.plc-admin-form-group textarea,
.plc-admin-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.2s ease;
}

.plc-admin-form-group input[type="text"]:focus,
.plc-admin-form-group textarea:focus,
.plc-admin-form-group select:focus {
    outline: none;
    border-color: #1959A0;
    box-shadow: 0 0 0 3px rgba(25, 89, 160, 0.1);
}

.plc-admin-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.plc-admin-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.plc-admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    user-select: none;
}

.plc-admin-checkbox-label:hover {
    border-color: #1959A0;
    background: #f0f7ff;
}

.plc-admin-checkbox-label input[type="checkbox"] {
    margin: 0 !important;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.plc-admin-checkbox-label input[type="checkbox"]:checked {
    accent-color: #1959A0;
}

.plc-admin-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.plc-admin-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.plc-admin-radio-label:hover {
    border-color: #1959A0;
    background: #f0f7ff;
}

.plc-admin-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.plc-admin-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #1959A0;
}

.plc-admin-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.plc-admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plc-admin-btn-primary {
    background: #1959A0;
    color: white;
}

.plc-admin-btn-primary:hover {
    background: #14477a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 89, 160, 0.3);
}

.plc-admin-btn-secondary {
    background: #6c757d;
    color: white;
}

.plc-admin-btn-secondary:hover {
    background: #5a6268;
}

.plc-admin-btn-link {
    background: transparent;
    color: #1959A0;
    text-decoration: underline;
    padding: 10px 16px;
}

.plc-admin-btn-link:hover {
    color: #14477a;
    background: #f0f7ff;
}

.plc-admin-loading {
    display: none;
    text-align: center;
    padding: 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plc-admin-loading.active {
    display: flex;
}

.plc-admin-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(25, 89, 160, 0.2);
    border-top-color: #1959A0;
    border-radius: 50%;
    animation: plc-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

.plc-admin-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    display: none;
}

.plc-admin-success.active {
    display: block;
}

.plc-admin-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    display: none;
}

.plc-admin-error.active {
    display: block;
}

/* Inline Add New Forms */
.plc-inline-add-form {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #1959A0;
    border-radius: 6px;
}

.plc-inline-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.plc-inline-form-header strong {
    color: #1959A0;
    font-size: 15px;
}

.plc-inline-form-cancel {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.plc-inline-form-cancel:hover {
    color: #d32f2f;
}

.plc-inline-form-field {
    margin-bottom: 12px;
}

.plc-inline-form-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.plc-inline-form-field input[type="text"],
.plc-inline-form-field input[type="email"],
.plc-inline-form-field input[type="tel"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.plc-inline-form-field input[type="checkbox"] {
    margin-right: 6px;
}

.plc-inline-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.plc-inline-form-row .plc-inline-form-field {
    flex: 1;
    margin-bottom: 0;
}

.plc-inline-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.plc-btn-primary {
    background: #1959A0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.plc-btn-primary:hover:not(:disabled) {
    background: #144a7d;
}

.plc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plc-btn-secondary {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.plc-btn-secondary:hover:not(:disabled) {
    background: #218838;
}

.plc-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plc-inline-form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.plc-success-msg {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

@media screen and (max-width: 768px) {
    .plc-admin-modal-content {
        max-width: 100%;
    }

    .plc-admin-modal-header,
    .plc-admin-modal-body,
    .plc-admin-modal-footer {
        padding: 20px;
    }

    .plc-admin-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .plc-admin-btn {
        width: 100%;
    }
}

/* =================================================================
   EVENT STATUS INDICATORS
   ================================================================= */

/* Status color coding for event cards */
.plc-event-card.plc-status-cancelled {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.plc-event-card.plc-status-cancelled .plc-event-title {
    color: #dc3545;
}

.plc-event-card.plc-status-rescheduled {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.plc-event-card.plc-status-rescheduled .plc-event-title {
    color: #dc3545;
}

.plc-event-card.plc-status-postponed {
    border-left: 4px solid #ffc107;
    background-color: #fffbf0;
}

/* Status reason text */
.plc-event-status-reason {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Reschedule info */
.plc-event-reschedule-info {
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}