/* QA Feedback Plugin - Frontend Styles */

.qa-feedback-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.qa-feedback-widget.qa-feedback-bottom-right {
    bottom: 20px;
    right: 20px;
}

.qa-feedback-widget.qa-feedback-bottom-left {
    bottom: 20px;
    left: 20px;
}

.qa-feedback-widget.qa-feedback-top-right {
    top: 20px;
    right: 20px;
}

.qa-feedback-widget.qa-feedback-top-left {
    top: 20px;
    left: 20px;
}

.qa-feedback-trigger {
    background: var(--widget-color, #0073aa);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.qa-feedback-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.qa-feedback-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.qa-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qa-feedback-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.qa-feedback-modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-feedback-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qa-feedback-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qa-feedback-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.qa-feedback-form {
    padding: 20px;
}

.qa-feedback-field {
    margin-bottom: 20px;
}

.qa-feedback-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.qa-feedback-field .required {
    color: #dc3545;
}

.qa-feedback-field input,
.qa-feedback-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.qa-feedback-field input:focus,
.qa-feedback-field textarea:focus {
    outline: none;
    border-color: var(--widget-color, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.qa-feedback-field textarea {
    resize: vertical;
    min-height: 80px;
}

.qa-feedback-screenshot-container {
    position: relative;
}

.qa-feedback-screenshot-preview {
    margin-top: 10px;
    text-align: center;
}

.qa-feedback-screenshot-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qa-feedback-help-text {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

.qa-feedback-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.qa-feedback-submit,
.qa-feedback-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.qa-feedback-submit {
    background: var(--widget-color, #0073aa);
    color: white;
    transition: background 0.3s ease;
}

.qa-feedback-submit:hover {
    background: var(--widget-color-dark, #005a87);
}

.qa-feedback-cancel {
    background: #6c757d;
    color: white;
    transition: background 0.3s ease;
}

.qa-feedback-cancel:hover {
    background: #5a6268;
}

.qa-feedback-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.qa-feedback-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--widget-color, #0073aa);
    border-radius: 50%;
    animation: qa-feedback-spin 1s linear infinite;
}

@keyframes qa-feedback-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qa-feedback-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.qa-feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.qa-feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.qa-feedback-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.qa-feedback-hidden-fields {
    display: none;
}

/* End of styles */