/* Feedback Modal Styles */

/* Nav feedback button (in header) */
.nav-feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0.75rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-feedback-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.nav-feedback-btn:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    z-index: 100;
}

.nav-feedback-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Footer feedback button */
.feedback-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* Modal overlay and container */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--card-border);
    animation: modalSlideIn 0.3s ease-out;
}

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

.feedback-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feedback-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.feedback-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.feedback-modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form styles */
#feedback-form .form-group {
    margin-bottom: 1.25rem;
}

#feedback-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

#feedback-form input[type="email"],
#feedback-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#feedback-form input[type="email"]:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

#feedback-form input::placeholder,
#feedback-form textarea::placeholder {
    color: var(--text-light);
}

.feedback-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

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

/* Success state */
.feedback-success {
    text-align: center;
    padding: 2rem 0;
}

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

.feedback-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    animation: successPop 0.4s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-success p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .feedback-modal-content {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .feedback-modal-title {
        font-size: 1.25rem;
    }

    .nav-feedback-btn {
        width: 28px;
        height: 28px;
        margin-left: 0.5rem;
    }

    .nav-feedback-icon {
        font-size: 0.875rem;
    }
}

