.bni-tc-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bni-tc-header {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bni-tc-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bni-tc-view-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f0f0f1;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bni-tc-view-btn:hover {
    background: #e8e8e9;
}

.bni-tc-view-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.bni-tc-view-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.bni-tc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bni-tc-filter-btn {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #dcdcde;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bni-tc-filter-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.bni-tc-filter-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.bni-tc-events-list {
    display: grid;
    gap: 20px;
}

.bni-tc-event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: all 0.3s ease;
}

.bni-tc-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.bni-tc-event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    gap: 16px;
}

.bni-tc-event-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.4;
}

.bni-tc-event-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f6fc;
    color: #2271b1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.bni-tc-event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bni-tc-event-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #50575e;
    font-size: 15px;
}

.bni-tc-event-detail .dashicons {
    color: #2271b1;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.bni-tc-event-description {
    margin: 16px 0;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    color: #50575e;
    line-height: 1.6;
}

.bni-tc-event-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.bni-tc-event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bni-tc-event-link:hover {
    color: #135e96;
}

.bni-tc-event-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.bni-tc-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bni-tc-no-events p {
    font-size: 18px;
    color: #646970;
}

.bni-tc-calendar-view {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.bni-tc-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e5e5;
}

.bni-tc-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bni-tc-nav-btn:hover {
    background: #135e96;
}

.bni-tc-nav-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

#bni-tc-current-month {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
}

.bni-tc-calendar-grid {
    margin-bottom: 24px;
}

.bni-tc-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.bni-tc-calendar-day-name {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: #f0f0f1;
    color: #50575e;
}

#bni-tc-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bni-tc-calendar-day {
    aspect-ratio: 1;
    padding: 12px;
    background: #f9f9f9;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bni-tc-calendar-day:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.bni-tc-calendar-day.other-month {
    color: #a7aaad;
    background: #fafafa;
}

.bni-tc-calendar-day.has-events {
    background: #e7f5ff;
    font-weight: 700;
}

.bni-tc-calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    background: #2271b1;
    border-radius: 50%;
}

.bni-tc-calendar-day.selected {
    background: #2271b1;
    color: #fff;
    border-color: #135e96;
}

.bni-tc-selected-day-events {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e5e5e5;
}

.bni-tc-selected-day-events h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.bni-tc-day-event {
    padding: 16px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.bni-tc-day-event h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

.bni-tc-day-event p {
    margin: 4px 0;
    color: #50575e;
    font-size: 14px;
}

.bni-tc-day-event a {
    display: inline-block;
    margin-top: 8px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.bni-tc-day-event a:hover {
    color: #135e96;
}

@media (max-width: 768px) {
    .bni-tc-view-toggle {
        flex-direction: column;
    }

    .bni-tc-event-header {
        flex-direction: column;
    }

    .bni-tc-calendar-nav {
        flex-direction: column;
        gap: 12px;
    }

    .bni-tc-calendar-day-name,
    .bni-tc-calendar-day {
        font-size: 12px;
        padding: 8px 4px;
    }

    #bni-tc-current-month {
        font-size: 18px;
    }
}
