/* ===========================
   Favorite Button Styles
   (Shared across public pages & dashboard)
   =========================== */

/* --- Base favorite button (circle icon) --- */
.dashboard__favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--dashboard-danger, #e74c3c);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dashboard__favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.dashboard__favorite-btn-label {
    display: none;
}

/* --- Favorite button in training listing --- */
.courses__item-two {
    position: relative;
}

.courses__item-two .dashboard__favorite-btn {
    top: 8px;
    right: 8px;
}

.dashboard__favorite-btn--readonly {
    pointer-events: none;
}

/* --- Favorite button in training detail image --- */
.courses__details-thumb .dashboard__favorite-btn {
    top: 16px;
    right: 16px;
}

/* --- Header wishlist icon (navbar) --- */
.header-wishlist {
    display: flex;
    align-items: center;
}

.header-wishlist a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-wishlist a:hover {
    border-color: var(--tg-theme-primary);
}

.header-wishlist a img {
    width: 18px;
    height: 18px;
}

.header-wishlist__count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--tg-common-color-white);
    background: var(--tg-theme-secondary, #f8bc24);
    border-radius: 50%;
}
