:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #facc15;
    /* Tennis ball yellow-ish */
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --border: #e2e8f0;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    background-image: linear-gradient(rgba(248, 250, 252, 0.4), rgba(248, 250, 252, 0.5)), url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar__brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar__roles {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.navbar__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin: 0 0.75rem;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn--sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
    background: transparent;
    color: var(--gray);
}

.btn--sm.btn--active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--success {
    background: var(--success);
    color: white;
}

.btn--danger {
    background: var(--danger);
    color: white;
}

.btn--outline-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.w-100 {
    width: 100%;
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

/* Lists */
.calendar-list,
.submission-list,
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--gray);
}

.event-card--P25 {
    border-left-color: #60a5fa;
}

.event-card--P50 {
    border-left-color: #f59e0b;
}

.event-card--P100 {
    border-left-color: #34d399;
}

.event-card--P250 {
    border-left-color: #fbbf24;
}

.event-card--P500 {
    border-left-color: #f87171;
}

.event-card--P1000 {
    border-left-color: #fb923c;
}

.event-card--P1500 {
    border-left-color: #a78bfa;
}

.event-card--P2000 {
    border-left-color: #1e293b;
}

/* Tennis Categories */
.event-card--TMC-Hommes {
    border-left-color: #3b82f6;
    /* Blue */
}

.event-card--TMC-Femmes {
    border-left-color: #ec4899;
    /* Pink */
}

.event-card--OPEN-Hommes {
    border-left-color: #10b981;
    /* Green */
}

.event-card--OPEN-Femmes {
    border-left-color: #f97316;
    /* Orange */
}

.event-info {
    flex: 1;
}

.event-date {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.event-title {
    color: var(--primary);
    font-weight: 600;
}

.event-club {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-approved {
    background: #f0fdf4;
    color: #15803d;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

/* Admin Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card--alert .stat-number {
    color: var(--danger);
}

/* Club management */
.club-add-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.club-add-form input {
    flex: 1;
}

.club-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.club-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--light);
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.club-list-item .club-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}


/* Generic Utilities */
.hidden {
    display: none !important;
}

.btn--ghost {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
}

.btn--ghost:hover {
    background: var(--border);
}

/* =============================
   ANNUAL CALENDAR
   ============================= */

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.calendar-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    min-width: 5rem;
    text-align: center;
}

.cal-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-P25 {
    background: #60a5fa;
}

.dot-P50 {
    background: #f59e0b;
}

.dot-P100 {
    background: #34d399;
}

.dot-P250 {
    background: #fbbf24;
}

.dot-P500 {
    background: #f87171;
}

.dot-P1000 {
    background: #fb923c;
}

.dot-P1500 {
    background: #a78bfa;
}

.dot-P2000 {
    background: #1e293b;
}

/* Tennis Dots */
.dot-TMC-Hommes {
    background: #3b82f6;
}

.dot-TMC-Femmes {
    background: #ec4899;
}

.dot-OPEN-Hommes {
    background: #10b981;
}

.dot-OPEN-Femmes {
    background: #f97316;
}

/* Filter bar */
.cal-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-right: 1rem;
    background: var(--light);
}

#filter-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.filter-check input {
    cursor: pointer;
}

.annual-calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .annual-calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .annual-calendar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Month block */
.month-block {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.month-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.5rem;
}

.day-name {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray);
    padding: 2px 0;
    text-transform: uppercase;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 50%;
    cursor: default;
    position: relative;
}

.day-cell.empty {
    background: transparent;
}

.day-cell.today {
    font-weight: 700;
    color: var(--primary);
    outline: 2px solid var(--primary);
}

/* Tournament day styling */
.day-cell.has-tournament {
    font-weight: 700;
    color: white;
    cursor: pointer;
}

.day-cell.has-tournament:hover {
    opacity: 0.85;
    filter: brightness(1.1);
}

.day-cell.cat-P25 {
    background: #60a5fa;
}

.day-cell.cat-P50 {
    background: #f59e0b;
    color: white;
}

.day-cell.cat-P100 {
    background: #34d399;
}

.day-cell.cat-P250 {
    background: #fbbf24;
    color: #1a1a1a;
}

.day-cell.cat-P500 {
    background: #f87171;
}

.day-cell.cat-P1000 {
    background: #fb923c;
}

.day-cell.cat-P1500 {
    background: #a78bfa;
}

.day-cell.cat-P2000 {
    background: #1e293b;
}

.club-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Tennis Days */
.day-cell.cat-TMC-Hommes {
    background: #3b82f6;
}

.day-cell.cat-TMC-Femmes {
    background: #ec4899;
}

.day-cell.cat-OPEN-Hommes {
    background: #10b981;
}

.day-cell.cat-OPEN-Femmes {
    background: #f97316;
}

/* Multi-tournament: gradient */
.day-cell.multi {
    background: linear-gradient(135deg, #60a5fa 50%, #f87171 50%);
}

/* Tooltip */
.event-tooltip {
    position: fixed;
    background: var(--dark);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 230px;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* =============================
   LOGIN MODAL
   ============================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--primary);
    border: 2px solid var(--border);
}

.modal-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.btn--cancel {
    background: var(--light);
    color: var(--gray);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.btn--cancel:hover {
    background: var(--border);
    color: var(--dark);
}

/* Lock icon on protected nav buttons */
.role-locked::after {
    content: ' 🔒';
    font-size: 0.7em;
}


.event-tooltip .tip-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.event-tooltip .tip-club {
    color: #94a3b8;
    font-size: 0.8rem;
}

.event-tooltip .tip-cat {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
}

.conflict-alert {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* =============================
   PRINT STYLES FOR PDF EXPORT
   ============================= */
/* =============================
   DASHBOARD VIEW
   ============================= */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    display: flex;
    flex-direction: column;
}

.dashboard-card h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.dashboard-full-width {
    grid-column: 1 / -1;
}

.dash-big-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1;
    margin: auto 0;
}

.dashboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--light);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.dash-label {
    font-weight: 500;
    color: var(--dark);
}

.dash-count {
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dashboard-empty {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 2rem 0;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin-top: 1rem;
}

/* Hide the print list on screen view */
.print-list {
    display: none;
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: var(--light);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin: 0 1rem;
}

.view-switcher .btn--sm {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-switcher .btn--sm.btn--active {
    background: var(--primary);
    color: white;
}

/* Premium Feed */
.public-feed {
    max-width: 800px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feed-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feed-card:hover {
    transform: translateY(-5px);
}

.feed-card__header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(to right, #f8fafc, white);
    border-bottom: 1px solid var(--border);
}

.feed-card__logo-container {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feed-card__club-info {
    flex: 1;
}

.feed-card__club-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.feed-card__tournament-name {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.feed-card__body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feed-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.feed-card__meta-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.feed-card__date-box {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border-left: 5px solid var(--gray);
}

.feed-card--P25 .feed-card__date-box {
    border-left-color: #60a5fa;
}

.feed-card--P50 .feed-card__date-box {
    border-left-color: #f59e0b;
}

.feed-card--P100 .feed-card__date-box {
    border-left-color: #34d399;
}

.feed-card--P250 .feed-card__date-box {
    border-left-color: #fbbf24;
}

.feed-card--P500 .feed-card__date-box {
    border-left-color: #f87171;
}

.feed-card--P1000 .feed-card__date-box {
    border-left-color: #fb923c;
}

.feed-card--P1500 .feed-card__date-box {
    border-left-color: #a78bfa;
}

.feed-card--P2000 .feed-card__date-box {
    border-left-color: #1e293b;
}

.feed-card__date-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.feed-card__date-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
}

.feed-card__footer {
    padding: 1rem 1.5rem;
    background: #fdfdfd;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .feed-card__header {
        flex-direction: column;
        text-align: center;
    }

    .feed-card__body {
        grid-template-columns: 1fr;
    }
}

/* Interactive Explorer */
.event-explorer {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.explorer-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.explorer-logo-container {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    margin: 0 auto 1rem;
    padding: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.explorer-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.explorer-club-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.explorer-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.explorer-tournaments {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.explorer-event {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.explorer-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.explorer-event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.explorer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.explorer-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.explorer-meta-item i {
    color: var(--primary);
    width: 16px;
}

.explorer-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--light);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

@media (max-width: 1200px) {
    .event-explorer {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        top: auto;
        transform: none;
        width: calc(100% - 2rem);
        max-width: 400px;
        animation: slideInUp 0.4s ease;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media print {
    body {
        background-color: white;
    }

    .navbar,
    .calendar-toolbar button,
    .cal-filter,
    #event-tooltip,
    .btn,
    .annual-calendar,
    .cal-legend,
    .section-header p {
        display: none !important;
    }

    .print-list {
        display: block !important;
    }

    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Print List Styles */
    .print-list-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .print-logo {
        height: 60px;
        width: auto;
        margin-bottom: 0.75rem;
    }

    .print-list-header h1 {
        font-size: 1.8rem;
        color: var(--primary);
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #ccc;
        padding: 0.75rem;
        text-align: left;
    }

    .print-table th {
        background-color: var(--light) !important;
        font-weight: 700;
        color: var(--dark);
    }

    .print-title {
        font-weight: 600;
        color: var(--primary) !important;
    }

    .print-cat {
        display: inline-block;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        color: white !important;
    }

    /* Keep background colors for category tags */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .section-header {
        display: none;
        /* Hide original header since print list has its own */
    }

    @page {
        size: portrait;
        margin: 1.5cm;
    }
}