/**
 * Feedback button and modal styles
 */

/* Floating feedback button */
.feedback-button {
    position: fixed;
    bottom: 20px;  /* Back to bottom-right */
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.feedback-button:active {
    transform: translateY(0);
}

.feedback-button svg {
    width: 20px;
    height: 20px;
}

/* Feedback modal overlay */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal content */
.feedback-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.feedback-modal.show .feedback-modal-content {
    transform: scale(1);
}

/* Modal header */
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.feedback-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.feedback-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal body */
.feedback-modal-body {
    padding: 24px;
}

.feedback-modal-body p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.feedback-modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.feedback-modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-char-count {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Modal footer */
.feedback-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f9fafb;
}

.feedback-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.feedback-btn-cancel {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.feedback-btn-cancel:hover {
    background: #f3f4f6;
}

.feedback-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feedback-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.feedback-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status messages */
.feedback-status {
    padding: 12px 24px;
    font-size: 14px;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.feedback-status.success {
    background: #d1fae5;
    color: #065f46;
}

.feedback-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.feedback-status.info {
    background: #dbeafe;
    color: #1e40af;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .feedback-button span {
        display: none;
    }

    .feedback-button svg {
        width: 24px;
        height: 24px;
    }

    .feedback-modal-content {
        width: 95%;
        margin: 10px;
    }

    .feedback-modal-header {
        padding: 16px 20px;
    }

    .feedback-modal-header h3 {
        font-size: 18px;
    }

    .feedback-modal-body {
        padding: 20px;
    }
}
