.satisfactionsurvey-backdrop {
    background: rgba(17, 24, 39, 0.45);
}

.satisfactionsurvey-modal .modal-dialog {
    max-width: 580px;
}

.satisfactionsurvey-modal .modal-header {
    border-bottom: 0;
    padding-top: 1.25rem;
    padding-bottom: 0;
}

.satisfactionsurvey-modal .modal-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.satisfactionsurvey-modal .modal-body {
    padding-top: 0.75rem;
}

.satisfactionsurvey-icon {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7c3aed;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.15);
}

.satisfactionsurvey-ticketline {
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-align: center;
}

.satisfactionsurvey-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Rating Container (supports stars and numbers) ===== */
.satisfactionsurvey-rating,
.satisfactionsurvey-rating-container {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.75rem 0 0.5rem;
}

/* Stars rating type */
.satisfactionsurvey-star {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.25rem;
    line-height: 0;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.satisfactionsurvey-rating.stars .satisfactionsurvey-star svg {
    width: 40px;
    height: 40px;
    display: block;
    pointer-events: none;
}

.satisfactionsurvey-rating.stars .satisfactionsurvey-star[data-active="true"] svg path {
    fill: #f5b301;
}

.satisfactionsurvey-rating.stars .satisfactionsurvey-star svg path {
    fill: #e5e7eb;
    transition: fill 0.15s ease;
}

.satisfactionsurvey-rating.stars .satisfactionsurvey-star:hover svg path {
    fill: #f1c454;
}

/* Numbers rating type */
.satisfactionsurvey-rating.numbers .satisfactionsurvey-star {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.15s ease;
}

.satisfactionsurvey-rating.numbers .satisfactionsurvey-star .rating-number {
    font-weight: 700;
    font-size: 1rem;
}

.satisfactionsurvey-rating.numbers .satisfactionsurvey-star:hover {
    background: var(--rating-color, #6b7280);
    color: white;
    transform: scale(1.05);
}

.satisfactionsurvey-rating.numbers .satisfactionsurvey-star[data-active="true"] {
    background: var(--rating-color, #22c55e);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* For scales with many options, shrink a bit */
.satisfactionsurvey-rating-container[data-max-rating="10"] .satisfactionsurvey-star,
.satisfactionsurvey-rating-container[data-max-rating="9"] .satisfactionsurvey-star,
.satisfactionsurvey-rating-container[data-max-rating="8"] .satisfactionsurvey-star {
    width: 32px;
    height: 32px;
}

.satisfactionsurvey-rating-container[data-max-rating="10"] .satisfactionsurvey-star svg,
.satisfactionsurvey-rating-container[data-max-rating="9"] .satisfactionsurvey-star svg,
.satisfactionsurvey-rating-container[data-max-rating="8"] .satisfactionsurvey-star svg {
    width: 32px;
    height: 32px;
}

.satisfactionsurvey-rating-container[data-max-rating="10"] .rating-number,
.satisfactionsurvey-rating-container[data-max-rating="9"] .rating-number,
.satisfactionsurvey-rating-container[data-max-rating="8"] .rating-number {
    font-size: 0.875rem;
}

.satisfactionsurvey-ratinglabel {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.satisfactionsurvey-hint {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.satisfactionsurvey-ticket {
    font-weight: 600;
}

.satisfactionsurvey-muted {
    color: #6b7280;
}

.satisfactionsurvey-solution {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(17, 24, 39, 0.02);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0 0.75rem;
}

.satisfactionsurvey-solution-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.satisfactionsurvey-solution-body {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #111827;
}

/* ===== Pills/Chips ===== */
.satisfactionsurvey-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.satisfactionsurvey-chip {
    border: 1px solid rgba(17, 24, 39, 0.15);
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.satisfactionsurvey-chip:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.04);
}

.satisfactionsurvey-chip[data-selected="true"] {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    font-weight: 500;
}

/* ===== Additional Questions ===== */
.satisfactionsurvey-questions {
    margin-top: 0.5rem;
}

.satisfactionsurvey-questions h6 {
    color: #374151;
    font-weight: 600;
}

.satisfactionsurvey-questions .form-label {
    font-size: 0.9rem;
    color: #374151;
}

.satisfactionsurvey-questions .question-rating,
.satisfactionsurvey-questions .question-yesno {
    pointer-events: auto;
}

.satisfactionsurvey-questions .question-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Default state for rating buttons - ensure proper colors */
.satisfactionsurvey-questions .question-rating .question-btn {
    color: #212529 !important;
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}

/* Active state for rating buttons */
.satisfactionsurvey-questions .question-rating .question-btn.active {
    font-weight: 600;
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

/* Default state for yesno buttons */
.satisfactionsurvey-questions .question-yesno .question-btn {
    color: #212529 !important;
    background-color: #ffffff !important;
}

.satisfactionsurvey-questions .question-yesno .btn-outline-success {
    border-color: #198754 !important;
    color: #198754 !important;
}

.satisfactionsurvey-questions .question-yesno .btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Active state for yesno buttons */
.satisfactionsurvey-questions .question-yesno .question-btn.active {
    font-weight: 600;
}

.satisfactionsurvey-questions .question-yesno .btn-outline-success.active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

.satisfactionsurvey-questions .question-yesno .btn-outline-danger.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.satisfactionsurvey-questions .question-input {
    font-size: 0.9rem;
    color: #212529 !important;
    background-color: #ffffff !important;
}

/* Fix comment textarea text color - ensure dark text is visible */
#satisfactionsurvey_comment,
textarea#satisfactionsurvey_comment,
.tab_bg_2 textarea#satisfactionsurvey_comment,
.tab_bg_2 #satisfactionsurvey_comment {
    color: #212529 !important;
    background-color: #ffffff !important;
}

#satisfactionsurvey_comment::placeholder,
textarea#satisfactionsurvey_comment::placeholder,
.tab_bg_2 #satisfactionsurvey_comment::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

/* ===== Footer ===== */
.satisfactionsurvey-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.satisfactionsurvey-footer .btn-link {
    text-decoration: none;
}

/* ===== Comment required warning ===== */
#satisfactionsurvey_comment_required {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

#satisfactionsurvey_comment_required i {
    margin-right: 0.25rem;
}

/* ===== Satisfaction Form Rating Buttons ===== */
.satisfactionsurvey-rating-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.satisfactionsurvey-rating-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.satisfactionsurvey-rating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.satisfactionsurvey-rating-btn-selected {
    border: 3px solid #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.15) !important;
    z-index: 10 !important;
    font-weight: 900 !important;
}

.satisfactionsurvey-rating-btn {
    background-color: var(--rating-color, #ccc);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.satisfactionsurvey-rating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.satisfactionsurvey-rating-btn[data-selected='1'] {
    border: 3px solid #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.satisfactionsurvey-stars-container .ti-star-filled {
    font-size: 2rem;
    cursor: pointer;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.satisfactionsurvey-stars-container .ti-star-filled:hover {
    transform: scale(1.2);
}

.satisfactionsurvey-question-rating,
.satisfactionsurvey-question-yesno {
    margin-top: 5px;
}

.satisfactionsurvey-question-btn.active {
    background-color: #7c3aed !important;
    color: 7c3aed !important;
    border-color: #7c3aed !important;
}

/* ===== Pesquisa de Satisfação Tab Styling ===== */
/* Fix white background for card body in satisfaction tab */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .card-body,
.tab-content [id*="satisfaction"] .card-body {
    background-color: #f8f9fa !important;
    padding: 1.5rem;
}

/* Fix white background for table rows in Additional Questions section */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .table tbody tr,
.tab-content [id*="satisfaction"] .table tbody tr {
    background-color: #ffffff !important;
}

[id*="PluginSatisfactionsurveyTicketSatisfaction"] .table tbody tr:nth-child(even),
.tab-content [id*="satisfaction"] .table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

/* Fix white background for table cells */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .table tbody td,
.tab-content [id*="satisfaction"] .table tbody td {
    background-color: inherit !important;
}

/* Fix white background for form fields in Additional Questions (satisfaction form) */
.tab_bg_2 .satisfactionsurvey-questions,
.tab_bg_2 .satisfactionsurvey-questions .form-label,
.tab_bg_2 .satisfactionsurvey-questions .form-control,
.tab_bg_2 .satisfactionsurvey-questions .question-input {
    background-color: transparent;
}

/* Ensure Additional Questions section has proper background in form */
.tab_bg_2 .satisfactionsurvey-questions .mb-3 {
    background-color: rgba(248, 249, 250, 0.6) !important;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem !important;
    border: 1px solid rgba(222, 226, 230, 0.5);
}

/* Style the table in satisfaction tab */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .table,
.tab-content [id*="satisfaction"] .table {
    background-color: #ffffff !important;
}

[id*="PluginSatisfactionsurveyTicketSatisfaction"] .table thead th,
.tab-content [id*="satisfaction"] .table thead th {
    background-color: #e9ecef !important;
    color: #212529;
    font-weight: 600;
}

/* Fix white background for card in satisfaction tab */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .card,
.tab-content [id*="satisfaction"] .card {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
}

[id*="PluginSatisfactionsurveyTicketSatisfaction"] .card-header,
.tab-content [id*="satisfaction"] .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

/* Fix Comentário Principal text color in satisfaction tab */
/* bg-light class causes white text - override it */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .bg-light,
.tab-content [id*="satisfaction"] .bg-light,
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .border.rounded.bg-light,
.tab-content [id*="satisfaction"] .border.rounded.bg-light,
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .border.rounded.p-2.bg-light,
.tab-content [id*="satisfaction"] .border.rounded.p-2.bg-light {
    color: #212529 !important;
    background-color: #f8f9fa !important;
}

/* Ensure all text inside bg-light containers is dark */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] .bg-light *,
.tab-content [id*="satisfaction"] .bg-light * {
    color: #212529 !important;
}

/* Additional Questions section header styling */
[id*="PluginSatisfactionsurveyTicketSatisfaction"] h5,
.tab-content [id*="satisfaction"] h5 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1rem;
}