html{
    scroll-behavior: smooth;
}

#rating-display .star{
    font-size: 1.5em;
    margin-right: 2px;
}

.answer-author{
    font-weight: bold;
    color: #1976d2;
}

.answer-date{
    color: #666;
    font-size: 0.9rem;
}

.answer-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.answer-item{
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 3px solid #e9ecef;
    padding-left: 1rem;
}


.answer-item.level-0{
    margin-left: 2rem;
    border-left-color: #007bff;
}

.answer-item.level-1{
    margin-left: 3.5rem;
    border-left-color: #28a745;
}

.answer-item.level-2{
    margin-left: 5rem;
    border-left-color: #ffc107;
}

.answer-item.level-3{
    margin-left: 6.5rem;
    border-left-color: #dc3545;
}

.answer-item.level-4{
    margin-left: 8rem;
    border-left-color: #6f42c1;
}

.answer-item.level-5,
.answer-item.level-6,
.answer-item.level-7,
.answer-item.level-8,
.answer-item.level-9{
    margin-left: 9.5rem;
    border-left-color: #6c757d;
}

.answer-text{
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.answers .content-item{
    background: #f0f0f0;
    margin-left: 2rem;
    margin-top: 1rem;
}

.bar{
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.bar-container{
    flex: 1;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.btn-sm{
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.button-danger{
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.button-danger:hover{
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.button-small{
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.button-small:hover{
    opacity: 0.8;
}

.clickable-username{
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    transition: all 0.2s;
}

.clickable-username.selected{
    background-color: #007bff;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
}



.clickable-username:hover{
    color: #0056b3;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

.content-item{
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
    margin-bottom: 1rem;
}


.content-item:target{
    background-color: #fff3cd;
    border-color: #ffeaa7;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}


.edit-form-container{
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.helpful-stats{
    margin-left: 1rem;
}

.helpful-stats .helpful{
    color: #28a745;
    margin-right: 0.5rem;
}

.helpful-stats .not-helpful{
    color: #dc3545;
}

.ml-2{
    margin-left: 0.5rem;
}

.mt-2{
    margin-top: 0.5rem;
}

.mt-3{
    margin-top: 1rem;
}

.no-answer{
    color: #999;
    font-style: italic;
    margin-top: 1rem;
}

.no-reviews{
    text-align: center;
    padding: 2rem;
    color: #666;
}

.overall-rating{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}


.question-author{
    font-weight: bold;
    color: #333;
}

.question-date{
    color: #666;
    font-size: 0.9rem;
}

.question-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.question-item{
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.question-text{
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #555;
}

.questions-actions{
    margin-top: 2rem;
    text-align: center;
}

.questions-actions .button{
    margin: 0 0.5rem;
}

.questions-section{
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}


.rating{
    display: inline-flex;
    gap: 4px;
    font-size: 2.4rem;
    color: #ffc107;
}

.rating .star{
    color: #ffc107;
    text-shadow: 0 0 1px rgba(255, 193, 7, 0.3);
}

.rating .star-empty{
    color: #ddd;
}

.rating-bar{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rating-count{
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}


.rating-display .star{
    font-size: 1.2em;
    color: #ddd;
    transition: color 0.2s;
}


.rating-display .star.active{
    color: #ffc107;
}


.rating-distribution{
    flex: 1;
}


.rating-input{
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.rating-input .star{
    font-size: 4.5em;
    color: #ddd;
    cursor: pointer;
    margin-right: 5px;
    transition: color 0.2s;

}

.rating-input .star.active{
    color: #ffc107;
}

.rating-input .star:hover ~ .star{
    color: #ddd;
}


.rating-input .star:hover,
.rating-input .star.active{
    color: #ffc107;
    transform: scale(1.1);
}


.rating-input .star:hover,
.rating-input .star.selected,
.rating-input .star.hover{
    color: #ffc107;
}

.rating-label{
    min-width: 80px;
    font-size: 0.9rem;
    color: #666;
}

.rating-number{
    font-size: 3rem;
    font-weight: bold;
    color: #1976d2;
}


.rating-stars{
    display: flex;
    gap: 6px;
    font-size: 4rem;
}

.rating-summary{
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}


.reply-form .card{
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.reply-indicator{
    color: #6c757d;
    font-weight: bold;
    margin-right: 0.5rem;
}

.review-actions,
.question-actions{
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


.review-author{
    font-weight: bold;
    color: #333;
}

.review-cons{
    background: #ffeaea;
    border-left: 3px solid #f44336;
}

.review-content{
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #555;
}

.review-date{
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
}

.review-date, .question-date, .answer-date{
    color: #6c757d;
    font-size: 0.9em;
}

.review-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.review-header{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-header .rating{
    margin: 0;
}

.review-header, .question-header, .answer-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-item{
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-item, .question-item, .answer-item{
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.review-pros{
    background: #e8f5e8;
    border-left: 3px solid #4caf50;
}

.review-pros, .review-cons{
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.review-rating{
    display: flex;
    gap: 2px;
}

.review-title{
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.reviews-actions{
    margin-top: 2rem;
    text-align: center;
}

.reviews-actions .button{
    margin: 0 0.5rem;
}

.reviews-list h4{
    margin-bottom: 1.5rem;
    color: #333;
}

.reviews-section{
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}


.star{
    font-size: 1.2em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active{
    color: #ffc107;
}

.star:hover{
    color: #ffc107;
}

.stars{
    display: flex;
    gap: 2px;
}

.tab-button{
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    color: #666;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.tab-button i{
    margin-right: 8px;
}

.tab-button.active{
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-button:hover{
    color: #333;
    text-decoration: none;
}

.tab-buttons{
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab-pane{
    display: none;
}

.tab-pane.active{
    display: block;
}

.tabs-navigation{
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}


.total-reviews{
    color: #666;
    font-size: 0.9rem;
}

