* {
    box-sizing: border-box;
}

.modal-custom {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content-custom {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 760px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.modal-header h3 {
    font-size: 20px;
    color: #262833;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.form-group-custom {
    margin-bottom: 16px;
}

.form-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4B4E66;
    font-size: 14px;
}

.form-group-custom input,
.form-group-custom select,
.form-group-custom textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E2E4EB;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.form-group-custom textarea {
    resize: vertical;
    min-height: 90px;
}

.modal-footer {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-btn-modal {
    background-color: #305CDE;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.save-btn-modal:hover {
    background-color: #2549B5;
}

.ai-feedback-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.ai-feedback-toolbar input,
.ai-feedback-toolbar select {
    padding: 10px 12px;
}

.ai-feedback-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ai-feedback-table th,
.ai-feedback-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.ai-feedback-muted {
    color: #6C6F80;
    font-size: 12px;
}

.ai-feedback-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f2f3f7;
    color: #262833;
}

.ai-feedback-chip.new {
    background: rgba(48, 92, 222, 0.12);
    color: #305CDE;
}

.ai-feedback-chip.in_progress {
    background: rgba(255, 165, 0, 0.15);
    color: #a36200;
}

.ai-feedback-chip.resolved {
    background: rgba(11, 115, 53, 0.12);
    color: #0B7335;
}

.ai-feedback-thread {
    border: 1px solid #E2E4EB;
    border-radius: 10px;
    padding: 12px;
    max-height: 260px;
    overflow: auto;
    margin-bottom: 12px;
}

.ai-feedback-thread-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ai-feedback-thread-item:last-child {
    border-bottom: none;
}

.ai-feedback-thread-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #6C6F80;
}

.ai-feedback-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-btn-link {
    background: none;
    border: none;
    color: #305CDE;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.ai-btn-link:disabled {
    color: #9aa0b2;
    cursor: not-allowed;
}
