/* =============================================
   SELLER COMMENTS PAGE - BS5 Compatible
   ============================================= */

/* ── Page Wrapper ── */
.sc-page {
    padding: 1.5rem 0 3rem;
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Page Header ── */
.sc-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.sc-header__title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 .25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sc-header__title h1 i {
    color: #4361ee;
    font-size: 1.3rem;
}

.sc-header__subtitle {
    font-size: .875rem;
    color: #6c757d;
    margin: 0;
}

/* ── Stat Cards ── */
.sc-stat-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    padding: .875rem 1rem;
    transition: box-shadow .2s, transform .2s;
    min-width: 0;
}

.sc-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}

.sc-stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sc-stat-card--total .sc-stat-card__icon {
    background: #e8eafd;
    color: #4361ee;
}

.sc-stat-card--waiting .sc-stat-card__icon {
    background: #fff3cd;
    color: #d4a017;
}

.sc-stat-card--approved .sc-stat-card__icon {
    background: #d1f5e0;
    color: #198754;
}

.sc-stat-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sc-stat-card__value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.sc-stat-card__label {
    font-size: .75rem;
    color: #6c757d;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Filter Tabs ── */
.sc-filter-bar {
    margin-bottom: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sc-filter-bar::-webkit-scrollbar {
    display: none;
}

.sc-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
    min-width: 100%;
}

.sc-tabs li {
    flex-shrink: 0;
}

.sc-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .625rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.sc-tabs__item:hover {
    color: #4361ee;
    text-decoration: none;
}

.sc-tabs__item--active {
    color: #4361ee;
    border-bottom-color: #4361ee;
    font-weight: 600;
}

/* ── Table (Sadece masaüstü) ── */
.sc-table-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    overflow: hidden;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
    table-layout: fixed;
}

.sc-table thead {
    background: #f8f9fb;
}

.sc-table thead th {
    padding: .75rem .75rem;
    font-weight: 600;
    color: #495057;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.sc-table tbody tr:last-child {
    border-bottom: none;
}

.sc-table tbody tr:hover {
    background: #f8f9fb;
}

.sc-table__cell {
    padding: .75rem .75rem;
    vertical-align: middle;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-table__cell--num {
    color: #adb5bd;
    font-weight: 600;
    text-align: center;
}

.sc-table__cell--actions {
    text-align: center;
    overflow: visible;
}

/* ── Date ── */
.sc-date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #6c757d;
    font-size: .8rem;
    white-space: nowrap;
}

.sc-date i {
    font-size: .75rem;
}

/* ── User Name ── */
.sc-user-name {
    font-weight: 500;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* ── Order ID ── */
.sc-order-id {
    display: inline-block;
    background: #f0f1f3;
    color: #495057;
    padding: .15rem .5rem;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 600;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    white-space: nowrap;
}

/* ── Product Name ── */
.sc-prod-name {
    font-size: .8rem;
    color: #495057;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Stars ── */
.sc-stars {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    flex-shrink: 0;
}

.sc-star {
    font-size: .75rem;
}

.sc-star--filled {
    color: #f59e0b;
}

.sc-star--half {
    color: #f59e0b;
}

.sc-star--empty {
    color: #d1d5db;
}

.sc-stars__value {
    font-size: .75rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: .35rem;
}

/* ── Comment Text ── */
.sc-comment-text {
    font-size: .8rem;
    color: #495057;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Badges ── */
.sc-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .625rem;
    border-radius: 2rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.sc-badge--waiting {
    background: #fff3cd;
    color: #856404;
}

.sc-badge--approved {
    background: #d1f5e0;
    color: #0d6832;
}

.sc-badge--denied {
    background: #f8d7da;
    color: #842029;
}

.sc-badge--deleted {
    background: #e9ecef;
    color: #495057;
}

.sc-badge--inspected {
    background: #cff4fc;
    color: #055160;
}

/* ── Action Buttons ── */
.sc-actions {
    display: flex;
    gap: .375rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: none;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.sc-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.sc-btn--view {
    width: 32px;
    height: 32px;
    background: #e8eafd;
    color: #4361ee;
}

.sc-btn--view:hover {
    background: #4361ee;
    color: #fff;
    box-shadow: 0 3px 8px rgba(67, 97, 238, .3);
}

.sc-btn--approve {
    width: 32px;
    height: 32px;
    background: #d1f5e0;
    color: #198754;
}

.sc-btn--approve:hover {
    background: #198754;
    color: #fff;
    box-shadow: 0 3px 8px rgba(25, 135, 84, .3);
}

/* ── Mobile Cards ── */
.sc-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.sc-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.sc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.sc-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem .875rem;
    background: #f8f9fb;
    border-bottom: 1px solid #f0f0f0;
    min-width: 0;
}

.sc-card__user {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    flex: 1;
}

.sc-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8eafd;
    color: #4361ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.sc-card__user-info {
    min-width: 0;
    flex: 1;
}

.sc-card__name {
    display: block;
    font-weight: 600;
    font-size: .8rem;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-card__date {
    display: block;
    font-size: .7rem;
    color: #6c757d;
    white-space: nowrap;
}

.sc-card__date i {
    font-size: .6rem;
}

.sc-card__body {
    padding: .75rem .875rem;
}

.sc-card__product {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8rem;
    color: #343a40;
    margin-bottom: .5rem;
    min-width: 0;
}

.sc-card__product i {
    color: #adb5bd;
    margin-top: .15rem;
    flex-shrink: 0;
}

.sc-card__product span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.sc-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.sc-card__comment {
    font-size: .8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sc-card__footer {
    display: flex;
    gap: .5rem;
    padding: .625rem .875rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.sc-card__footer .sc-btn {
    width: auto;
    height: auto;
    padding: .4rem .75rem;
    font-size: .75rem;
    flex: 1;
    justify-content: center;
}

/* ── Empty State ── */
.sc-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
}

.sc-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8eafd 0%, #d1d5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-empty__icon i {
    font-size: 1.75rem;
    color: #4361ee;
}

.sc-empty__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 .5rem;
}

.sc-empty__text {
    font-size: .875rem;
    color: #6c757d;
    margin: 0 auto;
    max-width: 320px;
}

/* ── Confirm Overlay ── */
.sc-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    padding: 1rem;
}

.sc-confirm-overlay--active {
    opacity: 1;
    visibility: visible;
}

.sc-confirm-box {
    background: #fff;
    border-radius: .75rem;
    padding: 1.75rem 1.5rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    transform: scale(.9);
    transition: transform .25s;
}

.sc-confirm-overlay--active .sc-confirm-box {
    transform: scale(1);
}

.sc-confirm-box__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d1f5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .875rem;
}

.sc-confirm-box__icon i {
    font-size: 1.25rem;
    color: #198754;
}

.sc-confirm-box__title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 .375rem;
}

.sc-confirm-box__text {
    font-size: .8125rem;
    color: #6c757d;
    margin: 0 0 1.25rem;
}

.sc-confirm-box__actions {
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.sc-confirm-box__btn {
    padding: .5rem 1.25rem;
    border-radius: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    flex: 1;
    max-width: 140px;
}

.sc-confirm-box__btn--cancel {
    background: #f0f1f3;
    color: #495057;
}

.sc-confirm-box__btn--cancel:hover {
    background: #e2e3e5;
}

.sc-confirm-box__btn--confirm {
    background: #198754;
    color: #fff;
}

.sc-confirm-box__btn--confirm:hover {
    background: #157347;
    box-shadow: 0 3px 8px rgba(25, 135, 84, .3);
}

/* ── Loading Spinner on Button ── */
.sc-btn--loading {
    position: relative;
    pointer-events: none;
    opacity: .7;
}

.sc-btn--loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: sc-spin .6s linear infinite;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ── Tablet (768-991) ── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sc-stat-card__value {
        font-size: 1.125rem;
    }

    .sc-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: .9rem;
    }

    .sc-table {
        font-size: .75rem;
    }

    .sc-table thead th {
        padding: .5rem .5rem;
        font-size: .7rem;
    }

    .sc-table__cell {
        padding: .5rem .5rem;
    }

    /* Tablet sütun genişlikleri: Durum & İşlem'e daha fazla alan */
    .sc-table col:nth-child(1) { width: 3%; }
    .sc-table col:nth-child(2) { width: 10%; }
    .sc-table col:nth-child(3) { width: 11%; }
    .sc-table col:nth-child(4) { width: 8%; }
    .sc-table col:nth-child(5) { width: 17%; }
    .sc-table col:nth-child(6) { width: 11%; }
    .sc-table col:nth-child(7) { width: 13%; }
    .sc-table col:nth-child(8) { width: 13%; }
    .sc-table col:nth-child(9) { width: 14%; }

    /* Butonlar tablette biraz daha küçük */
    .sc-btn--view,
    .sc-btn--approve {
        width: 28px;
        height: 28px;
        font-size: .7rem;
    }

    .sc-actions {
        gap: .25rem;
    }
}

/* ── Mobil (<768) ── */
@media (max-width: 767.98px) {
    .sc-page {
        padding: .75rem 0 2rem;
    }

    .sc-header {
        margin-bottom: 1rem;
        padding-bottom: .75rem;
    }

    .sc-header__title h1 {
        font-size: 1.15rem;
    }

    .sc-header__title h1 i {
        font-size: 1rem;
    }

    .sc-header__subtitle {
        font-size: .8rem;
    }

    /* Stat kartları mobilde 3'lü kalacak, küçülecek */
    .sc-stat-card {
        padding: .625rem .625rem;
        gap: .5rem;
        border-radius: .5rem;
    }

    .sc-stat-card__icon {
        width: 32px;
        height: 32px;
        font-size: .8rem;
        border-radius: .5rem;
    }

    .sc-stat-card__value {
        font-size: 1rem;
    }

    .sc-stat-card__label {
        font-size: .65rem;
    }

    /* Tablar mobilde daha kompakt */
    .sc-tabs__item {
        padding: .5rem .625rem;
        font-size: .75rem;
        gap: .25rem;
    }

    .sc-tabs__item i {
        font-size: .65rem;
    }

    /* Kartlar */
    .sc-card__header {
        padding: .625rem .75rem;
    }

    .sc-card__avatar {
        width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .sc-card__name {
        font-size: .75rem;
    }

    .sc-card__date {
        font-size: .65rem;
    }

    .sc-badge {
        padding: .2rem .5rem;
        font-size: .6rem;
    }

    .sc-card__body {
        padding: .625rem .75rem;
    }

    .sc-card__product {
        font-size: .75rem;
        gap: .35rem;
    }

    .sc-card__meta {
        gap: .35rem;
    }

    .sc-order-id {
        font-size: .65rem;
        padding: .1rem .375rem;
    }

    .sc-star {
        font-size: .65rem;
    }

    .sc-stars__value {
        font-size: .65rem;
    }

    .sc-card__comment {
        font-size: .75rem;
    }

    .sc-card__footer {
        padding: .5rem .75rem;
    }

    .sc-card__footer .sc-btn {
        padding: .35rem .5rem;
        font-size: .7rem;
    }

    /* Empty */
    .sc-empty {
        padding: 2.5rem 1rem;
    }

    .sc-empty__icon {
        width: 60px;
        height: 60px;
    }

    .sc-empty__icon i {
        font-size: 1.5rem;
    }

    .sc-empty__title {
        font-size: 1rem;
    }

    .sc-empty__text {
        font-size: .8rem;
    }
}

/* ── Küçük Mobil (<400px) ── */
@media (max-width: 399.98px) {
    .sc-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: .5rem .375rem;
        gap: .25rem;
    }

    .sc-stat-card__icon {
        width: 28px;
        height: 28px;
        font-size: .75rem;
    }

    .sc-stat-card__value {
        font-size: .9rem;
    }

    .sc-stat-card__label {
        font-size: .6rem;
    }

    .sc-tabs__item {
        padding: .4rem .5rem;
        font-size: .7rem;
    }

    .sc-card__header {
        flex-wrap: wrap;
        gap: .375rem;
    }

    .sc-card__user {
        width: 100%;
    }
}

