/* Shop Admin Styles */

.sfb-shop-admin {
    margin-top: 2rem;
}

.sfb-card--shop-admin {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #0f3460;
}

.sfb-items-table.table > :not(caption) > * > * {
    background-color: #0f172a;
    color: #e4e4e7;
    border-color: #3f3f46;
}

.sfb-items-table thead {
    background-color: rgba(15, 52, 96, 0.3);
    border-bottom: 2px solid #0f3460;
}

.sfb-items-table thead th {
    color: #fbbf24;
    font-weight: 600;
    padding: 1rem;
}

.sfb-items-table tbody tr {
    border-bottom: 1px solid #3f3f46;
    transition: background-color 0.2s ease;
    background-color: #0f172a;
}

.sfb-items-table tbody tr:hover {
    background-color: rgba(15, 52, 96, 0.2);
}

.sfb-item-card__image--placeholder {
    width: 100%;
    max-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 8px;
    background-color: rgba(15, 52, 96, 0.2);
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}
.sfb-items-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.sfb-form__title {
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.sfb-form__content {
    background-color: rgba(15, 52, 96, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #0f3460;
}

.sfb-form__group {
    margin-bottom: 1.5rem;
}

.sfb-form__group label {
    color: #e4e4e7;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.sfb-form__group--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sfb-form__group input[type="checkbox"] {
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
}

.sfb-input {
    background-color: #1a1a2e;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
}

.sfb-input:focus {
    background-color: #1a1a2e;
    border-color: #fbbf24;
    color: #e4e4e7;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.sfb-input::placeholder {
    color: #71717a;
}

.sfb-input option {
    background-color: #1a1a2e;
    color: #e4e4e7;
}

.sfb-form__actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.sfb-btn--xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.sfb-btn--danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
}

.sfb-btn--danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.sfb-btn--secondary {
    background-color: #3f3f46;
    border-color: #3f3f46;
    color: #e4e4e7;
}

.sfb-btn--secondary:hover {
    background-color: #52525b;
    border-color: #52525b;
}

.sfb-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    gap: 0;
}

.sfb-btn--icon:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: scale(1.1);
}


.sfb-btn--icon.sfb-btn--danger {
    background-color: #dc2626;
    border-color: #dc2626;
}

.sfb-btn--icon.sfb-btn--danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.sfb-item-card__footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.sfb-modal {
    background-color: #1a1a2e;
    border: 2px solid #0f3460;
}

.sfb-modal__header {
    background-color: rgba(15, 52, 96, 0.3);
    border-bottom: 1px solid #0f3460;
}

.sfb-modal__header .modal-title {
    color: #fbbf24;
    font-weight: 700;
}

.sfb-modal__body {
    background-color: #1a1a2e;
    color: #e4e4e7;
}

.sfb-modal__footer {
    background-color: rgba(15, 52, 96, 0.2);
    border-top: 1px solid #0f3460;
}

.alert {
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #86efac;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #fca5a5;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #93c5fd;
}

.btn-close {
    filter: invert(1);
}

/* Toasts (admin confirmations) */
.toast {
    background: rgba(15, 10, 27, 0.92) !important;
    color: #f5f3ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.toast.bg-success {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: #22c55e;
}

.toast.bg-danger {
    background: rgba(220, 38, 38, 0.18) !important;
    border-color: #dc2626;
}

.toast.bg-info {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6;
}

/* Item Cards */
.sfb-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
    padding-top: 0.25rem;
}

#currencies-list {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
}

#currencies-list .sfb-item-card {
    flex: 0 0 200px;
    width: 200px;
}

.sfb-item-card {
    background: rgba(15, 10, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sfb-item-card:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.08);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.1);
}

.sfb-item-card--sm {
    max-width: 100%;
}

.sfb-item-card__header {
    padding: 0.5rem 0.65rem;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sfb-item-card__title {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.sfb-item-card__body {
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: auto;
}

.sfb-item-card__image {
    width: 100%;
    max-width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.65rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
}

.sfb-item-card__image-sm {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
}

.sfb-item-card__description {
    color: #cbd5f5;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sfb-item-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sfb-item-meta {
    display: inline-flex;
    align-items: center;
    background-color: rgba(15, 52, 96, 0.3);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #e4e4e7;
    border: 1px solid #0f3460;
    gap: 0.45rem;
}

.sfb-item-meta__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.sfb-item-card__footer {
    padding: 0.65rem 0.75rem;
    background-color: rgba(15, 52, 96, 0.2);
    border-top: 1px solid #0f3460;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
}

.sfb-currency-regen-placeholder {
    background: rgba(13, 202, 240, 0.06) !important;
    border-color: rgba(13, 202, 240, 0.35) !important;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sfb-currency-regen-box {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sfb-items-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sfb-form__content {
        padding: 1rem;
    }

    .sfb-items-table {
        font-size: 0.875rem;
    }

    .sfb-items-table thead th,
    .sfb-items-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .sfb-btn--xs {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .sfb-form__actions {
        flex-direction: column;
    }

    .sfb-item-card__footer {
        flex-direction: column;
    }

    .sfb-item-card__image {
        max-width: 150px;
        max-height: 150px;
    }
}
