/* 
 * The Events Calendar Overrides 
 * Handled separately for cleanliness.
 */

/* Buttons (Modern & Legacy views) */
body .tribe-events .tribe-events-c-btn,
body .tribe-common-c-btn,
body .tribe-events-button,
body a.tribe-events-button,
.tribe-events .tribe-events-c-btn,
.tribe-common-c-btn,
.tribe-events-button,
a.tribe-events-button,
.tribe-events-calendar-list__event-row .tribe-events-calendar-list__event-row-details .tribe-events-calendar-list__event-row-link {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 20px !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
    display: inline-block !important;
    border: none;
}

.tribe-events .tribe-events-c-btn:hover,
.tribe-common-c-btn:hover,
.tribe-events-button:hover,
a.tribe-events-button:hover {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    opacity: 0.9;
    text-decoration: none;
}

/* Fix "Find Events" button alignment */
.tribe-events-c-events-bar__search-button {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}


/* Pagination / Navigation Buttons */
body .tribe-events .tribe-events-c-nav__prev,
body .tribe-events .tribe-events-c-nav__next,
body .tribe-events .tribe-events-c-nav__today,
.tribe-events-c-nav__prev,
.tribe-events-c-nav__next,
.tribe-events-c-nav__today {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 20px !important;
    /* Force padding */
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    display: inline-block !important;
    /* Force block behavior to respect padding */
    line-height: normal;
    font-weight: 500;
}

.tribe-events-c-nav__prev:hover,
.tribe-events-c-nav__next:hover,
.tribe-events-c-nav__today:hover {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Disabled state */
.tribe-events-c-nav__prev[disabled],
.tribe-events-c-nav__next[disabled] {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* SVG Icon alignment fixes */
.tribe-events-c-nav__prev-icon-svg,
.tribe-events-c-nav__next-icon-svg {
    fill: currentColor !important;
    width: 12px;
    height: 12px;
}