/* Forms Edit Styles */

.form-settings-section {
    margin-bottom: 2rem;
}

.form-settings-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
}

.form-settings-content {
    display: none;
}
.form-settings-content.active {
    display: block;
}
.form-settings-grid {
    display: grid;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-label-required {
    color: red;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    resize: vertical;
}

.form-textarea-monospace {
    font-family: monospace;
}

.form-help-text {
    color: var(--color-text-light);
}

.form-section-divider {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.form-section-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--color-primary);
}

.form-subsection {
    display: grid;
    gap: 1rem;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-fields-subsection {
    display: grid;
    gap: 1rem;
    margin-left: 1.5rem;
}

.form-fields-subsection.hidden {
    display: none;
}

.form-fields-subsection.visible {
    display: grid;
}

.form-notification-subsection {
    margin-left: 1.5rem;
}

.form-notification-subsection.hidden {
    display: none;
}

.form-notification-subsection.visible {
    display: block;
}

.form-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modal Styles */
.modal-hidden {
    display: none;
}

.modal-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-form-grid {
    display: grid;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Fields List Styles */
.fields-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.fields-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fields-list {
    display: grid;
    gap: 1rem;
}

.field-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s;
    position: relative;
}

.field-item-content {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.drag-handle {
    cursor: move;
    padding: 0.5rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.field-main {
    flex: 1;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.field-title-section {
    flex: 1;
}

.field-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.field-required {
    color: red;
}

.field-description {
    margin: 0.25rem 0 0 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.field-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.field-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.field-preview-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: white;
}

.field-preview-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: white;
    min-height: 80px;
}

.field-preview-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: white;
}

.field-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.field-option-label-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fields Section */
.fields-section {
    margin-top: 2rem;
}

.fields-section-title {
    margin: 0;
    font-size: 1.125rem;
}

.fields-empty-state {
    padding: 3rem 1rem;
}

.fields-empty-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.modal-content-max {
    max-width: 600px;
}

.modal-title {
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.badge-margin-left {
    margin-left: 0.5rem;
}

/**
 * Forms Enhancements CSS
 * Enhanced UX/UI improvements for forms
 */

/* Improved Form Group Spacing */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Enhanced Field Focus States */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

/* Better Validation States */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%2328a745%27 d=%27M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath d=%27m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4%27/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* Enhanced Error Messages */
.field-error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.field-error-message::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--color-primary, #8B0000);
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Better Checkbox Labels - Smaller font for options */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

label:has(input[type="checkbox"]):hover,
label:has(input[type="radio"]):hover {
    background-color: rgba(139, 0, 0, 0.05);
}

/* Enhanced Submit Button */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button[type="submit"]:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

button[type="submit"]:not(:disabled):active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner for Submit */
button[type="submit"][x-data*="loading"]::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

button[type="submit"][x-data*="loading"]:disabled::after {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved GDPR Section - No background or border */
.gdpr-consent-section {
    padding: 1.25rem;
    margin-top: 2rem;
}

.gdpr-consent-section label {
    margin: 0;
}

/* Better Form Help Text */
.form-help {
    font-size: 0.875rem;
    color: var(--color-text-light, #666);
    margin-top: 0.5rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-border);
}

/* Smooth Field Transitions */
.form-control,
select.form-control,
textarea.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved Select Fields */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    position: relative;
    z-index: 1;
}

/* Garantir que o dropdown nativo apareça por cima de overlays quando aberto */
select.form-control:focus {
    z-index: 10001;
}

/* Garantir que optgroups e options sejam legíveis (sem blur) */
select.form-control option {
    background: var(--color-white, #ffffff);
    color: var(--color-text, #333333);
    padding: 0.5rem;
    opacity: 1 !important;
    filter: none !important;
}

select.form-control optgroup {
    background: var(--color-white, #ffffff);
    color: var(--color-text, #333333);
    font-weight: 600;
    opacity: 1 !important;
    filter: none !important;
}

/* Flatpickr Custom Styling */
.flatpickr-custom {
    font-family: var(--font-family, system-ui, -apple-system, sans-serif);
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border, #E0E0E0);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-primary, #8B0000);
    border-color: var(--color-primary, #8B0000);
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--color-primary-dark, #6B0000);
    border-color: var(--color-primary-dark, #6B0000);
}

.flatpickr-day.today {
    border-color: var(--color-primary, #8B0000);
}

.flatpickr-day.today:hover {
    background: var(--color-primary-light, rgba(139, 0, 0, 0.1));
}

/* Form Field Validation States - Enhanced (already defined above with icons) */
.form-control.is-valid:focus {
    border-color: #28a745;
}

/* Form Card Optimization for Mobile */
.form-card {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Full width container on mobile */
    .main-content .container {
        padding: 0;
        max-width: 100%;
    }
    
    /* Form card uses full width with minimal padding */
    .form-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem;
        box-shadow: none;
    }
    
    .form-card .card-header {
        padding: 0 0 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .form-card .card-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .form-card .card-body {
        padding: 0;
    }
    
    /* Optimize form groups */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Better label spacing */
    .form-label,
    .form-label-enhanced {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    /* Full width inputs */
    .form-control {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Phone field wrapper optimization */
    .phone-field-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .phone-field-wrapper select {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .phone-field-wrapper .phone-field {
        width: 100% !important;
    }
    
    /* Country field optimization */
    .form-group > div[x-data] {
        width: 100%;
    }
    
    /* GDPR section optimization */
    .gdpr-consent-section {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 8px;
    }
    
    .gdpr-consent-section label {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Terms and conditions section - always visible on mobile */
    .terms-conditions-section {
        display: block !important;
        margin-top: 1.5rem !important;
    }
    
    /* Terms and conditions label - same style as marketing consent */
    .terms-conditions-label {
        font-size: 0.8125rem !important;
        color: var(--color-text-light, #666) !important;
        line-height: 1.4 !important;
    }
    
    .terms-conditions-label input[type="checkbox"] {
        min-width: 18px !important;
        min-height: 18px !important;
        margin-top: 0.125rem !important;
    }
    
    .terms-conditions-section a {
        word-break: break-word;
        color: inherit !important;
        text-decoration: underline !important;
    }
    
    /* Marketing consent label - smaller, more discreet */
    .marketing-consent-label {
        font-size: 0.8125rem !important;
        color: var(--color-text-light, #666) !important;
        line-height: 1.4 !important;
    }
    
    .marketing-consent-label input[type="checkbox"] {
        min-width: 18px !important;
        min-height: 18px !important;
        margin-top: 0.125rem !important;
    }
    
    /* Submit button optimization */
    .form-group:last-of-type .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    /* Error messages */
    .field-error-message {
        font-size: 0.8125rem;
        margin-top: 0.375rem;
        padding-left: 1rem;
    }
    
    /* Alert messages */
    .alert {
        padding: 1rem;
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
    
    /* Form help text */
    .form-help {
        font-size: 0.8125rem;
        margin-top: 0.375rem;
    }
    
    /* Select fields */
    select.form-control {
        padding-right: 2.5rem;
        background-size: 1.25em 1.25em;
    }
    
    /* Checkbox and radio optimization */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
        margin-top: 0.125rem;
    }
    
    /* Better spacing for checkbox labels */
    label[style*="display: flex"] {
        gap: 0.625rem;
        align-items: flex-start;
        font-size: 0.9375rem;
    }
    
    /* Reduce card padding in mobile */
    .card {
        padding: 1rem;
    }
}

/* Small mobile devices (phones in portrait) */
@media (max-width: 480px) {
    .form-card {
        padding: 0.75rem;
    }
    
    .form-card .card-title {
        font-size: 1.125rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
    }
    
    .btn-primary {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .gdpr-consent-section {
        padding: 0.875rem;
    }
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Character Counter */
.char-counter {
    font-size: 0.875rem;
    color: var(--color-text-light, #666);
    margin-top: 0.25rem;
    text-align: right;
    transition: color 0.2s ease;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}

/* Enhanced Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    transition: height 0.2s ease;
}

/* Number Input Enhancements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: auto;
}

/* Date Input with Flatpickr */
input.date-picker {
    cursor: pointer;
}

input.date-picker:read-only {
    background-color: var(--color-white, #fff);
    cursor: pointer;
}

/* Form Group Enhancements - Already defined above with improved spacing */

/* Focus States - Enhanced (already defined above with transform) */

/* Loading State for Form Submission */
form[data-loading="true"] .form-control {
    opacity: 0.6;
    pointer-events: none;
}

form[data-loading="true"] button[type="submit"] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   FORM RESPONSES LISTING
   ============================================ */

/* Responses Header */
.responses-header {
    position: relative;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.03) 0%, rgba(160, 0, 0, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 3px solid var(--color-primary);
}

.responses-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #A52A2A 50%, var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.responses-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.responses-title {
    font-size: 1.75rem !important;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.responses-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary-gradient);
    border-radius: 2px;
}

.responses-subtitle {
    font-size: 1.125rem !important;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin: 0;
    font-weight: 500;
}

.responses-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.responses-body {
    padding: 1.5rem;
}

/* Statistics Grid */
.responses-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-enhanced {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 50%, #8B0000 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 0, 0, 0.3);
}

.stat-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    opacity: 0.95;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Search Box Enhanced */
.search-box-enhanced {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box-enhanced input {
    padding-left: 3rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.search-box-enhanced input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-box-enhanced::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%23666%27 stroke-width=%272%27%3E%3Ccircle cx=%277%27 cy=%277%27 r=%275%27/%3E%3Cpath d=%27m11 11 4 4%27/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Person Info in Table */
.person-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.person-cipa {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.person-name-simple {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Role Badges */
.role-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
    white-space: nowrap;
}

.role-badge-user {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-empty {
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-style: italic;
}

/* Response Actions */
.response-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action-details {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    text-decoration: none;
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action-primary {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    background: linear-gradient(135deg, #A52A2A 0%, #8B0000 100%);
}

/* Empty State */
.empty-state-enhanced {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.02) 0%, rgba(160, 0, 0, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed var(--color-border);
}

.empty-state-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Pagination */
.responses-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
}


