/* Yan Tools Feedback Button - Glass Design */
body .yan-feedback-button#yan-feedback-btn,
body button.yan-feedback-button#yan-feedback-btn,
.yan-feedback-button#yan-feedback-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, 
        rgba(100, 200, 255, 0.25) 0%, 
        rgba(50, 150, 255, 0.3) 50%,
        rgba(0, 115, 170, 0.35) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 115, 170, 0.3), 
                0 4px 12px rgba(0, 150, 255, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.6),
                inset 0 -2px 4px rgba(0, 115, 170, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #0073aa;
    font-weight: 600;
    overflow: hidden;
    animation: feedbackPulse 3s ease-in-out infinite;
}

@keyframes feedbackPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 115, 170, 0.3), 
                    0 4px 12px rgba(0, 150, 255, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.1),
                    inset 0 2px 4px rgba(255, 255, 255, 0.6),
                    inset 0 -2px 4px rgba(0, 115, 170, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 115, 170, 0.4), 
                    0 4px 16px rgba(0, 150, 255, 0.35),
                    0 2px 8px rgba(0, 0, 0, 0.1),
                    inset 0 2px 4px rgba(255, 255, 255, 0.7),
                    inset 0 -2px 4px rgba(0, 115, 170, 0.25);
    }
}

body .yan-feedback-button#yan-feedback-btn::before,
body button.yan-feedback-button#yan-feedback-btn::before,
.yan-feedback-button#yan-feedback-btn::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(150, 220, 255, 0.6) 0%, 
        rgba(100, 180, 255, 0.3) 50%,
        rgba(50, 140, 255, 0.6) 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.5s ease;
    filter: blur(8px);
}

body .yan-feedback-button#yan-feedback-btn:hover::before,
body button.yan-feedback-button#yan-feedback-btn:hover::before,
.yan-feedback-button#yan-feedback-btn:hover::before {
    opacity: 1;
    filter: blur(12px);
}

body .yan-feedback-button#yan-feedback-btn:hover,
body button.yan-feedback-button#yan-feedback-btn:hover,
.yan-feedback-button#yan-feedback-btn:hover {
    transform: translateY(-6px) scale(1.08) rotate(2deg);
    background: linear-gradient(135deg, 
        rgba(120, 210, 255, 0.35) 0%, 
        rgba(70, 170, 255, 0.4) 50%,
        rgba(20, 135, 200, 0.45) 100%);
    box-shadow: 0 16px 50px rgba(0, 115, 170, 0.4), 
                0 8px 20px rgba(0, 150, 255, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 3px 6px rgba(255, 255, 255, 0.7),
                inset 0 -3px 6px rgba(0, 115, 170, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    animation: none;
}

body .yan-feedback-button#yan-feedback-btn:active,
body button.yan-feedback-button#yan-feedback-btn:active,
.yan-feedback-button#yan-feedback-btn:active {
    transform: translateY(-3px) scale(1.04) rotate(0deg);
    transition: all 0.1s ease;
}

body .yan-feedback-button#yan-feedback-btn .yan-feedback-icon,
body button.yan-feedback-button#yan-feedback-btn .yan-feedback-icon,
.yan-feedback-button#yan-feedback-btn .yan-feedback-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 115, 170, 0.4)) 
            drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
}

body .yan-feedback-button#yan-feedback-btn:hover .yan-feedback-icon,
body button.yan-feedback-button#yan-feedback-btn:hover .yan-feedback-icon,
.yan-feedback-button#yan-feedback-btn:hover .yan-feedback-icon {
    transform: scale(1.15) rotateZ(-5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 115, 170, 0.5)) 
            drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9));
}

body .yan-feedback-button#yan-feedback-btn .yan-feedback-text,
body button.yan-feedback-button#yan-feedback-btn .yan-feedback-text,
.yan-feedback-button#yan-feedback-btn .yan-feedback-text {
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 60px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8),
                 0 1px 2px rgba(0, 115, 170, 0.3);
    font-weight: 700;
    transition: all 0.3s ease;
}

body .yan-feedback-button#yan-feedback-btn:hover .yan-feedback-text,
body button.yan-feedback-button#yan-feedback-btn:hover .yan-feedback-text,
.yan-feedback-button#yan-feedback-btn:hover .yan-feedback-text {
    transform: scale(1.05);
    text-shadow: 0 3px 6px rgba(255, 255, 255, 1),
                 0 2px 4px rgba(0, 115, 170, 0.4);
}

/* Feedback Modal - Glass Morphism Design */
.yan-feedback-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 115, 170, 0.15) 0%, 
        rgba(50, 150, 200, 0.2) 50%,
        rgba(0, 81, 119, 0.25) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    animation: fadeIn 0.3s ease;
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(12px) saturate(150%);
    }
}

.yan-feedback-modal-content {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(245, 250, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 70px rgba(0, 115, 170, 0.25),
                0 15px 40px rgba(50, 150, 255, 0.15),
                0 8px 25px rgba(0, 0, 0, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.9),
                inset 0 -2px 4px rgba(0, 115, 170, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: unfoldFromButton 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    transform-origin: bottom left;
}

.yan-feedback-modal-content.opening {
    animation: unfoldFromButton 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.yan-feedback-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 200, 255, 0.6) 20%,
        rgba(150, 220, 255, 0.9) 50%,
        rgba(100, 200, 255, 0.6) 80%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(100, 200, 255, 0.5);
}

.yan-feedback-modal-content::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(100, 200, 255, 0.1) 0%, 
        transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes unfoldFromButton {
    0% {
        transform: translate(calc(-50vw + 60px), calc(50vh - 100px)) scale(0.05) rotateZ(-12deg);
        opacity: 0;
        filter: blur(20px);
        border-radius: 50%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotateZ(0deg);
        opacity: 1;
        filter: blur(0px);
        border-radius: 24px;
    }
}

.yan-feedback-modal-content.closing {
    animation: foldToButton 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards !important;
}

@keyframes foldToButton {
    0% {
        transform: translate(0, 0) scale(1) rotateZ(0deg);
        opacity: 1;
        filter: blur(0px);
        border-radius: 24px;
    }
    100% {
        transform: translate(calc(-50vw + 60px), calc(50vh - 100px)) scale(0.05) rotateZ(-12deg);
        opacity: 0;
        filter: blur(20px);
        border-radius: 50%;
    }
}

.yan-feedback-header {
    background: linear-gradient(135deg, 
        rgba(0, 115, 170, 0.95) 0%, 
        rgba(30, 130, 190, 0.9) 50%,
        rgba(0, 81, 119, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: white;
    padding: 26px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 25px rgba(0, 115, 170, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.yan-feedback-header::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent);
}

.yan-feedback-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
                 0 1px 3px rgba(0, 115, 170, 0.5),
                 0 0 20px rgba(100, 200, 255, 0.3);
    letter-spacing: 0.5px;
}

.yan-feedback-close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.yan-feedback-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 255, 255, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.yan-feedback-close:active {
    transform: rotate(90deg) scale(0.95);
}

.yan-feedback-body {
    padding: 30px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.yan-feedback-info {
    background: linear-gradient(135deg,
        rgba(240, 250, 255, 0.7) 0%,
        rgba(245, 248, 255, 0.6) 50%,
        rgba(240, 250, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(100, 180, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.08),
                0 2px 8px rgba(50, 150, 255, 0.05),
                inset 0 2px 4px rgba(255, 255, 255, 0.9),
                inset 0 -1px 2px rgba(0, 115, 170, 0.05);
    position: relative;
}

.yan-feedback-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 200, 255, 0.4),
        transparent);
}

.yan-feedback-info-item {
    margin: 8px 0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
}

.yan-feedback-info-item strong {
    color: #333;
    margin-right: 8px;
    min-width: 80px;
}

.yan-feedback-form-group {
    margin-bottom: 20px;
}

.yan-feedback-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.yan-feedback-checkbox-group {
    margin-bottom: 16px;
}

.yan-feedback-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px;
    background: linear-gradient(135deg,
        rgba(240, 250, 255, 0.5) 0%,
        rgba(245, 248, 255, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(100, 180, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.yan-feedback-checkbox-label:hover {
    background: linear-gradient(135deg,
        rgba(230, 245, 255, 0.7) 0%,
        rgba(235, 243, 255, 0.6) 100%);
    border-color: rgba(100, 180, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.yan-feedback-checkbox {
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    cursor: pointer;
    accent-color: #0073aa;
    transform: scale(1.2);
    flex-shrink: 0;
    vertical-align: middle;
}

.yan-feedback-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    user-select: none;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
}

.yan-feedback-email-group {
    margin-bottom: 20px;
    animation: slideDownEmail 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDownEmail {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

.yan-feedback-email-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 115, 170, 0.2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.yan-feedback-email-input:focus {
    outline: none;
    border-color: rgba(0, 115, 170, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.yan-feedback-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 115, 170, 0.2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.yan-feedback-form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 115, 170, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.yan-feedback-footer {
    padding: 0 28px 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    background: transparent;
}

.yan-feedback-submit {
    padding: 14px 50px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 115, 170, 0.95) 0%, 
        rgba(30, 130, 190, 0.9) 50%,
        rgba(0, 81, 119, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.35),
                0 4px 12px rgba(50, 150, 255, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.3),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 180px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 10px rgba(100, 200, 255, 0.3);
    letter-spacing: 0.5px;
}

.yan-feedback-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.yan-feedback-submit:hover:not(:disabled)::before {
    left: 100%;
}

.yan-feedback-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(20, 135, 200, 1) 0%, 
        rgba(50, 160, 220, 0.95) 50%,
        rgba(10, 105, 150, 1) 100%);
    box-shadow: 0 12px 35px rgba(0, 115, 170, 0.45),
                0 6px 20px rgba(50, 150, 255, 0.3),
                0 0 30px rgba(100, 200, 255, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.4),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
}

.yan-feedback-submit:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.yan-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.yan-feedback-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes messageSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.yan-feedback-message.success {
    background: linear-gradient(135deg, 
        rgba(212, 237, 218, 0.95) 0%,
        rgba(195, 230, 203, 0.9) 100%);
    color: #155724;
    border: 2px solid rgba(75, 181, 67, 0.4);
    display: block;
    box-shadow: 0 6px 20px rgba(75, 181, 67, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.yan-feedback-message.success::before {
    content: "✓ ";
    font-size: 18px;
    margin-right: 4px;
}

.yan-feedback-message.error {
    background: linear-gradient(135deg, 
        rgba(248, 215, 218, 0.95) 0%,
        rgba(245, 198, 203, 0.9) 100%);
    color: #721c24;
    border: 2px solid rgba(220, 53, 69, 0.4);
    display: block;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.yan-feedback-message.error::before {
    content: "✗ ";
    font-size: 18px;
    margin-right: 4px;
}

@media (max-width: 600px) {
    .yan-feedback-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    body .yan-feedback-button#yan-feedback-btn,
    body button.yan-feedback-button#yan-feedback-btn,
    .yan-feedback-button#yan-feedback-btn {
        bottom: 15px;
        left: 15px;
        width: 70px !important;
        height: 70px !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
        border-radius: 50% !important;
    }
    
    body .yan-feedback-button#yan-feedback-btn .yan-feedback-icon,
    body button.yan-feedback-button#yan-feedback-btn .yan-feedback-icon,
    .yan-feedback-button#yan-feedback-btn .yan-feedback-icon {
        font-size: 24px;
    }
    
    body .yan-feedback-button#yan-feedback-btn .yan-feedback-text,
    body button.yan-feedback-button#yan-feedback-btn .yan-feedback-text,
    .yan-feedback-button#yan-feedback-btn .yan-feedback-text {
        font-size: 8px;
    }
    
    .yan-feedback-body {
        padding: 20px;
    }
    
    .yan-feedback-footer {
        padding: 0 20px 20px;
    }
    
    .yan-feedback-submit {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

