/* ===================================================
   Focus rings / accessibility
   =================================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Family header collapse trigger: suppress focus ring so the header does not show a blue box on click */
.family-header-collapse-trigger:focus {
    outline: none;
    box-shadow: none;
}

/* ===================================================
   App shell — full-height sidebar + scrollable content
   =================================================== */

html,
body {
    height: 100%;
    margin: 0;
}

/* The outer shell fills the full viewport as a flex row */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===================================================
   Sidebar
   =================================================== */

.app-sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

/* Logo / organisation header */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
}

.sidebar-logo {
    flex-shrink: 0;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-org-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sidebar-app-title {
    font-size: 0.625rem;
    font-weight: 300;
    color: #888888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===================================================
   Primary nav items
   =================================================== */

.sidebar-nav {
    padding: 8px 0;
}

.sidebar-nav-item {
    margin: 0;
}

/* Shared styles for both <a> links and <button> toggles */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #3d3d3d;
    background: none;
    border: 1px solid transparent;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-align: left;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sidebar-nav-link:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 8px;
    padding: 10px 8px;
    width: calc(100% - 16px);
}

.sidebar-nav-link.active {
    background-color: #f0f0f0;
    border-color: #cccccc;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0 8px;
    padding: 10px 8px;
    width: calc(100% - 16px);
}

/* Collapse toggle chevron */
.sidebar-nav-toggle {
    position: relative;
}

.sidebar-nav-toggle::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.sidebar-nav-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.sidebar-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav-link.active .sidebar-icon,
.sidebar-nav-link:hover .sidebar-icon {
    opacity: 1;
}

/* ===================================================
   Sub-navigation
   =================================================== */

.sidebar-subnav {
    padding: 4px 0 8px;
    background-color: #fafafa;
}

.sidebar-subnav-group {
    padding: 10px 16px 2px 16px;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaaaaa;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sidebar-subnav-link {
    display: block;
    padding: 5px 16px 5px 32px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #555555;
    text-decoration: none;
    transition: background-color 0.12s ease;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sidebar-subnav-link:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
}

.sidebar-subnav-link.active {
    color: #1a1a1a;
    font-weight: 600;
}

/* ===================================================
   Sidebar footer — Profile / Logout
   =================================================== */

.sidebar-footer {
    border-top: 1px solid #e5e5e5;
    padding: 8px 0;
    margin-top: auto;
}

/* Reset for the logout <button> so it renders identically to <a> links.
   Do NOT reset padding/border here — those come from .sidebar-nav-link. */
.btn-reset {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

/* The <form> wrapping the logout button must be full width so the button fills the sidebar */
.sidebar-footer form {
    display: block;
    width: 100%;
}

/* ===================================================
   Content area (right of sidebar)
   =================================================== */

.app-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.app-main {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 28px 32px;
    background-color: #ffffff;
}

/* ===================================================
   Footer (inside content area)
   =================================================== */

.app-footer {
    flex-shrink: 0;
    background-color: #ffffff;
    color: #6c757d;
}

/* ===================================================
   Alert overlay: fixed, slides in from right, does not take page space
   =================================================== */

.alert-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    max-width: 24rem;
    width: 100%;
    pointer-events: none;
}

.alert-container .alert {
    pointer-events: auto;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.alert-container .alert:last-child {
    margin-bottom: 0;
}

.alert-slide-in {
    animation: alert-slide-in-from-right 0.35s ease-out;
}

@keyframes alert-slide-in-from-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================================
   Utility overrides
   =================================================== */

.border-top {
    border-top: 1px solid #e5e5e5 !important;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5 !important;
}

.box-shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* ===================================================
   Members page — list view
   =================================================== */

.members-page-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.members-total-count {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #888888;
}

/* Add Member button — wraps Bootstrap btn-outline-secondary */
.members-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
}

/* ── Toolbar ── */

.members-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.members-toolbar-search-form {
    flex: 1 1 240px;
    min-width: 200px;
}

.members-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.members-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.members-search-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.04);
}

.members-search-input {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    width: 100%;
    padding: 8px 44px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.members-search-input:focus {
    border-color: #b0b0b0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.members-search-input::placeholder {
    color: #aaaaaa;
}

/* Toolbar filter / sort buttons */
.members-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #3d3d3d;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.members-toolbar-btn:hover,
.members-toolbar-btn:focus {
    background-color: #f0f0f0;
    border-color: #c0c0c0;
    color: #1a1a1a;
}

.members-toolbar-btn-active {
    border-color: #aaaaaa;
    background-color: #f0f0f0;
    font-weight: 500;
}

/* Small dot indicator on Filters button when a non-default filter is active */
.members-filter-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e87722;
    flex-shrink: 0;
}

.members-filter-panel,
.members-sort-panel {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.members-filter-option {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ── Tab bar ── */

.members-tab-bar {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.members-tab {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #888888;
    cursor: default;
    user-select: none;
}

.members-tab.active {
    color: #1a1a1a;
    font-weight: 500;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: -2px;
}

/* ── Member list rows — individual card boxes ── */

.members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.member-list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
    color: inherit;
}

.member-list-row:hover {
    background-color: #f5f5f5;
    border-color: #c8c8c8;
    text-decoration: none;
}

.member-list-row:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Row icon — shared by member-list-row and family-list-row-header */
.row-list-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    opacity: 0.55;
}

/* Avatar circle */
.member-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* 5 deterministic avatar colours — assigned by (charCode of lastName[0]) % 5 */
.member-avatar-0 { background-color: #e87722; } /* orange   */
.member-avatar-1 { background-color: #2a9d8f; } /* teal     */
.member-avatar-2 { background-color: #457b9d; } /* steel blue */
.member-avatar-3 { background-color: #7c5cbf; } /* purple   */
.member-avatar-4 { background-color: #2d9e4e; } /* green    */

/* Member info section (uses _MemberSummary partial output) */
.member-row-info {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    color: #3d3d3d;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    line-height: 1.4;
}

.member-row-info span {
    font-size: 0.8125rem;
}

/* Status badge column */
.member-row-status {
    flex-shrink: 0;
    margin-left: auto;
}

.member-status-badge {
    display: inline-block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.member-status-active {
    color: #1c7c3a;
    background-color: #e8f7ed;
}

.member-status-inactive {
    color: #666666;
    background-color: #f0f0f0;
}

.member-status-dna {
    color: #9b1c1c;
    background-color: #fde8e8;
}

.member-status-registered {
    color: #555555;
    background-color: #f0f0f0;
}

.members-empty-state {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    color: #888888;
}

/* ── Pagination ── */

.member-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.member-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #3d3d3d;
    text-decoration: none;
    transition: background-color 0.12s ease;
}

.member-pagination-arrow:hover {
    background-color: #f0f0f0;
}

.member-pagination-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.member-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #3d3d3d;
    text-decoration: none;
    padding: 0 6px;
    transition: background-color 0.12s ease;
}

.member-pagination-page:hover {
    background-color: #f0f0f0;
    text-decoration: none;
    color: #1a1a1a;
}

.member-pagination-page.active {
    background-color: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    pointer-events: none;
}

/* ── Families page – detail view ───────────────────────────────────────────── */

/* Breadcrumb */
.fd-breadcrumb .breadcrumb {
    font-size: 0.8125rem;
    color: #6c757d;
}
.fd-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.fd-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.fd-breadcrumb .breadcrumb-item.active { color: #1a1a1a; font-weight: 600; }

/* Page header */
.fd-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.fd-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}
.fd-detail-member-count {
    font-size: 0.875rem;
}
.fd-add-member-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tab bar */
.fd-tab-nav {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    gap: 0;
}
.fd-tab-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.fd-tab-link:hover { color: #1a1a1a; }
.fd-tab-link-active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #1a1a1a;
}

/* Section card (Family Members / Notes) */
.fd-section-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.fd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
.fd-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
}
.fd-section-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6c757d;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.fd-section-action-btn:hover { color: #1a1a1a; }

/* Member rows */
.fd-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 14px;
    border-bottom: 1px solid #f3f3f3;
    background: #fff;
}
.fd-member-row:last-child { border-bottom: none; }
.fd-member-row-left { flex: 1; min-width: 0; }
.fd-member-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}
.fd-member-name:hover { text-decoration: underline; }
.fd-member-meta {
    font-size: 0.75rem;
    margin-top: 1px;
}

/* Notes preview */
.fd-note-preview {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
}
.fd-note-preview-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.fd-note-label {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6c757d;
}
.fd-note-preview-text {
    font-size: 0.875rem;
    color: #1a1a1a;
}
.fd-note-author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fd-note-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 14px;
    background: #fafafa;
}
.fd-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fd-view-all-link:hover { text-decoration: underline; }

/* ── Member panel header (inside the card, above the tabs) ─────────────────── */
.fd-member-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px;
}
.fd-member-demographics {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}

/* ── Member card font ────────────────────────────────────────────────────────── */
.fd-member-card {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* ── Overview field label / value pattern ───────────────────────────────────── */
.fd-field-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 80px;
}

.fd-field-value {
    font-size: 0.8125rem;
    color: #1a1a1a;
}

/* Subtle divider between detail rows */
.fd-row-sep {
    border-top: 1px solid #f3f3f3;
}

/* ── Families page – list view ─────────────────────────────────────────────── */

.families-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.families-total-count {
    font-size: 0.875rem;
    color: #6c757d;
}

.families-add-btn {
    /* inherits from btn btn-outline-secondary */
}

.families-empty-state {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fafafa;
    color: #6c757d;
    padding: 32px 16px;
}

/* Family accordion list */

.families-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.family-accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.family-list-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.12s ease;
    user-select: none;
}

.family-list-row-header:hover {
    background-color: #eef0f2;
}

.family-list-row-header:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.family-list-row-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.family-list-row-count {
    font-size: 0.8rem;
    margin-top: 1px;
}

/* Chevron expand button inside the row header */
.family-expand-btn {
    color: #6c757d;
    line-height: 1;
    font-size: 1.4rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: background-color 0.12s ease;
}

.family-expand-btn:hover {
    background-color: rgba(0,0,0,0.08);
    color: #333;
}

/* Show right chevron when collapsed, down chevron when expanded */
.family-chevron-collapsed,
.family-chevron-expanded {
    display: block;
}

.family-expand-btn[aria-expanded="false"] .family-chevron-expanded { display: none; }
.family-expand-btn[aria-expanded="true"]  .family-chevron-collapsed { display: none; }

/* Collapsed member roster */
.family-list-members {
    border-top: 1px solid #e5e5e5;
    background-color: #ffffff;
}

.family-member-row {
    padding: 10px 16px 10px 68px; /* 68px left aligns text under the name, past avatar + gap */
    border-bottom: 1px solid #f3f3f3;
}

.family-member-row:last-of-type {
    border-bottom: none;
}

.family-member-row-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.family-member-row-meta {
    font-size: 0.8125rem;
    margin-top: 2px;
}

.family-list-members-footer {
    padding: 8px 16px 8px 68px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* ===================================================
   Events & Attendance page
   =================================================== */

/* Page header */
.events-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-page-date {
    font-size: 0.75rem;
    color: #888888;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* Create Event button */
.events-create-btn {
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

.events-create-btn:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

/* ── Toolbar ── */
.events-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #3d3d3d;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
    position: relative;
}

.events-toolbar-btn:hover {
    background-color: #f5f5f5;
    border-color: #bbbbbb;
}

.events-toolbar-btn-active {
    border-color: #1a1a1a;
    font-weight: 500;
    color: #1a1a1a;
}

/* Active-filter dot indicator */
.events-filter-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1a1a1a;
    margin-left: 2px;
    flex-shrink: 0;
}

/* Filter panel dropdown */
.events-filter-panel {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.events-filter-option {
    font-size: 0.8125rem;
    color: #3d3d3d;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-filter-option:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.events-filter-option.active {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* ── Tab bar ── */
.events-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-tab {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #888888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.events-tab:hover {
    color: #1a1a1a;
    text-decoration: none;
}

.events-tab.active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #1a1a1a;
}

/* ── Event list ── */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
    color: inherit;
}

.events-list-row:hover {
    border-color: #c0c0c0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}

.events-row-main {
    min-width: 0;
}

.events-row-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.events-row-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.events-row-meta {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: #666666;
    margin-top: 2px;
}

/* ── Status badges ── */
.events-status-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.events-status-started {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.events-status-published {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.events-status-completed {
    background-color: #f3f3f3;
    color: #555555;
    border: 1px solid #d0d0d0;
}

.events-status-draft {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* ── Count badges ── */
.events-row-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.events-count-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #3d3d3d;
    background-color: #f3f3f3;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Empty state ── */
.events-empty-state {
    padding-top: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    color: #888888;
}
