/* Style dla komponentów kalendarza przy użyciu FullCalendar */

/* Top container styling for date filters */
.top-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-header {
    margin-bottom: 1.5rem;
}



.top-header-description {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 500;
}

.top-search {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-search .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.top-search .form-control {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.top-search .form-control:focus {
    border-color: #003d7c;
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.25);
    outline: none;
}

.top-search .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.top-search .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.top-search .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.25);
    outline: none;
}

/* Responsive design for date filters */
@media (max-width: 768px) {
    .top-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .top-search {
        padding: 1rem;
    }
    
    .top-search .row {
        row-gap: 1rem !important;
    }
    
    .top-search .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .top-search .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .top-search .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .top-header h1 {
        font-size: 1.75rem;
    }
    
    .top-header-description {
        font-size: 1rem;
    }
}

/* Basic calendar container styling */
#wydarzenia-calendar {
    min-height: 400px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Ensure FullCalendar is visible */
.fc {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.fc-theme-standard {
    --fc-border-color: #ddd;
    --fc-button-bg-color: #003d7c;
    --fc-button-border-color: #003d7c;
    --fc-button-hover-bg-color: #002d5c;
    --fc-button-hover-border-color: #002d5c;
    --fc-button-active-bg-color: #002d5c;
    --fc-button-active-border-color: #002d5c;
    --fc-event-bg-color: #003d7c;
    --fc-event-border-color: #003d7c;
    --fc-event-text-color: #ffffff;
}

/* Ensure calendar table is visible */
.fc table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.fc td, .fc th {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: center;
}

.fc th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Kolory dla przycisków */
.fc .fc-button {
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Szczególnie wyraźne przyciski nawigacyjne */
.fc .fc-prev-button, .fc .fc-next-button {
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    background-color: #003d7c;
    border-color: #003d7c;
    color: #ffffff;
    border-width: 2px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fc .fc-prev-button:hover, .fc .fc-next-button:hover {
    background-color: #002959;
    border-color: #002959;
    transform: scale(1.05);
}

/* SVG w przyciskach nawigacji */
.fc .fc-prev-button svg, .fc .fc-next-button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fc .fc-button-primary {
    background-color: var(--primary-color, #003d7c);
    border-color: var(--primary-color, #003d7c);
    color: #ffffff; /* Zapewnia kontrast WCAG AAA */
}

.fc .fc-button-primary:hover {
    background-color: #002d5c;
    border-color: #002d5c;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #002d5c;
    border-color: #002d5c;
}

/* Wyróżnienie dzisiejszego dnia */
.fc-daygrid-day.fc-day-today {
    background-color: rgba(0, 61, 124, 0.15); /* Silniejszy kontrast */
}

/* Nagłówki kalendarza */
.fc-col-header-cell {
    background-color: #f8f9fa;
}

.fc-col-header-cell a {
    color: #212529; /* Dobry kontrast z białym tłem */
    font-weight: 600;
}

/* Wydarzenia w kalendarzu */
.fc-event {
    border-radius: 3px;
    font-weight: 500;
}

.fc-event-title {
    font-weight: 600;
}

.fc-event-time {
    font-weight: 500;
}

/* Stylowanie panelu z konferencjami */
.event-list {
    max-height: 500px;
    overflow-y: auto;
}

.event-item {
    border-left: 4px solid; /* Grubsza linia dla lepszej widoczności */
    padding-left: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item.external {
    border-left-color: #495057; /* Ciemniejszy szary dla lepszego kontrastu */
}

.event-item.local {
    border-left-color: var(--primary-color, #003d7c);
}

.event-item h6 {
    color: #212529; /* Ciemniejszy tekst dla lepszego kontrastu */
}

.event-item .text-muted {
    color: #495057 !important; /* Ciemniejszy odcień szarego dla lepszego kontrastu */
}

/* Przyciski szczegółów - zwiększony kontrast */
.btn-outline-primary {
    color: #ffffff;
    background-color: #003d7c;
    border-color: #003d7c;
    border-width: 2px;
    font-weight: 700;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    color: #ffffff;
    background-color: #002959;
    border-color: #002959;
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.4);
}

.btn-outline-secondary {
    color: #ffffff;
    background-color: #343a40;
    border-color: #343a40;
    border-width: 2px;
    font-weight: 700;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #212529;
    border-color: #212529;
    box-shadow: 0 0 0 0.25rem rgba(52, 58, 64, 0.4);
}

/* Przyciski szczegółów w konferencjach */
.event-item .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-width: 2px;
    min-width: 110px;
    text-align: center;
    transition: all 0.2s ease;
}

/* Przyciski szczegółów konferencji - specyficzne style */
.event-item .btn-outline-primary,
.event-item .btn-outline-secondary {
    color: #ffffff;
    border-width: 2px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-color: #ffffff;
}

.event-item .btn-outline-primary {
    background-color: #003d7c;
}

.event-item .btn-outline-secondary {
    background-color: #343a40;
}

.event-item .btn-outline-primary:hover, 
.event-item .btn-outline-primary:focus,
.event-item .btn-outline-secondary:hover,
.event-item .btn-outline-secondary:focus {
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.event-item .btn-outline-primary:hover,
.event-item .btn-outline-primary:focus {
    background-color: #002959;
}

.event-item .btn-outline-secondary:hover,
.event-item .btn-outline-secondary:focus {
    background-color: #212529;
}

/* Dostępność */
.fc-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.5);
    outline: 2px solid #003d7c; /* Wyraźniejszy outline dla fokusa */
    outline-offset: 2px;
    transform: scale(1.05);
}

.fc-daygrid-day:focus-within {
    outline: 2px solid var(--primary-color, #003d7c);
    outline-offset: -2px;
}

.fc-event:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #003d7c;
}

/* Style dla trybu wysokiego kontrastu */
@media (forced-colors: active) {
    .fc-daygrid-day.fc-day-today {
        border: 2px solid CanvasText;
    }
    
    .fc-event {
        border: 1px solid CanvasText;
    }
    
    .fc-button {
        border: 1px solid CanvasText;
    }
}

/* Przełącznik widoków */
.view-toggle {
    margin-bottom: 1.5rem;
}

.view-toggle .btn-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-toggle .btn {
    padding: 0.5rem 1rem;
    border-width: 1px; /* Zwiększona grubość obramowania dla lepszej widoczności */
}

.view-toggle .btn.active {
    background-color: var(--primary-color, #003d7c);
    color: white;
    border-color: var(--primary-color, #003d7c);
    font-weight: 500;
}

/* Alerty */
.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298; /* Ciemniejszy kolor tekstu dla spełnienia standardów kontrastu */
}

/* Style responsywne */
@media (max-width: 992px) {
    .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
    }
    
    .fc-toolbar-chunk {
        margin-bottom: 0.5rem;
    }
    
  
    
    /* Większe przyciski na urządzeniach mobilnych dla łatwiejszego kliknięcia */
    .fc-button {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
}

/* Tytuł kalendarza - wycentrowany i wyraźny */
.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    padding: 0 0.5rem;
}

/* Wyraźniejszy kontrast dla przycisków Today i przełączania widoków */
.fc .fc-today-button, 
.fc .fc-dayGridMonth-button, 
.fc .fc-listMonth-button {
    font-weight: 600;
    border-width: 2px;
    margin-left: 5px;
}

/* Animacja dla nawigacji kalendarza */
.fc .fc-prev-button, .fc .fc-next-button {
    transition: all 0.2s ease;
}

.fc .fc-prev-button:active, .fc .fc-next-button:active {
    transform: scale(0.95);
}

/* Poprawki dla dostępności */
.skip-link:focus {
    top: 0;
    background-color: #003d7c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
}

/* Ukryj ikony, które mogą być puste */
.fc-button .fa, .fc-icon {
    display: none !important;
}

/* Przycisk powrotu do listy */
.back-to-list {
    background-color: #003d7c;
    color: white;
    border-color: white;
    border-width: 2px;
    font-weight: 700;
    padding: 0.6rem 1rem;
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.back-to-list:hover,
.back-to-list:focus {
    background-color: #002959;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-list i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

#calendar-events-title {
    margin-top: 1rem;
    text-align: center ;
}

/* Poprawione rozmieszczenie przycisków w górnym pasku */
.fc-header-toolbar.fc-toolbar {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Przycisk "Dzisiaj" z marginesem */
.fc .fc-today-button {
    margin-left: 0.75rem !important;
    margin-right: 0.5rem !important;
}

/* Poprawka na układ na urządzeniach mobilnych */
@media (max-width: 768px) {
    .fc-header-toolbar.fc-toolbar {
        flex-direction: column;
    }
    
    .fc-toolbar-chunk {
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* Przełącznik widoków - styl zgodny z all_conferences.html */
.view-toggle .btn-outline-primary {
    background-color: transparent;
    color: #003d7c;
    border-color: #003d7c;
    border-width: 1px;
    font-weight: 400;
    text-shadow: none;
}

.view-toggle .btn-outline-primary:hover {
    background-color: rgba(0, 61, 124, 0.1);
    color: #003d7c;
    border-color: #003d7c;
    transform: none;
    box-shadow: none;
}

.view-toggle .btn-outline-primary.active {
    background-color: #003d7c;
    color: white;
    border-color: #003d7c;
    font-weight: 400;
}

/* Przyciski niestandardowe dla konferencji */
.btn-custom-primary,
.btn-custom-primary.btn-sm {
    color: #fff !important;
    background-color: #00204a !important; /* darker blue for higher contrast */
    font-size: 1.25rem; /* 1.25rem for .display-6 size */
    line-height: 1.2;
    padding: 0.5rem 1.2rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.conference-event-item {
    border-left: 4px solid #dee2e6; /* fallback color */
    padding-left: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.btn-custom-primary.btn-sm {
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
}

.btn-custom-primary:focus, .btn-custom-primary.btn-sm:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem #003d7c;
}

.btn-custom-primary:hover, .btn-custom-primary:active, .btn-custom-primary:focus {
    background-color: #00122a !important;
    color: #fff !important;
    border-color: #fff !important;
}

.btn-custom-secondary,
.btn-custom-secondary.btn-sm {
    color: #fff !important;
    background-color: #23272b !important; /* darker gray for higher contrast */
    border-color: #fff !important;
    border-width: 2px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 1.25rem;
    line-height: 1.2;
    padding: 0.5rem 1.2rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-custom-secondary.btn-sm {
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
}

.btn-custom-secondary:focus, .btn-custom-secondary.btn-sm:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem #23272b;
}

.btn-custom-secondary:hover, .btn-custom-secondary:active, .btn-custom-secondary:focus {
    background-color: #111214 !important;
    color: #fff !important;
    border-color: #fff !important;
}

:root {
    --primary-color: #003d7c;
    --danger-color: #dc3545;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

.view-toggle {
    margin-bottom: 1.5rem;
}

.view-toggle .btn-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-toggle .btn {
    padding: 0.5rem 1rem;
}

#calendar-conferences-list {
    margin-top: 1.5rem;
}

#calendar-conferences-list .list-group-item {
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

#calendar-conferences-list .list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(0, 61, 124, 0.05);
}

.fc-event {
    cursor: pointer;
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #002d5c;
    border-color: #002d5c;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(0, 61, 124, 0.1);
}

.event-list {
    max-height: 500px;
    overflow-y: auto;
}

.event-item {
    border-left: 3px solid;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.event-item.external {
    border-left-color: var(--secondary-color-button);
}

.event-item.local {
    border-left-color: var(--primary-color);
}

/* Dostępność - Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* --- Responsive FullCalendar header fixes (WCAG AAA, mobile friendly) --- */
.fc-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 0;
}

.fc-header-toolbar .fc-prev-button,
.fc-header-toolbar .fc-next-button {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 50%;
    background: #003d7c;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    padding: 0;
}

.fc-header-toolbar .fc-prev-button:focus,
.fc-header-toolbar .fc-next-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.fc-header-toolbar .fc-prev-button:hover,
.fc-header-toolbar .fc-next-button:hover {
    background: #0d6efd;
}

.fc-header-toolbar .fc-toolbar-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 1rem;
    color: #003d7c;
}

@media (max-width: 575.98px) {
    .fc-header-toolbar .fc-toolbar-title {
        font-size: 1.25rem;
    }
    .fc-header-toolbar .fc-prev-button,
    .fc-header-toolbar .fc-next-button {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 576px) {
  .fc-header-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .fc-toolbar-chunk {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.fc-toolbar-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  flex: 0 1 auto;
}

.fc-prev-button, .fc-next-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 50%;
  margin: 0 0.25rem;
}

.fc-button-group {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.fc-button {
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
  min-width: 80px;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  /* Center the month/year title */
  .fc-toolbar-title {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
  }
  /* Group arrows together, side by side, centered */
  .fc-mobile-arrows {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    order: 2;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
  }
  .fc-prev-button, .fc-next-button {
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 50%;
    margin: 0;
  }
  /* Dzisiaj button centered below arrows */
  .fc-today-button {
    order: 3;
    width: 100%;
    margin-bottom: 0.25rem;
    justify-content: center;
    display: flex;
  }
  /* Miesiąc and Lista glued together, full width, below Dzisiaj */
  .fc-button-group {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
    gap: 0;
  }
  .fc-button-group .fc-button {
    width: 50%;
    min-width: unset;
    margin-bottom: 0;
    border-radius: 0;
  }
  .fc-button-group .fc-button:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
  }
  .fc-button-group .fc-button:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
  }
}

@media (min-width: 992px) {
    .conference-event-list {
        overflow-y: auto;
        padding-right: 1rem;
    }
}

@media (max-width: 991.98px) {
    .calendar-row {
        flex-direction: column !important;
    }
    .calendar-col,
    .sidebar-col {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* External event styling */
.external-event {
    position: relative;
}

.external-event::after {
    content: "↗";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.75rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    padding: 1px 2px;
    line-height: 1;
}

.external-link-indicator {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Enhanced focus styles for better accessibility */
.fc-event:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.fc-event:hover {
    cursor: pointer;
}

/* External link button styling */
.btn-custom-secondary {
    position: relative;
}

.btn-custom-secondary .bi-box-arrow-up-right {
    transition: transform 0.2s ease;
}

.btn-custom-secondary:hover .bi-box-arrow-up-right {
    transform: translate(1px, -1px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .external-event::after {
        background: #000000;
        color: #ffffff;
        border: 1px solid #ffffff;
    }
    
    .fc-event:focus {
        outline: 3px solid #ffffff;
        outline-offset: 1px;
    }
}

/* Event Modal Styles */
.event-modal-content {
    font-size: 1rem;
}

.event-modal-content h6 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-modal-content .text-muted {
    color: #495057 !important;
}

.event-modal-content .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.color-swatch {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Modal accessibility improvements */
.modal-header .btn-close:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.modal-footer .btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

/* Ensure modal title meets WCAG AAA */
.modal-title {
    color: #212529;
    font-weight: 600;
}

/* Ensure modal body text meets WCAG AAA */
.modal-body {
    color: #212529;
}

/* Ensure badge text meets WCAG AAA */
.event-modal-content .badge.bg-primary {
    color: #ffffff !important;
}

.event-modal-content .badge.bg-secondary {
    color: #ffffff !important;
}

.event-modal-content .badge.bg-success {
    color: #ffffff !important;
}

.event-modal-content .badge.bg-info {
    color: #ffffff !important;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .event-modal-content .row {
        flex-direction: column;
    }
    
    .event-modal-content .col-md-4 {
        margin-top: 1rem;
    }
}

/* High contrast mode for modal */
@media (prefers-contrast: high) {
    .modal-content {
        border: 2px solid #000000;
    }
    
    .modal-header {
        border-bottom: 2px solid #000000;
    }
    
    .modal-footer {
        border-top: 2px solid #000000;
    }
    
    .event-modal-content h6 {
        color: #000000;
    }
    
    .event-modal-content .text-muted {
        color: #333333 !important;
    }
}

/* Location styling in modal */
.event-location {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border-left: 3px solid #0d6efd;
}

.event-location h6 {
    margin-bottom: 0.5rem;
    color: #212529;
}

.event-location .text-muted {
    line-height: 1.4;
    color: #495057 !important;
}

.event-location .bi-geo-alt {
    color: #0d6efd;
    font-size: 1.1rem;
    vertical-align: middle;
    margin-top: 0 !important;
}

.event-location .d-flex {
    align-items: flex-start !important;
}

.event-location .d-flex.align-items-start {
    align-items: flex-start !important;
}

/* High contrast mode for location */
@media (prefers-contrast: high) {
    .event-location {
        background: #ffffff;
        border: 2px solid #000000;
        border-left: 4px solid #000000;
    }
    
    .event-location .bi-geo-alt {
        color: #000000;
    }
}



/* Sidebar event list: always scrollable if content overflows */
.conference-event-list {
    max-height: none;
    min-height: 8rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

/* Remove forced height from sidebar-col, let JS set it */
.sidebar-col {
    height: auto !important;
    min-height: 0;
}

/* Flexbox layout for calendar and sidebar */
.calendar-row {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    height: auto; /* Let content determine height */
}

.calendar-col,
.sidebar-col {
    display: flex;
    flex-direction: column;
}

.conference-event-list {
    flex: 1 1 auto;
    overflow-y: auto;
}

