/* Feedbacks Specific Styles */

.feedback-alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-alert-info {
    background: #f0f7ff;
    border: 1px solid #e0efff;
    color: #1e3a8a;
}

.feedback-alert-info h4 {
    color: #1e3a8a;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-alert-info h4::before {
    content: '💡';
    font-size: 18px;
}

.feedback-alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
    margin-top: var(--spacing-md);
}

.feedback-alert-success strong {
    display: block;
    margin-bottom: 4px;
}

/* Custom Radio Buttons */
.feedback-classifications {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-xs);
}

.classification-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.classification-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.classification-option input[type="radio"]:checked {
    border-color: var(--primary);
}

.classification-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* Rich Text Toolbar Mock */
.rich-text-editor {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #f0f0f0;
    border-color: #d9d9d9;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 4px;
}

.editor-content {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    resize: vertical;
}

/* Labels with asterisk */
.form-group label[data-required="true"]::after {
    content: ' *';
    color: var(--danger);
}

/* Custom Searchable Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat calc(100% - 16px) center;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle:hover {
    border-color: #D1D5DB;
    background-color: #F9FAFB;
}

.dropdown-toggle:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: #fff;
}

.dropdown-toggle.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown.active .dropdown-list {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-search {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: none;
    border-bottom: 1px solid #F3F4F6;
    outline: none;
    font-size: 14px;
    position: sticky;
    top: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 14px center;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: #F9FAFB;
    color: #111827;
    padding-left: 20px;
}

.dropdown-item.selected {
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 600;
}

.dropdown-item-initial {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.dropdown-item.selected .dropdown-item-initial {
    background: #DBEAFE;
    color: #2563EB;
}

.dropdown-no-results {
    padding: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
}

/* Feedback Details Modal */
.feedback-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-item span,
.detail-item p {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin: 0;
}

.detail-content-section {
    background: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.detail-content-section label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feedback-text-content {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Header Actions */
.feedback-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Custom Modal Size for Feedbacks */
#feedback-modal .modal {
    max-width: 800px;
}