.profile-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-joined,
.profile-status,
.note {
    font-size: 0.9rem;
    margin-top: 4px;
}

.status-badge {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
}

.status-badge.online {
    color: green;
    background-color: #e8fbe8;
}

.status-badge.offline {
    color: #888;
    background-color: #f3f3f3;
}

.card {
    background: #f9f9f9;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.rating-stars {
    color: gold;
    font-size: 1.1rem;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

/* Ngôi sao hiển thị khi xem đánh giá (đã có) */
.review-stars {
    display: flex;
    gap: 4px;
    font-size: 18px;
    margin: 5px 0;
}

.review-stars .star {
    color: #ccc; /* sao chưa chọn */
    transition: color 0.3s ease;
}

.review-stars .star.filled {
    color: #f7c948; /* sao đã chọn */
}

/* Ngôi sao trong form đánh giá (tương tác) */
.stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.stars input[type="radio"] {
    display: none;
}

.stars label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

/* Khi được chọn hoặc hover */
.stars label:hover,
.stars label:hover ~ label,
.stars input[type="radio"]:checked ~ label {
    color: #f7c948;
}

/* Đảm bảo chọn đúng từ trái sang phải */
.stars label:nth-child(2),
.stars label:nth-child(4),
.stars label:nth-child(6),
.stars label:nth-child(8),
.stars label:nth-child(10) {
    order: 1; /* Đảm bảo label luôn đi sau input */
}

/* Tab đánh giá - Bài đăng */
.profile-tabs {
    display: flex;
    gap: 10px;                 
    margin-top: 20px;
    justify-content: center;   
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;           
}

.tab-btn {
    padding: 10px 20px;        
    background: #fff;       
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px 8px 0 0;  /* bo tròn nhẹ */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    color: #444;
    box-shadow: none;
    outline: none;
}

.tab-btn:hover:not(.active) {
    background-color: #e0e7ff; /* hiệu ứng hover nhẹ màu xanh nhạt */
    color: #222;
}

.tab-btn.active {
    background: #3490dc;
    color: white;
    box-shadow: 0 4px 12px rgb(52 144 220 / 0.5);
}

.tab-content {
    display: none;
    padding: 15px 0;
}

.tab-content.active {
    display: block;
}


/*  Đánh giá */
.review-content {
    margin-top: 4px;
}

/* Khối tổng đánh giá */


.profile-reviews h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form đánh giá & trả lời */
.review-form,
.reply-form {
    margin-bottom: 20px;
}

.review-form textarea,
.reply-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    font-size: 16px;
}

.btn-submit-review,
.btn-submit-reply {
    margin-top: 8px;
    padding: 8px 16px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-review:hover,
.btn-submit-reply:hover {
    background-color: #084298;
}

/* Review chính */
.review-list {
    list-style: none;
    padding: 0;
}

.review-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.review-meta {
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}


.review-content {
    font-size: 15px;
    color: #333;
}

/* Danh sách trả lời */
.reply-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    border-left: 3px solid #eee;
}

.reply-item {
    margin-top: 8px;
}

.reply-item .review-meta {
    font-size: 13px;
    color: #777;
}

.reply-item .review-content {
    font-size: 14px;
    color: #444;
}

.btn-show-reply {
    background-color: transparent;
    color: #007bff;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s;
}
.btn-show-reply:hover {
    color: #fff;
    background-color: #0056b3;
}

.reply-form {
    margin-top: 10px;
    border-left: 3px solid #ddd;
    padding-left: 10px;
    margin-left: 20px;
    display: none;
}
.reply-form textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 6px;
}
.btn-submit-reply {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-submit-reply:hover {
    background-color: #218838;
}

.hidden-form {
    display: none;
}
.show {
    display: block !important;
}

.highlight-scroll {
    animation: highlightFade 0.5s ease-in-out forwards;
    background-color: #ffffcc !important;
    border: 1px solid #f0c000;
    transition: background-color 0.5s ease;
}

@keyframes highlightFade {
    from {
        background-color: #fff7a5;
    }
    to {
        background-color: #ffffcc;
    }
}

/* Nếu bạn dùng class .active để đổi màu cho bình luận được chọn */
.comment.active {
    border-left: 3px solid #ff9800;
    background-color: #fffbe6;
}

/* Responsive cơ bản */

@media (max-width: 600px) {
    .author-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .author-avatar {
        width: 100px;
        height: 100px;
    }
    .author-name {
        font-size: 1.6rem;
        margin-top: 10px;
    }
    .author-stats {
        gap: 20px;
    }
    .profile-reviews.card {
        padding: 12px;
    }

    .btn-submit-review,
    .btn-submit-reply {
        width: 100%;
    }
    .review-stars {
        font-size: 16px;
    }
    
}
