
/* Chapter Details Page Specific Styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"], .form-select {
    height: auto;
}

/* Hero Section / Banner Styles */
.hero-section {
    background-color: #4a4a4a; /* Dark grey background */
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.hero-section[data-bg-image]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    width: 120%;
    height: 120%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(0 0 0 / 62%);/* Dark grey overlay */
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Participant Position Badge - Top Right Corner */
.participant-position-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #2A6AD6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.participant-position-badge i {
    font-size: 18px;
    color: var(--primary-color, #2A6AD6);
}

#detail-hero h1 {
    color: #fff !important;
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.banner-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0;
    width: 100%;
}

#detail-hero .lead {
    color: #fff !important;
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif) !important;
    font-size: 1.125rem !important;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.btn-outline-primary.selected {
    box-shadow: 0px 0px 4px 3px var(--primary-color) !important;
}
#communicationTemplateModal .btn-outline-primary {
    margin-right: 0 !important;
}
#communicationTemplateModal .btn-outline-primary:hover {
    background-color: var(--light-gray-variant-01) !important;
    color: var(--primary-color) !important;
}
#communicationTemplateModal .btn-outline-primary:active,
#communicationTemplateModal .btn-outline-primary:focus {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Fix Tab Overlay Issues - Properly isolate tab panes */
#detailTabsContent.tab-content {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
}

/* Hide inactive tab panes completely - use more specific selector */
#detailTabsContent .tab-pane {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1 !important;
    background-color: var(--white-color) !important;
    pointer-events: none !important;
    height: 0;
    overflow: hidden;
}

/* Show active tab pane */
#detailTabsContent .tab-pane.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    height: auto;
    overflow: visible;
}

#detailTabsContent .tab-pane:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: 1 !important;
    pointer-events: none !important;
    height: 0;
    overflow: hidden;
}

/* Ensure fade animation works correctly */
#detailTabsContent .tab-pane.fade {
    transition: opacity 0.15s linear;
}

#detailTabsContent .tab-pane.fade:not(.show) {
    opacity: 0;
}

#detailTabsContent .tab-pane.fade.show {
    opacity: 1;
}

/* Prevent content overflow in tab panes */
#detailTabsContent .tab-pane > * {
    position: relative;
    z-index: 1;
}

/* Exclude filter wrappers from the above rule - they need higher z-index */
#detailTabsContent .tab-pane .filter-dropdown-wrapper {
    z-index: 1050 !important;
}

/* Ensure notifications dropdown menu appears above other elements */
#notifications-filter-wrapper {
    position: relative !important;
    z-index: 1051 !important;
    overflow: visible !important;
}

#notifications-priority-filter-menu {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    z-index: 1052 !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    overflow-y: auto !important;
    max-height: 200px !important;
}

/* Ensure rows and containers within tab panes are properly positioned */
#detailTabsContent .tab-pane .row {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* Ensure notifications tab row allows dropdown overflow */
#tab-notifications .row {
    overflow: visible !important;
}

/* Specific fixes for each tab to ensure proper isolation */
#detailTabsContent #tab-overview,
#detailTabsContent #tab-committees,
#detailTabsContent #tab-participants,
#detailTabsContent #tab-meetings,
#detailTabsContent #tab-documents,
#detailTabsContent #tab-notifications,
#detailTabsContent #tab-discussions {
    position: relative;
    z-index: 10;
    background-color: var(--white-color) !important;
    min-height: 200px;
}

/* Active tab specific styling */
#detailTabsContent #tab-overview.active,
#detailTabsContent #tab-committees.active,
#detailTabsContent #tab-participants.active,
#detailTabsContent #tab-meetings.active,
#detailTabsContent #tab-documents.active,
#detailTabsContent #tab-notifications.active,
#detailTabsContent #tab-discussions.active {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

#detailTabsContent .fa-magnifying-glass {
    top: 20px;
}

#committee-comm-template-menu, #marketing-template-menu {
    min-height: fit-content !important;
}

#preview-email-body {
    width: fit-content !important;
    margin: 0 auto !important;
}

#preview-email-body > table:first-child {
    width: auto !important;
    margin: 0 auto !important;
}

.modal-footer .btn+.btn {
    margin-bottom: auto;
}

/* Get to Know Section - Contact Cards */
.contact-item {
    border-bottom: 1px solid var(--gray-variant-01, #DEDEDE) !important;
    padding-bottom: 1rem !important;
}

.contact-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.contact-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color, #233D6C) !important;
    color: var(--white-color, #fff) !important;
}

.contact-info h6 {
    color: var(--primary-color, #233D6C);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info p {
    margin-bottom: 4px;
    font-size: 14px;
}

.contact-info a {
    color: var(--primary-color, #233D6C);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--secondary-color, #2AA6DE);
}

/* Overview Tab Main Section */
.overview-main-section {
    border: 1px solid var(--gray-variant-01, #DEDEDE);
    border-radius: 2px;
    background-color: var(--white-color, #fff);
    padding: 1.5rem;
}

/* Overview Sub-Sections (About, Mission, Goals) */
.overview-sub-section {
    background-color: var(--white-color, #fff);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-variant-01, #DEDEDE);
}

.overview-sub-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.overview-sub-section:first-child {
    padding-top: 0;
}

.section-title {
    color: var(--primary-color, #233D6C);
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    font-size: var(--font-size-medium, 20px);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-content {
    color: var(--dark-charcoal, #333);
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: var(--font-size-general, 16px);
    line-height: 1.6;
    margin-bottom: 0;
}

#join-btn-top a {
    padding: 1rem 3rem !important
}

.goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goals-list li {
    padding: 0.5rem 0;
    border-bottom: none;
    background-color: transparent;
}

.goals-list li:last-child {
    padding-bottom: 0;
}

/* Overview Sidebar Cards */
.overview-sidebar-card {
    background-color: var(--white-color, #fff) !important;
    border: 1px solid var(--gray-variant-01, #DEDEDE) !important;
    border-radius: 2px;
}

.overview-sidebar-card .card-title {
    color: var(--primary-color, #233D6C);
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    font-size: var(--font-size-mobile-large, 18px);
    font-weight: 700;
}

.contact-item div:has(a.contact-email-link) {
    margin-bottom: 1px;
}

/* Upcoming Events */
.upcoming-event-item {
    border-bottom: 1px solid var(--gray-variant-01, #DEDEDE);
}

.upcoming-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.upcoming-event-item h6 {
    color: var(--primary-color, #233D6C);
    font-size: 16px;
    font-weight: 700;
}

/* Upcoming Event Thumbnail Cards */
.upcoming-event-thumbnail-card {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-event-thumbnail-card:last-child {
    margin-bottom: 0;
}

.upcoming-event-thumbnail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-thumbnail {
    position: relative;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.event-thumbnail-title {
    color: #fff;
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Upcoming Events Links (Chapter Profile Overview) */
.upcoming-events-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-events-links li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.upcoming-events-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upcoming-events-links li:first-child {
    padding-top: 0;
}

.upcoming-event-link {
    display: flex;
    align-items: flex-start;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.upcoming-event-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.upcoming-event-link i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

/* ================================================
   NEXT MEETING SECTION (Committee Profile)
   ================================================ */

/* Next Meeting Overview (for committee profiles in Overview tab) */
.next-meeting-overview {
    padding: 0;
}

.next-meeting-overview .meeting-title {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.next-meeting-overview .meeting-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.next-meeting-overview .meeting-meta > i {
    color: #666;
    font-size: 1.2rem;
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.next-meeting-overview .meeting-datetime-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: normal;
}

.next-meeting-overview .meeting-date {
    font-size: 14px;
    color: #000;
    margin-bottom: 2px;
}

.next-meeting-overview .meeting-time {
    font-size: 14px;
    color: #666;
    margin-top: 0;
}

.next-meeting-overview .btn-calendar-neutral {
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s ease;
}

.next-meeting-overview .btn-calendar-neutral:hover {
    color: #000;
}

.next-meeting-overview .btn-calendar-neutral i {
    margin-right: 6px;
}

.next-meeting-section {
    padding: 0;
}

.next-meeting-datetime {
    margin-bottom: 12px;
}

.next-meeting-date {
    display: flex;
    align-items: flex-start;
}

.next-meeting-date > i {
    color: var(--primary-color, #233D6C);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.next-meeting-date > div {
    display: flex;
    flex-direction: column;
}

.next-meeting-date .date-text {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--black-color, #000);
    line-height: 1.3;
}

.next-meeting-date .time-text {
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: 14px;
    color: var(--primary-color, #233D6C);
    line-height: 1.4;
}

.next-meeting-location {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.next-meeting-location > i {
    color: var(--primary-color, #233D6C);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.next-meeting-location > span {
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: 14px;
    color: var(--primary-color, #233D6C);
}

.next-meeting-action .btn {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

/* ================================================
   CALENDAR MODAL STYLES
   ================================================ */

#calendarModal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#calendarModal .modal-header {
    padding: 20px 24px 0;
}

#calendarModal .modal-title {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 1.25rem;
    color: var(--black-color, #000);
}

#calendarModal .modal-body {
    padding: 16px 24px 24px;
}

.calendar-options .btn-calendar {
    background-color: var(--primary-color, #233D6C);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.calendar-options .btn-calendar:hover {
    background-color: var(--secondary-color, #2AA6DE);
    color: #fff;
}

/* ================================================
   CHAPTER LEADERS SECTION
   ================================================ */

.leader-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-variant-01, #DEDEDE);
}

.leader-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leader-item:first-child {
    padding-top: 0;
}

.leader-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white-color, #fff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leader-info h6 {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 14px;
    color: var(--black-color, #000);
}

.leader-info p {
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: 13px;
    color: var(--primary-color, #233D6C);
}

/* ================================================
   PARTICIPANTS TAB STYLING
   ================================================ */

/* Participants Search Box */
.participants-search-box {
    position: relative;
}

.participants-search-box i {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--dark-charcoal, #333);
}

.participants-search-box input {
    padding-left: 40px;
    border: 1px solid var(--gray-variant-01, #DEDEDE);
    border-radius: 4px;
}

.participants-search-box input:focus {
    border-color: var(--primary-color, #233D6C);
    box-shadow: 0 0 0 0.2rem rgba(35, 61, 108, 0.15);
}

/* Sortable Headers - now unified above */

/* Participant Action Buttons */
.participant-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.participant-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color, #233D6C);
    border-radius: 4px;
    background: #fff;
    color: var(--primary-color, #233D6C);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.participant-action-btn:hover {
    background: var(--primary-color, #233D6C);
    color: #fff;
}

.participant-action-btn i {
    font-size: 14px;
}

/* ================================================
   DISABLED TABS STYLING
   ================================================ */

#detailTabs .nav-link.disabled {
    color: var(--gray-variant-03, #C7C7C7) !important;
    cursor: not-allowed;
    opacity: 0.6;
    border-bottom-color: transparent !important;
}

#detailTabs .nav-link.disabled:hover {
    color: var(--gray-variant-03, #C7C7C7) !important;
    border-bottom-color: transparent !important;
}

/* Tab Icons Styling - Default (PC View) */
#detailTabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

#detailTabs .nav-link .tab-text {
    display: inline;
}

/* Event Cards Styling */
.event-card {
    border: 1px solid var(--gray-variant-01, #DEDEDE) !important;
    border-radius: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.event-card .card-img-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card .card-img-top {
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
}

.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
}

.event-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.event-card .card-title {
    color: var(--black-color, #000);
    font-size: 18px;
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    font-weight: 700;
    line-height: 1.4;
}

/* Past Events Table Styling */
#past-events-table {
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
}

/* Apply Documents tab header styling to all tables */
#participants-table thead th,
#past-events-table thead th,
#doc-specific-table thead th,
#doc-global-table thead th {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom-width: 2px;
    padding: 12px 16px;
    color: var(--primary-color, #233D6C);
    background-color: #f8f9fa;
}

/* Participant photo styles */
.participant-photo-container {
    position: relative;
    flex-shrink: 0;
}

.participant-photo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    display: block;
}

.participant-photo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color, #0066cc);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

/* Apply Documents tab body styling to all tables */
#participants-table tbody td,
#past-events-table tbody td,
#doc-specific-table tbody td,
#doc-global-table tbody td {
    font-size: 0.9rem;
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* Participants Table - Full Width and Text Wrapping */
#tab-participants {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#tab-participants .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

#tab-participants .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
}

#participants-table {
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
    margin-bottom: 0;
}

#participants-table tbody td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 8px 12px !important;
    font-size: 0.9rem;
}

#participants-table thead th {
    padding: 10px 12px !important;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.9rem;
}

/* Past Meetings Table - Full Width and Text Wrapping (Same as Participants) */
#tab-meetings {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#tab-meetings .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
}

#past-events-table {
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
    margin-bottom: 0;
}

#past-events-table tbody td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 8px 12px !important;
    font-size: 0.9rem;
}

#past-events-table thead th {
    padding: 10px 12px !important;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.9rem;
}

/* Role badge font-size matches table cell font-size */
#participants-table tbody td .badge {
    font-size: inherit !important;
}

/* Center photo and name with badge section for both PC and mobile */
#participants-table tbody td:nth-child(2) > div {
    align-items: center !important;
}

/* Contact column - display icons horizontally on PC/tablet, vertically on mobile */
#participants-table .participant-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-direction: row;
}

/* Mobile: stack icons vertically */
@media (max-width: 767.98px) {
    #participants-table .participant-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    /* Documents Table - Mobile responsive text wrapping */
    #doc-specific-table tbody td,
    #doc-global-table tbody td {
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }
    
    #doc-specific-table thead th,
    #doc-global-table thead th {
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

/* Responsive font sizes for participants table */
@media (max-width: 991.98px) {
    #participants-table tbody td {
        font-size: 0.875rem !important;
    }
    
    #participants-table thead th {
        font-size: 0.85rem !important;
    }
    
    /* Role badge inherits table cell font-size */
    #participants-table tbody td .badge {
        font-size: inherit !important;
    }
    
    /* Past Meetings table - same responsive font sizes */
    #past-events-table tbody td {
        font-size: 0.875rem !important;
    }
    
    #past-events-table thead th {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    #participants-table tbody td {
        font-size: 0.8rem !important;
    }
    
    #participants-table thead th {
        font-size: 0.75rem !important;
    }
    
    /* Role badge inherits table cell font-size */
    #participants-table tbody td .badge {
        font-size: inherit !important;
    }
    
    /* Even smaller contact buttons on very small screens */
    #participants-table .participant-action-btn {
        width: 26px !important;
        height: 26px !important;
    }
    
    #participants-table .participant-action-btn i {
        font-size: 11px !important;
    }
    
    /* Past Meetings table - same responsive font sizes */
    #past-events-table tbody td {
        font-size: 0.8rem !important;
    }
    
    #past-events-table thead th {
        font-size: 0.75rem !important;
    }
}

#participants-table tbody tr:hover,
#past-events-table tbody tr:hover,
#doc-specific-table tbody tr:hover,
#doc-global-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Unified sortable header styling */
.sortable,
.sortable-participant,
.sortable-doc {
    user-select: none;
    cursor: pointer;
}

.sortable:hover,
.sortable-participant:hover,
.sortable-doc:hover {
    background-color: #e9ecef;
}

/* Sort icons - only show when sorted */
.sortable i,
.sortable-participant i,
.sortable-doc i {
    font-size: 0.75rem;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: none; /* Hidden by default, shown only when sorted */
}

/* Show icon when column is sorted */
.sortable.sorted i,
.sortable-participant.sorted i,
.sortable-doc.sorted i {
    display: inline-block;
    opacity: 1;
    color: var(--primary-color, #233D6C);
}

/* Document Icons */
.document-icons-cell {
    text-align: center;
}

.document-icon {
    font-size: 20px;
    color: var(--primary-color, #233D6C);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.document-icon:hover {
    color: var(--secondary-color, #2AA6DE);
    transform: scale(1.2);
}

.document-icon[title="Minutes"],
.document-icon[title="Presentation"],
.document-icon[title="Recording"] {
    color: #233D6C;
}

/* Location Hover Effect */
.location-hoverable {
    position: relative;
    cursor: pointer;
}

.location-hoverable .location-text {
    display: inline-block;
}

.location-hoverable .location-full-address {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: var(--white-color, #fff);
    border: 1px solid var(--gray-variant-01, #DEDEDE);
    border-radius: 4px;
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    white-space: normal;
    font-size: 14px;
    color: var(--black-color, #000);
    margin-bottom: 8px;
    pointer-events: none;
}

.location-hoverable:hover .location-full-address {
    display: block !important;
}

.location-hoverable:hover .location-text {
    text-decoration: underline;
    color: var(--primary-color, #233D6C);
}

/* Committee Meeting Card Styles */
.meeting-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.meeting-card .card-title {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 1.25rem;
}

.meeting-agenda ul {
    padding-left: 1.25rem;
    list-style-type: disc;
}

.meeting-agenda li {
    margin-bottom: 0.25rem;
}

.meeting-participants .participant-avatar img {
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    object-fit: cover;
}

.meeting-documents li {
    margin-bottom: 0.25rem;
}

.past-meeting-row .meeting-title-link {
    color: var(--primary-color, #233D6C);
    cursor: pointer;
}

.past-meeting-row .meeting-title-link:hover {
    text-decoration: underline;
}

/* ================================================
   NEW UPCOMING EVENT CARD DESIGN
   ================================================ */

.upcoming-event-card {
    border: 1px solid var(--gray-variant-03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Date Header Section */
.event-date-header {
    background: linear-gradient(271deg, #233d6c 0%, #234071de 100%);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.event-date-header .event-month {
    display: block;
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-date-header .event-day {
    display: block;
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.event-date-header .event-year {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Card Body Content */
.upcoming-event-card .card-body {
    padding: 20px;
}

.event-card-title {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 1.1rem;
    color: var(--primary-color, #233D6C);
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-card-time,
.event-card-location {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.event-card-time i,
.event-card-location i {
    width: 20px;
    flex-shrink: 0;
    color: var(--primary-color, #233D6C);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons Row */
.event-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.event-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color, #233D6C);
    border-radius: 6px;
    background: #fff;
    color: var(--primary-color, #233D6C);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-action-btn:hover {
    background: var(--primary-color, #233D6C);
    color: #fff;
}

.event-action-btn i {
    font-size: 1rem;
}

/* ================================================
   AGENDA MODAL STYLES
   ================================================ */

#agendaModal .modal-content,
#participantsModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#agendaModal .modal-header,
#participantsModal .modal-header {
    padding: 24px 24px 0;
}

#agendaModal .modal-title,
#participantsModal .modal-title {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-size: 1.25rem;
    color: var(--primary-color, #233D6C);
}

#agendaModal .modal-body,
#participantsModal .modal-body {
    padding: 20px 24px 24px;
}

/* Agenda Item Styles */
.agenda-item {
    padding: 8px 0;
}

.agenda-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color, #233D6C);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 14px;
    flex-shrink: 0;
}

.agenda-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    padding-top: 3px;
}

/* ================================================
   PARTICIPANTS/REGISTRANTS MODAL STYLES
   ================================================ */

/* Participants Grid (for meeting participants with photos) */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.participant-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.participant-info {
    display: flex;
    flex-direction: column;
}

.participant-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.participant-role {
    font-size: 0.8rem;
    color: #666;
}

/* Registrants Table Styles */
.registrants-table {
    margin-bottom: 0;
}

.registrants-table thead th {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom-width: 2px;
    padding: 12px 16px;
}

.registrants-table tbody td {
    font-size: 0.9rem;
    padding: 12px 16px;
    vertical-align: middle;
}

.registrants-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ================================================
   DOCUMENT TOAST STYLES
   ================================================ */

#documentToast {
    min-width: 280px;
}

#documentToast .toast-body {
    font-size: 0.95rem;
}

/* ================================================
   PAST MEETINGS TABLE ICON BUTTONS
   ================================================ */

.past-meeting-actions {
    display: flex;
    gap: 6px;
}

.past-meeting-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color, #233D6C);
    border-radius: 4px;
    background: #fff;
    color: var(--primary-color, #233D6C);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.past-meeting-action-btn:hover:not([disabled]) {
    background: var(--primary-color, #233D6C);
    color: #fff;
}

.past-meeting-action-btn[disabled],
.past-meeting-action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

.past-actions-cell {
    width: 130px;
}

/* ======================================
   Bootstrap Modal Overrides
====================================== */
#agendaModal,
#participantsModal,
#calendarModal,
#leaveInfoModal,
#leaveConfirmModal,
#participateConfirmModal,
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1055 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#agendaModal:not(.show),
#participantsModal:not(.show),
#calendarModal:not(.show),
#leaveInfoModal:not(.show),
#leaveConfirmModal:not(.show),
#participateConfirmModal:not(.show),
.modal:not(.show) {
    display: none !important;
}

#agendaModal.show,
#participantsModal.show,
#calendarModal.show,
#leaveInfoModal.show,
#leaveConfirmModal.show,
#participateConfirmModal.show,
.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#agendaModal.fade,
#participantsModal.fade,
#calendarModal.fade,
#leaveInfoModal.fade,
#leaveConfirmModal.fade,
#participateConfirmModal.fade,
.modal.fade {
    opacity: 1 !important;
    transition: none !important;
}

.modal-backdrop {
    display: none !important;
}

#agendaModal .modal-dialog,
#participantsModal .modal-dialog,
#calendarModal .modal-dialog,
#leaveInfoModal .modal-dialog,
#leaveConfirmModal .modal-dialog,
#participateConfirmModal .modal-dialog,
.modal .modal-dialog {
    position: relative !important;
    width: auto !important;
    max-width: 500px !important;
    min-width:  310px !important;
    margin: 1.75rem auto !important;
    pointer-events: none !important;
    z-index: 1056 !important;
    background: transparent !important;
}

#agendaModal .modal-dialog.modal-lg,
#participantsModal .modal-dialog.modal-lg {
    max-width: 800px !important;
}

#agendaModal .modal-dialog-centered,
#participantsModal .modal-dialog-centered,
#calendarModal .modal-dialog-centered,
#leaveInfoModal .modal-dialog-centered,
#leaveConfirmModal .modal-dialog-centered,
#participateConfirmModal .modal-dialog-centered,
.modal .modal-dialog-centered {
    margin: auto !important;
}

#agendaModal .modal-content,
#participantsModal .modal-content,
#calendarModal .modal-content,
#leaveInfoModal .modal-content,
#leaveConfirmModal .modal-content,
#participateConfirmModal .modal-content,
.modal .modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.175) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    outline: 0 !important;
    min-height: 200px;
}

/* Leave Modal Styles */
.contact-info-box {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.committee-list-info {
    background-color: #f8f9fa;
    padding: 15px 15px 15px 35px;
    border-radius: 8px;
    margin: 0;
}

.committee-list-info li {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.committee-list-info li:last-child {
    margin-bottom: 0;
}

#notifications-search {
    border-radius: 4px;
}

#participateConfirmMessage {
    font-weight: 400;
    font-family: var(--font-franklingothic-demi) !important;
    font-size: 1.25rem;
}

/* ================================================
   DOCUMENTS TAB STYLES
   ================================================ */

/* Documents Sub-Tabs */
#documentsSubTabs {
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

#documentsSubTabs .nav-link {
    color: var(--primary-color, #233D6C);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#documentsSubTabs .nav-link i {
    font-size: 1.1rem;
}

#documentsSubTabs .nav-link .tab-text {
    display: inline;
}

#documentsSubTabs .nav-link:hover {
    border-bottom-color: rgba(35, 61, 108, 0.3);
    color: var(--primary-color, #233D6C);
}

#documentsSubTabs .nav-link.active {
    color: var(--primary-color, #233D6C);
    border-bottom-color: #FFC107;
    background-color: transparent;
}

/* Mobile view: Show only icon for inactive sub-tabs, icon + text for active */
@media (max-width: 767.98px) {
    #documentsSubTabs .nav-link:not(.active) .tab-text {
        display: none;
    }
    
    #documentsSubTabs .nav-link.active .tab-text {
        display: inline;
    }
    
    #documentsSubTabs .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Documents Search and Filter */
#doc-specific-search,
#doc-global-search {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    height: 42px;
    margin-top: 1px;
}

#doc-specific-search:focus,
#doc-global-search:focus {
    border-color: var(--primary-color, #233D6C);
    box-shadow: 0 0 0 0.2rem rgba(35, 61, 108, 0.25);
}

/* Documents Type Filter Dropdown */
#doc-specific-filter-wrapper,
#doc-global-filter-wrapper {
    position: relative;
    z-index: 1050 !important; /* Must be higher than table's stacking context */
}

#doc-specific-type-filter-btn,
#doc-global-type-filter-btn {
    text-align: left;
}

#doc-specific-type-filter-menu,
#doc-global-type-filter-menu {
    z-index: 1051 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 4px !important;
}

/* Documents Table */
#doc-specific-table,
#doc-global-table {
    margin-bottom: 0;
    position: relative;
    z-index: auto; /* Changed from 1 to auto to avoid stacking context conflict */
}

/* Ensure table-responsive doesn't interfere with dropdown */
#doc-specific-content .table-responsive,
#doc-global-content .table-responsive {
    position: relative;
    z-index: auto; /* Changed from 1 to auto - no stacking context needed */
    overflow-x: auto;
    overflow-y: visible; /* Allow dropdown to overflow */
}

#doc-specific-table thead th,
#doc-global-table thead th {
    font-family: var(--font-franklingothic-demi, 'Franklin Gothic Demi', sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom-width: 2px;
    padding: 12px 16px;
    color: var(--primary-color, #233D6C);
    background-color: #f8f9fa;
}

#doc-specific-table tbody td,
#doc-global-table tbody td {
    font-size: 0.9rem;
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

#doc-specific-table tbody tr:hover,
#doc-global-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Sortable Document Headers - now unified above */

/* Document Download Button */
.document-download-btn {
    border: 1px solid var(--primary-color, #233D6C);
    color: var(--primary-color, #233D6C);
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.document-download-btn:hover {
    background-color: var(--primary-color, #233D6C);
    color: #fff;
    border-color: var(--primary-color, #233D6C);
}

.document-download-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(35, 61, 108, 0.25);
}

/* Document Icon in Table */
#doc-specific-table tbody td i.bi-file-text,
#doc-global-table tbody td i.bi-file-text {
    font-size: 1.1rem;
    color: var(--primary-color, #233D6C);
}

/* Event Creation Wizard Styles */
.wizard-progress {
    padding: 20px 0;
}

.wizard-steps {
    position: relative;
    max-width: 100%;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.wizard-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.wizard-step.active .step-number {
    background-color: var(--primary-color, #233D6C);
    border-color: var(--primary-color, #233D6C);
    color: white;
}

.wizard-step.completed .step-number {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.wizard-step.completed .step-number::after {
    content: '✓';
    font-size: 18px;
}

.wizard-step .step-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    font-weight: normal;
}

.wizard-step.active .step-label {
    color: var(--primary-color, #233D6C);
    font-weight: bold;
}

.wizard-step.completed .step-label {
    color: #28a745;
}

.wizard-connector {
    flex: 1;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 10px;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.wizard-step.completed + .wizard-connector,
.wizard-step.active + .wizard-connector {
    background-color: var(--primary-color, #233D6C);
}

.wizard-step-content {
    min-height: 400px;
    padding: 0 10px;
}

.wizard-step-content h5 {
    color: var(--primary-color, #233D6C);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Wizard Form Styling */
#wizard-step1-form .form-label {
    font-size: 15px;
    margin-bottom: 0.5rem;
}

#wizard-step1-form .form-control,
#wizard-step1-form .form-select {
    font-size: 15px;
    padding: 0.6rem 0.75rem;
    height: auto;
}

#wizard-step1-form .input-group-lg .form-control,
#wizard-step1-form .input-group-lg .form-select,
#wizard-step1-form .input-group-lg .input-group-text {
    padding: 0.6rem 0.75rem;
    font-size: 15px;
    height: auto;
    margin-bottom: 0px;
}

#wizard-step1-form .form-check-input:checked {
    background-color: var(--primary-color, #233D6C);
    border-color: var(--primary-color, #233D6C);
}

#wizard-step1-form .form-check-input:focus {
    border-color: var(--primary-color, #233D6C);
    box-shadow: 0 0 0 0.25rem rgba(35, 61, 108, 0.25);
}

/* Wizard Step 3 Styles */
.advertisement-type-card {
    transition: all 0.3s ease;
}

.advertisement-type-card:hover {
    border-color: var(--primary-color, #233D6C) !important;
    box-shadow: 0 0 0 0.2rem rgba(35, 61, 108, 0.1);
}

.advertisement-type-card input[type="radio"]:checked + label {
    color: var(--primary-color, #233D6C);
}

.advertisement-type-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color, #233D6C) !important;
    background-color: rgba(35, 61, 108, 0.05);
}

#wizard-event-description {
    outline: none;
}

#wizard-event-description:empty:before {
    content: attr(placeholder);
    color: #6c757d;
    pointer-events: none;
}

#wizard-event-description.is-invalid {
    border-color: #dc3545;
}

#wizard-file-dropzone.is-invalid {
    border-color: #dc3545;
}

#wizard-file-dropzone:hover {
    background-color: #e9ecef !important;
}

/* Wizard Step 4 Review Styles */
#wizard-step-4 .card-header {
    user-select: none;
}

#wizard-step-4 .card-header[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

#wizard-step-4 .card-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

#wizard-step-4 .card-header[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(0deg);
}

#review-event-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Review Accordion Manual Implementation */
.review-accordion-header {
    transition: background-color 0.2s;
}

.review-accordion-header:hover {
    background-color: #f0f0f0 !important;
}

.review-accordion-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

.review-accordion-content {
    display: block;
}

/* Large Modal Sizes for Add Event and Add Meeting */
#eventCreationWizardModal,
#addEventModal {
    padding: 0 !important;
}

/* Override global modal styles from styles.css */
#eventCreationWizardModal .modal-dialog,
#addEventModal .modal-dialog,
#eventCreationWizardModal .modal-dialog.modal-large,
#addEventModal .modal-dialog.modal-large,
#eventCreationWizardModal .modal-dialog.modal-xl,
#addEventModal .modal-dialog.modal-xl {
    max-width: 98% !important;
    width: 98% !important;
    margin: 0.5rem auto !important;
    height: auto;
    position: relative !important;
    pointer-events: auto !important;
}

#eventCreationWizardModal .modal-content,
#addEventModal .modal-content {
    min-height: 95vh !important;
    max-height: 98vh !important;
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#eventCreationWizardModal .modal-body,
#addEventModal .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(98vh - 180px);
    padding: 2rem;
    width: 100%;
}

#eventCreationWizardModal .modal-header,
#addEventModal .modal-header {
    padding: 1.5rem 2rem;
    width: 100%;
}

#eventCreationWizardModal .modal-footer,
#addEventModal .modal-footer {
    padding: 1.5rem 2rem;
    width: 100%;
}

#communicationTemplateModal .modal-dialog {
    width: 50% !important;
}

/* Override Bootstrap's modal-xl max-width */
#eventCreationWizardModal.modal .modal-dialog.modal-xl,
#addEventModal.modal .modal-dialog.modal-xl {
    max-width: 60% !important;
    width: 60% !important;
}

/* Advertisement Type Cards - Radio and Icon at Top */
.advertisement-type-card .card-body {
    padding: 1.5rem;
}

.advertisement-type-card .form-check-input {
    margin-top: 0;
}

/* Speaker Count - Icon removed from None option in HTML */

/* ================================================
   MEDIA QUERIES
   ================================================ */

/* Mobile Tab Design - Icons Only for Inactive, Icon + Text for Active */
@media (max-width: 991.98px) {
    /* Hide text on inactive tabs (including disabled), show icon only */
    #detailTabs .nav-link:not(.active) .tab-text {
        display: none !important;
    }
    
    /* Show icon + text on active tab */
    #detailTabs .nav-link.active .tab-text {
        display: inline !important;
        margin-left: 0.4rem;
        font-size: 1rem;
    }
    
    /* Ensure icons are always visible - smaller size to fit in one row */
    #detailTabs .nav-link i {
        margin-right: 0;
        font-size: 1.25rem;
        display: inline-block;
    }
    
    /* Active tab icon spacing */
    #detailTabs .nav-link.active i {
        margin-right: 0.4rem;
        font-size: 1.25rem;
    }
    
    /* Adjust padding and layout for icon-only tabs - smaller to fit in one row */
    #detailTabs .nav-link:not(.active) {
        padding: 8px 10px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Active tab maintains normal padding with flex layout - smaller to fit */
    #detailTabs .nav-link.active {
        padding: 8px 12px;
        display: flex;
        align-items: center;
    }
    
    /* Ensure disabled tabs still show icons (just grayed out) */
    #detailTabs .nav-link.disabled i {
        opacity: 0.5;
    }
    
    /* Ensure tabs don't wrap to multiple rows */
    #detailTabs {
        flex-wrap: nowrap;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    #detailTabs .nav-item {
        flex-shrink: 0;
    }
}

/* Event Creation Wizard Modal - Responsive Sizes */
@media (min-width: 576px) {
    #eventCreationWizardModal .modal-dialog.modal-large,
    #addEventModal .modal-dialog.modal-large,
    #eventCreationWizardModal.modal .modal-dialog.modal-xl,
    #addEventModal.modal .modal-dialog.modal-xl {
        max-width: 70% !important;
        width: 70% !important;
    }
}

@media (min-width: 992px) {
    #eventCreationWizardModal .modal-dialog.modal-large,
    #addEventModal .modal-dialog.modal-large,
    #eventCreationWizardModal.modal .modal-dialog.modal-xl,
    #addEventModal.modal .modal-dialog.modal-xl {
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 1200px) {
    #eventCreationWizardModal .modal-dialog.modal-large,
    #addEventModal .modal-dialog.modal-large,
    #eventCreationWizardModal.modal .modal-dialog.modal-xl,
    #addEventModal.modal .modal-dialog.modal-xl {
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 1400px) {
    #eventCreationWizardModal .modal-dialog.modal-large,
    #addEventModal .modal-dialog.modal-large,
    #eventCreationWizardModal.modal .modal-dialog.modal-xl,
    #addEventModal.modal .modal-dialog.modal-xl {
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 1600px) {
    #eventCreationWizardModal .modal-dialog.modal-large,
    #addEventModal .modal-dialog.modal-large,
    #eventCreationWizardModal.modal .modal-dialog.modal-xl,
    #addEventModal.modal .modal-dialog.modal-xl {
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    #tab-participants .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    #participants-table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    #participants-table tbody td {
        padding: 6px 8px !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        font-size: 0.85rem !important;
    }
    
    #participants-table thead th {
        padding: 8px 8px !important;
        font-size: 0.8rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Role badge inherits table cell font-size on mobile */
    #participants-table tbody td .badge {
        font-size: inherit !important;
    }
    
    /* Contact column - right-aligned and smaller buttons on mobile */
    #participants-table tbody td:last-child,
    #participants-table thead th:last-child {
        text-align: right !important;
    }
    
    #participants-table .participant-actions {
        justify-content: flex-end !important;
        align-items: flex-end !important;
    }
    
    #participants-table .participant-action-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    #participants-table .participant-action-btn i {
        font-size: 12px !important;
    }
    
    /* Reduce photo margin on mobile */
    #participants-table .participant-photo-container {
        margin-right: 0.25rem !important;
    }
    
    /* Remove left and right padding from search box container and parent */
    #tab-participants .row.mb-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    #tab-participants .row.mb-3 .col-md-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .participants-search-box.position-relative {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .participants-search-box input {
        padding-left: 40px !important;
        padding-right: 0.75rem !important;
    }
    
    /* Past Meetings Table - Mobile Responsive (Same as Participants) */
    #tab-meetings .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    #past-events-table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    #past-events-table tbody td {
        padding: 6px 8px !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        font-size: 0.85rem !important;
    }
    
    #past-events-table thead th {
        padding: 8px 8px !important;
        font-size: 0.8rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Give more space to Title and Type columns on mobile */
    #past-events-table thead th:nth-child(1),
    #past-events-table tbody td:nth-child(1) {
        width: 15% !important;
        min-width: 80px;
    }
    
    #past-events-table thead th:nth-child(2),
    #past-events-table tbody td:nth-child(2) {
        width: 40% !important;
        min-width: 120px;
    }
    
    #past-events-table thead th:nth-child(3),
    #past-events-table tbody td:nth-child(3) {
        width: 30% !important;
        min-width: 100px;
    }
    
    #past-events-table thead th:nth-child(4),
    #past-events-table tbody td:nth-child(4) {
        width: 15% !important;
        min-width: 60px;
    }

    #detailTabs .nav-link:not(.active) {
        padding: 8px 8px;
    }
    #detailTabs .nav-link.active .tab-text {
        margin-left: 0.2rem;
    }
    #detailTabs .nav-link.active {
        padding: 8px 6px;
    }
    
    /* Calendar Tab - Mobile Responsive Styles */
    #tab-calendar .calendar-month-title {
        font-size: 1.1rem !important;
        padding: 0.5rem 0;
        margin: 0;
        line-height: 1.3;
    }
    
    #tab-calendar .btn-group {
        gap: 0.25rem;
    }
    
    #tab-calendar .btn-outline-secondary {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem !important;
        min-width: auto;
        line-height: 1.2;
    }
    
    #tab-calendar #detail-calendar-today-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        line-height: 1.2;
    }
    
    #tab-calendar .btn-outline-secondary i {
        font-size: 0.75rem;
    }
    
    /* Adjust calendar navigation container spacing */
    #tab-calendar .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
    }
    
    #tab-calendar .d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important;
    }
}

/* Extra small screens - further reduce calendar navigation */
@media (max-width: 576px) {
    #tab-calendar .calendar-month-title {
        font-size: 1rem !important;
        padding: 0.4rem 0;
    }
    
    #tab-calendar .btn-outline-secondary {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    #tab-calendar #detail-calendar-today-btn {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    #tab-calendar .btn-outline-secondary i {
        font-size: 0.7rem;
    }
    
    #tab-calendar .d-flex.justify-content-between {
        gap: 0.5rem;
    }
    
    #tab-calendar .d-flex.align-items-center.gap-3 {
        gap: 0.35rem !important;
    }
    
    #tab-calendar .btn-group {
        gap: 0.2rem;
    }
}

/* Mobile Cards Container for Participants */
.mobile-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile Card */
.mobile-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mobile-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Card Header (Sticky - Always Visible) */
.mobile-card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-card-header:hover {
    background-color: #f8f9fa;
}

.mobile-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color, #233D6C);
    margin: 0;
    flex: 1;
}

.mobile-card-header .new-badge,
.mobile-card-header .suspended-badge {
    margin-left: 6px;
    margin-top: 0;
    vertical-align: middle;
}

.mobile-card-chevron {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color, #233D6C);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.mobile-card.expanded .mobile-card-chevron {
    transform: rotate(180deg);
}

/* Card Body (Expandable Accordion) */
.mobile-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.mobile-card.expanded .mobile-card-body {
    max-height: 2000px; /* Large enough for content */
}

.mobile-card-content {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
}

.mobile-card-field {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-card-field:last-child {
    border-bottom: none;
}

/* Remove border from field that's immediately before contact buttons */
.mobile-card-field-before-actions {
    border-bottom: none !important;
}

.mobile-card-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 120px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.mobile-card-value {
    flex: 1;
    color: #212529;
    font-size: 0.875rem;
    word-break: break-word;
}

/* Badge styling inside accordion section */
.mobile-card-value .badge {
    display: inline-block;
    background-color: var(--primary-color, #233D6C) !important;
    color: #fff !important;
    white-space: nowrap;
    word-break: keep-all;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    vertical-align: middle;
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.mobile-card-actions .participant-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color, #233D6C);
    background: #fff;
    color: var(--primary-color, #233D6C);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.mobile-card-actions .participant-action-btn:hover {
    background: var(--primary-color, #233D6C);
    color: #fff;
}

.mobile-card-actions .participant-action-btn i {
    font-size: 14px;
}

/* Badge Styles - Match Chapter Portal */
.new-badge {
    display: inline-block;
    padding: 0px 8px 1px;
    font-size: 0.9rem;
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-weight: 400;
    color: #fff;
    background-color: var(--primary-color, #233D6C);
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: capitalize;
}

.suspended-badge {
    display: inline-block;
    padding: 0px 8px 1px;
    font-size: 0.9rem;
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-weight: 400;
    color: #fff;
    background-color: #dc3545;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: capitalize;
}

/* Hide desktop table on mobile, show mobile cards */
@media (max-width: 991.98px) {
    .table-responsive.d-none.d-lg-block {
        display: none !important;
    }
    
    .mobile-cards-container.d-lg-none {
        display: flex !important;
    }
}

/* Show desktop table on large screens, hide mobile cards */
@media (min-width: 992px) {
    .mobile-cards-container.d-lg-none {
        display: none !important;
    }
}
