@charset "UTF-8";
.calendar {
  /* Pretty Month Grid (3×6, 18 months) */
  /* kill any smooth scroll in events panel */
  /* Calendar Styles */
  /* Updated Calendar Header - Combined Date Selector */
  /* Tooltip styles */
  /* Combined Date Dropdown Styles */
  /* Scrollbar for dropdown */
  /* Scrollbar for dropdown */
  /* Events Panel Styles */
  /* Events Container Height Matching */
  /* Month Header Styles for Events */
  /* FIXED: Event Description Overflow */
  /* Ticket Link Styling */
  /* Scrollbar Styling for Events List */
  /* File Upload Styles */
  /* Event Modal */
  /* Theme Color Classes */
  /* Default theme if none specified */ }
  .calendar .app-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px; }
  .calendar .date-dropdown.month-grid.pretty {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: .75rem;
    padding: .75rem;
    max-height: 70vh;
    overflow: auto;
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06); }
  .calendar .date-dropdown .month-grid-header {
    grid-column: 1/-1;
    font-weight: 700;
    font-size: .95rem;
    color: #374151;
    margin: .25rem 0 .5rem; }
  .calendar .date-dropdown .month-cell {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: .85rem .9rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
    font-size: .95rem;
    line-height: 1.1;
    transition: transform .06s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease; }
  .calendar .date-dropdown .month-cell:hover {
    background: #fff;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }
  .calendar .date-dropdown .month-cell.current {
    border-color: #5F7DC1;
    box-shadow: 0 0 0 2px rgba(95, 125, 193, 0.18);
    background: linear-gradient(0deg, #fff, #f3f6ff);
    font-weight: 700; }
  .calendar #eventsList {
    scroll-behavior: auto !important;
    overflow-anchor: none;
    position: relative; }
  @media (max-width: 520px) {
    .calendar .date-dropdown.month-grid.pretty {
      grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
  .calendar .month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: .5rem;
    padding: .5rem;
    max-height: 60vh;
    overflow: auto; }
  .calendar .month-grid button {
    display: block;
    width: 100%;
    text-align: left;
    padding: .6rem .8rem;
    border: 1px solid #ddd;
    border-radius: .5rem;
    background: #fff;
    line-height: 1.2;
    cursor: pointer; }
  .calendar .month-grid button:hover {
    background: #f4f6f8; }
  @media (max-width: 768px) {
    .calendar {
      /* Make calendar more compact on mobile */
      /* Hide event text on mobile - too cluttered */
      /* Make events section MUCH larger and more readable on mobile */
      /* Mobile modal adjustments */
      /* Mobile dropdown adjustments */ }
      .calendar .app-layout {
        grid-template-columns: 1fr; }
      .calendar .container {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden; }
      .calendar .calendar-container {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden; }
      .calendar .calendar-header {
        margin-bottom: 20px;
        max-width: 100%;
        flex-direction: row; }
      .calendar .date-selector span {
        font-size: 20px; }
      .calendar .weekdays {
        margin-bottom: 15px;
        max-width: 100%; }
      .calendar .weekday {
        font-size: 12px;
        padding: 5px;
        text-align: center; }
      .calendar .calendar-grid {
        max-width: 100%; }
      .calendar .day-cell {
        min-height: 50px;
        padding: 4px;
        word-wrap: break-word;
        overflow: hidden; }
      .calendar .day-number {
        font-size: 16px;
        margin-bottom: 2px; }
      .calendar .event-text {
        display: none; }
      .calendar .event-dot {
        width: 4px;
        height: 4px;
        margin: 1px 0; }
      .calendar .events-panel {
        padding: 20px;
        max-height: none;
        margin-top: 15px;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word; }
      .calendar .events-title {
        font-size: 32px;
        margin-bottom: 8px;
        word-wrap: break-word; }
      .calendar .events-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
        word-wrap: break-word; }
      .calendar .filters {
        margin-bottom: 25px;
        max-width: 100%; }
      .calendar .filter-section {
        margin-bottom: 20px;
        max-width: 100%; }
      .calendar .filter-label {
        font-size: 14px;
        margin-bottom: 10px; }
      .calendar .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%; }
      .calendar .filter-button {
        padding: 10px 16px;
        font-size: 14px;
        margin-bottom: 8px;
        flex-shrink: 0; }
      .calendar .event-item {
        padding: 20px;
        margin-bottom: 20px;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word; }
      .calendar .event-header {
        display: flex;
        align-items: flex-start;
        width: 100%;
        max-width: 100%; }
      .calendar .event-date-box {
        width: 45px;
        height: 55px;
        font-size: 18px;
        margin-right: 15px;
        flex-shrink: 0; }
      .calendar .event-details {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word; }
      .calendar .event-day {
        font-size: 12px;
        margin-bottom: 4px; }
      .calendar .event-title {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word; }
      .calendar .event-time {
        font-size: 14px;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word; }
      .calendar .event-description {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden; }
      .calendar .event-location {
        font-size: 14px;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word; }
      .calendar .event-price {
        font-size: 14px;
        font-weight: 600;
        word-wrap: break-word; }
      .calendar .clear-selection {
        font-size: 14px; }
      .calendar .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
        max-width: 95%;
        word-wrap: break-word;
        overflow-wrap: break-word; }
      .calendar .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
        word-wrap: break-word; }
      .calendar .modal-content div {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important; }
      .calendar .event-link {
        font-size: 14px !important;
        padding: 8px 12px !important;
        word-wrap: break-word; }
      .calendar .date-dropdown {
        min-width: 120px;
        max-height: 200px;
        left: 10px !important;
        right: 10px;
        width: auto !important; }
      .calendar .dropdown-option {
        padding: 10px 12px;
        font-size: 13px; }
      .calendar .month-header {
        padding: 12px 15px;
        font-size: 16px;
        margin: 15px 0 0 0; } }
  .calendar .calendar-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
  .calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px; }
  .calendar .nav-arrow {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease; }
    .calendar .nav-arrow:hover {
      color: #5F7DC1;
      background-color: #f0f4ff; }
  .calendar .date-selector {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; }
    .calendar .date-selector span {
      font-size: 24px;
      font-weight: 300;
      color: #666;
      cursor: pointer;
      position: relative;
      transition: color 0.2s ease;
      padding: 10px 20px;
      border-radius: 8px; }
      .calendar .date-selector span:hover {
        color: #5F7DC1;
        background-color: #f0f4ff; }
  .calendar .weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px; }
  .calendar .weekday {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    padding: 10px; }
  .calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    position: relative;
    overflow: hidden; }
  .calendar .day-cell {
    min-height: 60px;
    border-radius: 5px;
    position: relative;
    cursor: pointer; }
    .calendar .day-cell.other-month {
      color: #ddd; }
    .calendar .day-cell.today {
      background: #e3f2fd;
      border: 2px solid #5F7DC1; }
    .calendar .day-cell.selected {
      background: #ffefcc !important;
      color: #333;
      border: 2px solid #f4d03f; }
      .calendar .day-cell.selected .day-number {
        color: #333; }
      .calendar .day-cell.selected .event-text {
        color: #333 !important; }
      .calendar .day-cell.selected:hover {
        background: #ffe6b8 !important; }
    .calendar .day-cell:hover {
      background: #f5f5f5; }
  .calendar .day-number {
    font-size: 18px;
    margin-bottom: 5px;
    text-align: right; }
  .calendar .event-container {
    display: flex;
    align-items: center;
    margin: 2px 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease; }
    .calendar .event-container:hover {
      transform: scale(1.05); }
      .calendar .event-container:hover .tooltip {
        opacity: 1; }
  .calendar .event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0; }
  .calendar .event-text {
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1; }
  .calendar .tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px; }
    .calendar .tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 4px solid transparent;
      border-top-color: rgba(0, 0, 0, 0.9); }
    .calendar .tooltip.show {
      opacity: 1; }
  .calendar .date-dropdown {
    position: fixed;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    min-width: 200px;
    max-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.3s ease;
    backdrop-filter: blur(10px); }

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95); }
  to {
    opacity: 1;
    transform: translateY(0) scale(1); } }
  .calendar .dropdown-option {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    background: rgba(255, 255, 255, 0.8);
    margin: 2px;
    border-radius: 6px; }
    .calendar .dropdown-option:last-child {
      border-bottom: none; }
    .calendar .dropdown-option:hover {
      background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
      color: #1976d2;
      transform: translateX(3px);
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15); }
    .calendar .dropdown-option.current {
      background: linear-gradient(135deg, #5F7DC1 0%, #4a6ba8 100%);
      color: white;
      font-weight: 700;
      box-shadow: 0 3px 12px rgba(95, 125, 193, 0.3); }
      .calendar .dropdown-option.current:hover {
        background: linear-gradient(135deg, #4a6ba8 0%, #3d5a94 100%);
        color: white;
        transform: translateX(1px); }
  .calendar .date-dropdown::-webkit-scrollbar {
    width: 8px; }
  .calendar .date-dropdown::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 4px; }
  .calendar .date-dropdown::-webkit-scrollbar-thumb {
    background: rgba(95, 125, 193, 0.7);
    border-radius: 4px; }
    .calendar .date-dropdown::-webkit-scrollbar-thumb:hover {
      background: rgba(95, 125, 193, 0.9); }
  .calendar .date-dropdown::-webkit-scrollbar {
    width: 6px; }
  .calendar .date-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px; }
  .calendar .date-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px; }
    .calendar .date-dropdown::-webkit-scrollbar-thumb:hover {
      background: #a1a1a1; }
  .calendar .events-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; }
  @media (min-width: 769px) {
    .calendar .calendar-container, .calendar .events-panel {
      height: calc(100vh - 200px);
      min-height: 700px; }
    .calendar #eventsList {
      flex: 1;
      overflow-y: auto;
      padding-bottom: 20px;
      scroll-behavior: smooth; } }
  .calendar .events-header {
    margin-bottom: 20px; }
  .calendar .events-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; }
  .calendar .clear-selection {
    font-size: 12px;
    color: #9E1C33;
    cursor: pointer;
    text-decoration: underline; }
    .calendar .clear-selection:hover {
      color: #7d1529; }
  .calendar .events-title {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    margin-bottom: 5px; }
  .calendar .events-subtitle {
    font-size: 16px;
    color: #aaa; }
  .calendar .month-header {
    position: static;
    top: auto;
    background: linear-gradient(135deg, #5F7DC1 0%, #4a6ba8 100%);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 100;
    border-radius: 8px 8px 0 0;
    margin: 20px 0 0 0;
    box-shadow: 0 2px 10px rgba(95, 125, 193, 0.2); }
    .calendar .month-header:first-child {
      margin-top: 0; }
  .calendar .filters {
    margin-bottom: 20px; }
  .calendar .filter-section {
    margin-bottom: 15px; }
  .calendar .filter-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500; }
  .calendar .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px; }
  .calendar .filter-button {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease; }
    .calendar .filter-button.active {
      background: #9E1C33;
      color: white;
      border-color: #9E1C33; }
    .calendar .filter-button:hover {
      border-color: #9E1C33; }
  .calendar .filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px; }
  .calendar .event-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    animation: fadeInUp 0.3s ease forwards; }
    .calendar .event-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
    .calendar .event-item.past-event {
      opacity: 0.6;
      filter: grayscale(50%); }
      .calendar .event-item.past-event .event-date-box {
        background-color: #cccccc !important;
        color: #666 !important; }
      .calendar .event-item.past-event .event-title,
      .calendar .event-item.past-event .event-day,
      .calendar .event-item.past-event .event-time,
      .calendar .event-item.past-event .event-description,
      .calendar .event-item.past-event .event-location,
      .calendar .event-item.past-event .event-price {
        color: #999 !important; }
      .calendar .event-item.past-event:hover {
        transform: none;
        box-shadow: none; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px); }
  to {
    opacity: 1;
    transform: translateY(0); } }
  .calendar .event-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px; }
  .calendar .event-date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
  .calendar .event-details {
    flex: 1;
    padding-left: 15px;
    min-width: 0;
    /* Important for flex shrinking */
    max-width: calc(100% - 90px);
    /* Account for date box + margin */ }
  .calendar .event-day {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 2px; }
  .calendar .event-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; }
  .calendar .event-time {
    font-size: 14px;
    color: #5F7DC1;
    font-weight: 500;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word; }
  .calendar .event-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-overflow: ellipsis; }
  .calendar .event-location {
    color: #777;
    font-size: 13px;
    font-weight: 500;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word; }
  .calendar .event-price {
    color: #5F7DC1;
    font-weight: 600;
    font-size: 14px;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word; }
  .calendar .event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px; }
  .calendar .event-link {
    display: inline-block;
    padding: 8px 16px;
    background: #5F7DC1;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease; }
    .calendar .event-link:hover {
      background: #4a6ba8; }
  .calendar .ticket-link {
    background: linear-gradient(135deg, #FDB913 0%, #f4a702 100%) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(253, 185, 19, 0.3) !important;
    transition: all 0.2s ease !important; }
    .calendar .ticket-link:hover {
      background: linear-gradient(135deg, #f4a702 0%, #e09600 100%) !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 5px 15px rgba(253, 185, 19, 0.4) !important; }
  .calendar .no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    font-weight: 300;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px;
    border: 2px dashed #dee2e6; }
  .calendar #eventsList::-webkit-scrollbar {
    width: 8px; }
  .calendar #eventsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px; }
  .calendar #eventsList::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px; }
    .calendar #eventsList::-webkit-scrollbar-thumb:hover {
      background: #a1a1a1; }
  .calendar .file-upload {
    margin-bottom: 20px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer; }
    .calendar .file-upload:hover {
      border-color: #9E1C33; }
    .calendar .file-upload input {
      display: none; }
  .calendar .upload-text {
    color: #666;
    font-size: 14px; }
  .calendar .modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease; }
    .calendar .modal.show {
      opacity: 1; }
      .calendar .modal.show .modal-content {
        transform: scale(1); }
  .calendar .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    /* Fixed modal text overflow */ }
    .calendar .modal-content img {
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
    .calendar .modal-content div {
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
      max-width: 100%; }
  .calendar .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; }
  .calendar .modal-title {
    font-size: 20px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90%; }
  .calendar .close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa; }
    .calendar .close:hover {
      color: #000; }
  .calendar .theme-conference {
    --theme-color: #9E1C33; }
  .calendar .theme-career {
    --theme-color: #FF9800; }
  .calendar .theme-demo {
    --theme-color: #2196F3; }
  .calendar .theme-meetup {
    --theme-color: #4CAF50; }
  .calendar .theme-market {
    --theme-color: #9C27B0; }
  .calendar .theme-workshop {
    --theme-color: #FF5722; }
  .calendar .theme-networking {
    --theme-color: #607D8B; }
  .calendar .theme-festival {
    --theme-color: #E91E63; }
  .calendar .theme-default {
    --theme-color: #666666; }
  @media (max-width: 1000px) {
    .calendar .event-description {
      display: none; } }

/* Mobile-friendly month dropdown */
#monthBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99998;
  display: none; }

#monthDropdown {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  max-height: 70vh;
  overflow: auto;
  padding: 10px; }

#monthDropdown .md-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 4px 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px; }

#monthDropdown .md-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(140px, 1fr)); }

#monthDropdown .md-btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 48px;
  /* comfy tap target */ }

#monthDropdown .md-btn.is-current {
  border-color: #5F7DC1;
  background: linear-gradient(0deg, #fff, #f3f6ff);
  font-weight: 700; }

#monthDropdown .md-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer; }

/* Bottom sheet on small screens */
@media (max-width: 640px) {
  #monthDropdown {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    max-height: 65vh;
    padding: 12px 12px 16px; }
  #monthDropdown .md-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr)); } }

@media (max-width: 400px) {
  #monthDropdown .md-grid {
    grid-template-columns: 1fr; } }

/* Backdrop */
#monthBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99998;
  display: none; }

/* Dropdown container (shared base) */
#monthDropdown {
  z-index: 99999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  max-height: 70vh;
  overflow: auto;
  padding: 10px; }

/* Desktop popover mode (positioned via CSS variables) */
#monthDropdown.as-popover {
  position: fixed;
  top: var(--dd-top, 0px);
  left: var(--dd-left, 0px);
  min-width: var(--dd-minw, 240px); }

/* Mobile bottom-sheet mode */
#monthDropdown.as-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
  max-height: 65vh;
  padding: 12px 12px 16px; }

.body-no-scroll {
  overflow: hidden; }

/* Header */
#monthDropdown .md-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 4px 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px; }

#monthDropdown .md-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer; }

/* Grid */
#monthDropdown .md-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(140px, 1fr)); }

@media (max-width: 640px) {
  #monthDropdown .md-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr)); } }

@media (max-width: 400px) {
  #monthDropdown .md-grid {
    grid-template-columns: 1fr; } }

/* Buttons */
#monthDropdown .md-btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 48px;
  /* comfy tap target */
  transition: transform .1s ease, background .1s ease; }

#monthDropdown .md-btn:hover {
  background: #fff;
  transform: translateY(-1px); }

#monthDropdown .md-btn.is-current {
  border-color: #5F7DC1;
  background: linear-gradient(0deg, #fff, #f3f6ff);
  font-weight: 700; }
