/* Modal Component */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
    background: none;
    border: none;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

/* Floating Feedback Button */
.feedback-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.feedback-float-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.feedback-btn-text {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .feedback-float-btn {
        bottom: 1rem;
        right: 1rem;
        min-width: 50px;
        height: 50px;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .feedback-float-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Hide text on very small screens */
@media (max-width: 380px) {
    .feedback-btn-text {
        display: none;
    }

    .feedback-float-btn {
        width: 50px;
        padding: 0;
    }
}