/* Feedback Modal Styles - Consistent with existing design patterns */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 100vh;
}

.feedback-overlay.hidden {
    display: none;
}

.feedback-modal {
    background: #ffffff;
    max-width: 500px;
    width: 90%;
    text-align: left;
    position: relative;
    padding: 32px 28px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: auto;
    min-height: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    flex-shrink: 0;
    animation: feedbackModalAppear 0.4s ease-out;
}

@keyframes feedbackModalAppear {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-header {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.feedback-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.feedback-subtitle {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
    line-height: 1.5;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-select {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.feedback-context {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #666666;
    margin-bottom: 4px;
}

.feedback-context strong {
    color: #1a1a1a;
}

.character-count {
    font-size: 12px;
    color: #999999;
    text-align: right;
    margin-top: 4px;
}

.character-count.warning {
    color: #f59e0b;
}

.character-count.error {
    color: #dc2626;
}

.feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.feedback-button {
    padding: 12px 24px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    min-width: 80px;
}

.feedback-button:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.feedback-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-button:disabled:hover {
    border-color: #e5e5e5;
    color: #666666;
}

.feedback-button.primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.feedback-button.primary:hover:not(:disabled) {
    background: #333333;
    border-color: #333333;
}

.feedback-button.primary:disabled {
    background: #999999;
    border-color: #999999;
}

.form-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.success-message {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .feedback-modal {
        width: 100%;
        max-width: 500px;
        padding: 24px 20px;
        margin: 0;
        max-height: calc(100vh - 40px);
    }

    .feedback-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .feedback-button {
        width: 100%;
    }
}