﻿
.site-layout-content {
    background: #fff;
    padding: 24px;
    min-height: 1200px;
    background-image: url('/image/MyQrCode.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.action-column-center {
    text-align: center;
}

    .action-column-center .ant-row {
        margin: 0px;
    }

.table-striped .ant-table-tbody .ant-table-row:nth-child(odd) .ant-table-cell-fix-left, .ant-table-tbody .ant-table-row:nth-child(odd) .ant-table-cell-fix-right {
    background: #f2f2f2;
}

.btn-icon-edit {
    border: 2px solid #1890ff;
    background-color: #1890ff;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.btn-icon-delete-answer {
    border: 2px solid #ff4d4f;
    background-color: #ff4d4f;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.wrap_content {
    width: calc(100% - 20px);
    display: block;
    background: #f7f7f77d;
    border: 1px solid #1890ff;
    padding: 10px;
    margin: 4px;
}

    .wrap_content h3 {
        font-size: 18px;
        margin-left: 0;
        font-weight: bold;
        position: relative;
        padding-bottom: 15px;
        margin-bottom: 0px;
    }

        .wrap_content h3::before {
            content: "";
            width: 48px;
            height: 2px;
            background: #1890ff;
            display: inline-block;
            position: absolute;
            bottom: 6px;
            left: 0;
        }

    .wrap_content .ant-row:last-child {
        margin-top: 0px;
        margin-bottom: 0px;
    }

.image-character {
    left: -30px;
}

.error-message {
    color: red;
}

.navmenu-config {
    height: 100vh;
    width: 256px;
    background-color: antiquewhite !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

.site-content {
    min-height: calc(100vh - 150px);
    margin-bottom: 20px;
}

.site-layout .site-layout-background, .site-content {
    background: #fff;
    padding: 0px 10px;
    margin-top: 10px;
}

.btn-delete {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
    cursor: pointer;
}

    .btn-delete:hover, .btn-delete:focus {
        color: #fff;
        border-color: #fff;
        background-color: #cb1214;
    }

.admin-nav {
    height: 100%;
    background: #171a21;
    border-right: none;
    padding-top: 8px;
}

    /* Menu item */
    .admin-nav .ant-menu-item {
        height: 46px;
        line-height: 46px;
        margin: 6px 8px;
        padding-left: 14px !important;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        /* Link bên trong item */
        .admin-nav .ant-menu-item a {
            display: flex;
            align-items: center;
            color: #c7d5e0;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.2px;
            transition: all 0.2s ease;
        }

    /* Icon */
    .admin-nav .anticon {
        margin-right: 10px;
        font-size: 16px;
        color: #9fb7cc;
        transition: all 0.2s ease;
    }

    /* Hover item */
    .admin-nav .ant-menu-item:hover {
        background: #2a475e;
    }

        /* Hover text */
        .admin-nav .ant-menu-item:hover a {
            color: #ffffff;
        }

        /* Hover icon */
        .admin-nav .ant-menu-item:hover .anticon {
            color: #66c0f4;
        }

    /* Item đang được chọn */
    .admin-nav .ant-menu-item-selected {
        background: #1b3a57 !important;
    }

        /* Text active */
        .admin-nav .ant-menu-item-selected a {
            color: #ffffff !important;
            font-weight: 700;
        }

        /* Icon active */
        .admin-nav .ant-menu-item-selected .anticon {
            color: #66c0f4 !important;
        }

    /* Bỏ thanh active mặc định bên phải của Ant Design */
    .admin-nav .ant-menu-item::after {
        border-right: none !important;
    }

    /* Bỏ background mặc định khi Ant Design active */
    .admin-nav.ant-menu:not(.ant-menu-horizontal)
    .ant-menu-item-selected {
        background: #1b3a57 !important;
    }

    /* Nếu NavLink có class active */
    .admin-nav a.active {
        color: #ffffff !important;
        font-weight: 700;
    }

    /* Tạo cảm giác mềm hơn khi rê chuột */
    .admin-nav .ant-menu-item:hover {
        transform: translateX(2px);
    }

    /* Không underline link */
    .admin-nav a,
    .admin-nav a:hover,
    .admin-nav a:focus {
        text-decoration: none;
    }

    /* Nếu menu bị Ant Design gán màu nền khác */
    .admin-nav.ant-menu {
        background: #171a21;
        color: #c7d5e0;
    }

    /* Nếu icon + text bị lệch */
    .admin-nav .ant-menu-item > span,
    .admin-nav .ant-menu-item a {
        width: 100%;
    }

/* Responsive nhẹ */
@media (max-width: 768px) {
    .admin-nav .ant-menu-item {
        margin: 4px 6px;
        height: 42px;
        line-height: 42px;
    }

        .admin-nav .ant-menu-item a {
            font-size: 14px;
        }

    .admin-nav .anticon {
        font-size: 15px;
    }
}

/* Hai cột cao bằng nhau */
.game-detail-row {
    align-items: stretch;
}

/* Cột trái */
.game-image-col {
    display: flex;
    min-width: 0;
}

/* Khung preview kéo cao bằng cột bên phải */
.image-preview {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

    /* Ảnh */
    .image-preview img {
        display: block;
        height: 100%;
        width: auto;
        min-height: 100%;
        max-width: none !important;
        object-fit: cover;
        margin: 0;
    }

.image-name-wrapper {
    position: relative;
    width: 100%;
}

.image-name-input {
    width: 100%;
    height: 32px;
    margin: 0 !important;
    padding-right: 36px !important;
    box-sizing: border-box;
}

.image-delete-btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #ff4d4f !important;
    cursor: pointer;
    border-radius: 4px;
}

    .image-delete-btn:hover {
        background: #fff1f0;
    }

.featured-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.featured-order {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .featured-order > span {
        white-space: nowrap;
    }

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 18px;
}

.game-company {
    font-size: 13px;
    color: #d6e0ea;
    flex: 1;
}

/* Khu vực giá */
.game-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Badge giảm giá */
.discount-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 9px;
    background: #a4d007;
    color: #1b2838;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Giá gốc + giá hiện tại */
.price-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.15;
}

/* Giá gốc */
.original-price {
    color: #7f8c99;
    font-size: 12px;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Giá hiện tại */
.current-price {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.steam-game-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0) scale(1) translateZ(0);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    will-change: transform;
}

.game-image {
    position: relative;
    overflow: hidden;
}

.game-description-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(10, 20, 30, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .game-description-overlay p {
        margin: 0;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.steam-game-card:hover {
    transform: translateY(-8px) scale(1.015) translateZ(0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 20px 40px rgba(0, 0, 0, 0.2);
}

.wallet-page {
    margin: 0 auto;
    padding: 32px 20px;
}

.wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-balance-value {
    font-size: 24px;
    font-weight: 600;
}

.redeem-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.redeem-balance-value {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/*xem thử menuitem ng-form dùng thường*/
.game-page {
    padding: 24px;
    width: 100%;
    box-sizing:border-box;
}

.game-card {
    height: 100%;
    background-color: ghostwhite !important;
}

.game-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

    .game-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.game-name {
    margin-top: 12px;
    min-height: 48px;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*.game-review {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    min-height: 66px;
    font-size: 13px;
    line-height: 22px;
    color: #666;
}*/

.game-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 90px;
}

.game-price-history {
    margin-top: 12px;
    min-height: 58px;
    text-align: right;
}

    .game-price-history > div {
        min-height: 24px;
    }

.discount {
    display: inline-block;
    background: #fff1f0;
    color: #f5222d;
    border-radius: 4px;
    font-size: 12px;
    line-height: 18px;
    margin-right: 8px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.current-price-list {
    margin-top: 4px;
    color: #d4380d;
    font-size: 15px;
    font-weight: 700;
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
}

    /* Xem chi tiết */
    .game-actions .detail-button {
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
        font-size: 14px;
    }

    /* Wishlist */
    .game-actions .wishlist-button {
        flex: 0 0 42px;
        min-width: 42px;
        padding-left: 0;
        padding-right: 0;
    }

    /* Đã mua */
    .game-actions .purchased-button {
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

.review-info {
    flex: 1;
    min-width: 0;
    color: #888;
    font-size: 14px;
    line-height: 26px;
}

    .review-info div {
        white-space: nowrap;
    }

    .review-info b {
        color: #555;
    }

.review-average {
    flex: 0 0 75px;
    width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.average-star {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 1px;
}

    .average-star > .star {
        color: #d9d9d9;
    }

        .average-star > .star.active {
            color: #faad14;
        }

        /* Ngôi sao 0.5 */
        .average-star > .star.half {
            position: relative;
            display: inline-block;
            width: 22px;
            height: 22px;
            color: transparent;
        }

.star-half-gray,
.star-half-yellow {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 22px;
}

.star-half-gray {
    color: #d9d9d9;
}

.star-half-yellow {
    color: #faad14;
    clip-path: inset(0 50% 0 0);
}

.average-score-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 4px;
}

.average-score {
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: #333;
}

.average-max {
    margin-left: 2px;
    font-size: 12px;
    color: #888;
}

.vote-button {
    margin-top: 5px !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 13px;
    line-height: 18px;
    color: #1890ff !important;
}

.vote-button:hover {
    color: darkgray;
}

.wishlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 10px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: 600;
}
/*css cho màn wishlist*/

.wishlist-page {
    padding: 24px 32px;
    background: #f5f7fa;
    min-height: 100%;
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .wishlist-header h2 {
        margin: 0;
        font-size: 26px;
        font-weight: 600;
    }

.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CARD */

.wishlist-game-card {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    background-color: #3b4b5b !important;
    color: #d6d7d8;
    margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .wishlist-game-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }

    .wishlist-game-card .ant-card-body {
        padding: 0 !important;
        background-color: #3b4b5b !important;
    }

.wishlist-game-content {
    display: flex;
    align-items: stretch;
    background-color: #3b4b5b;
    min-height: 210px;
}

/* IMAGE */

.wishlist-game-image {
    width: 293px;
    min-width: 293px;
    align-self: stretch;
    overflow: hidden;
}

    .wishlist-game-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
/* INFO */

.wishlist-game-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.wishlist-game-name {
    margin-bottom: 10px;
}

.wishlist-game-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #a5aeb8;
}

.wishlist-game-review {
    color: #66c0f4;
}

    .wishlist-game-review .review-count {
        color: #999;
        font-size: 12px;
    }

/* PRICE */

.wishlist-game-actions {
    width: 360px;
    min-width: 360px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wishlist-purchase-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.wishlist-price {
    text-align: right;
}

.wishlist-sale {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wishlist-discount {
    background: #fff1f0;
    color: #f5222d;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.wishlist-old-price {
    color: white;
    text-decoration: line-through;
    font-size: 14px;
}

.wishlist-current-price {
    margin-top: 5px;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* Dòng metadata */
.wishlist-meta-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    color: #8f98a3;
    font-size: 12px;
}

/* BUTTON */

.wishlist-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishlist-remove.ant-btn {
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #8f98a3 !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

    .wishlist-remove.ant-btn > span {
        text-decoration: underline !important;
        text-underline-offset: 2px;
    }

    .wishlist-remove.ant-btn:hover {
        color: #fff !important;
        background: transparent !important;
    }

.wishlist-game-platform {
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
}

.wishlist-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

    .wishlist-game-tags .ant-tag {
        margin: 0;
        padding: 1px 6px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #8f98a3;
        font-size: 11px;
        line-height: 18px;
    }

.sale-count-cell {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 6px;
}

.sale-history-icon {
/*    display: inline-flex;
    align-items: center;*/
    cursor: pointer;
    color: #1890ff;
    font-size: 15px;
}

    .sale-history-icon:hover {
        color: #40a9ff;
    }
