/* Credits Plugin Stylesheet — Curves UI / Bootstrap 5.3 Compatible */

.credits_ucolor,
.credits_ucolor * { color: var(--credits-ucolor) !important; }

/* Curves UI bg-nav background for card headers */
.bg-nav { background-color: rgb(242, 242, 242); }

/* Inventory card collapse behavior */
.credits_inv_card_header::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s;
}
.credits_inv_card_collapsed .credits_inv_card_header::after {
    transform: rotate(-90deg);
}
.credits_inv_card_collapsed .credits_inv_card_body {
    display: none;
}

/* Inventory item preview images */
.credits_inv_item_preview img {
    max-width: 28px;
    max-height: 28px;
}

/* Inventory action buttons */
.credits_inv_btn {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #666;
}
.credits_inv_btn:hover {
    background: #f2f2f2;
    border-color: #999;
}
.credits_inv_btn:disabled { opacity: 0.4; cursor: wait; }
.credits_inv_btn_on {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.credits_inv_btn_on:hover { background: #c3e6cb; }
.credits_inv_btn_off {
    background: #fff;
    border-color: #dee2e6;
    color: #666;
}
.credits_inv_btn_edit { color: #007fd0; }
.credits_inv_btn_edit:hover {
    background: #e7f3ff;
    border-color: #007fd0;
}
.credits_inv_item.credits_inv_active { border-left: 3px solid #28a745; }
.credits_inv_item.credits_inv_inactive { opacity: 0.7; }
.credits_inv_item.credits_inv_expired { opacity: 0.5; }
.credits_inv_item:hover { background: #fafafa; }

/* Shop/inventory sidebar */
.credits_shop_sidebar_link.active {
    background: #007fd0 !important;
    color: #fff !important;
    font-weight: 600;
}

/* ---- Pill Navigation ---- */
.credits-nav-wrap { margin-bottom: 0; }
.credits-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
    margin: 0 -2px;
    -ms-overflow-style: none;
}
.credits-nav::-webkit-scrollbar { display: none; }
.credits-nav::after {
    content: '';
    flex-shrink: 0;
    width: 1px;
}
.credits-nav-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #666;
    background: #fff;
    transition: all 0.15s ease;
}
.credits-nav-pill:hover {
    color: #007fd0;
    border-color: #007fd0;
    text-decoration: none;
    background: #f0f7ff;
}
.credits-nav-pill.active {
    background: #007fd0;
    color: #fff !important;
    border-color: #007fd0;
}

/* ---- Filter Chips (shop/inventory categories) ---- */
.credits-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fafafa;
}
.credits-filters::-webkit-scrollbar { display: none; }
.credits-filter-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.credits-filter-chip:hover {
    border-color: #007fd0;
    color: #007fd0;
    text-decoration: none;
}
.credits-filter-chip.active,
.credits_shop_sidebar_link.active {
    background: #007fd0 !important;
    color: #fff !important;
    border-color: #007fd0 !important;
    font-weight: 500;
}

/* Credit amount coloring */
.credits_positive { color: #28a745; }
.credits_negative { color: #dc3545; }