/* Modal structure */
.feedback-detail-modal .modal-dialog {
    max-width: 750px;
    margin: 1.75rem auto;
}

.feedback-detail-modal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.feedback-detail-modal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.feedback-detail-modal .modal-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.feedback-detail-modal .modal-title {
    font-size: 1.25rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.feedback-detail-modal .modal-body {
    padding: 1rem;
}

.feedback-detail-modal .modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Upvote section */
.feedback-detail-modal .upvote-section {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feedback-detail-modal .upvote-section:hover {
    background-color: #dee2e6;
}

.feedback-detail-modal .upvote-count {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

/* Status section */
.feedback-detail-modal .status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.feedback-detail-modal .status-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-detail-modal .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-detail-modal .status-badge.priority {
    background-color: #dc3545;
    color: white;
}

.feedback-detail-modal .date-info {
    color: #6c757d;
    font-size: 0.8125rem;
}

/* Feedback content */
.feedback-detail-modal .feedback-content {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.feedback-detail-modal .feedback-content p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #2c3e50;
    font-size: 0.9375rem;
}

.feedback-detail-modal .feedback-content p:last-child {
    margin-bottom: 0;
}

/* Importance section */
.feedback-detail-modal .importance-section {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.feedback-detail-modal .importance-section h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.feedback-detail-modal .importance-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feedback-detail-modal .importance-option {
    flex: 1;
    min-width: 110px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: white;
    font-size: 0.875rem;
}

.feedback-detail-modal .importance-option:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.feedback-detail-modal .importance-option.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.feedback-detail-modal .notify-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Comments section */
.feedback-detail-modal .comments-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.feedback-detail-modal .comments-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Comment editor */
.feedback-detail-modal .comment-editor {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.feedback-detail-modal .editor-toolbar {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 0.35rem;
}

.feedback-detail-modal .editor-toolbar button {
    padding: 0.375rem;
    color: #495057;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.feedback-detail-modal .editor-toolbar button:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

/* Comment list */
.feedback-detail-modal .comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.feedback-detail-modal .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-detail-modal .comment-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-detail-modal .comment-content {
    flex: 1;
}

.feedback-detail-modal .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    position: relative;
}

.feedback-detail-modal .delete-comment-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: auto;
    cursor: pointer;
}

.feedback-detail-modal .delete-comment-btn:hover {
    opacity: 1;
}

.feedback-detail-modal .delete-confirmation {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.feedback-detail-modal .delete-message {
    color: #495057;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.feedback-detail-modal .delete-confirmation button {
    font-size: 0.875rem;
}

.feedback-detail-modal .delete-confirmation .btn-link {
    text-decoration: none;
    padding: 4px 8px;
}

.feedback-detail-modal .delete-confirmation .btn-danger {
    padding: 4px 8px;
}

.feedback-detail-modal .comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

.feedback-detail-modal .comment-date {
    color: #6c757d;
    font-size: 0.8125rem;
}

.feedback-detail-modal .comment-content p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.feedback-detail-modal .comment-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

.feedback-detail-modal .comment-actions button {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.feedback-detail-modal .comment-actions button:hover {
    color: #0d6efd;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .feedback-detail-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .feedback-detail-modal .modal-title {
        font-size: 1.125rem;
    }

    .feedback-detail-modal .importance-options {
        flex-direction: column;
    }

    .feedback-detail-modal .importance-option {
        width: 100%;
    }

    .feedback-detail-modal .subscribe-section {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .feedback-detail-modal .subscribe-section button {
        width: 100%;
    }
}
