/* دکمه اصلی */
.wsn-button-wrapper {
    margin: 20px 0;
}

.wsn-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa !important;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wsn-notify-btn:hover {
    background: #005a87 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wsn-notify-btn svg {
    width: 18px;
    height: 18px;
}

/* پاپ‌آپ */
.wsn-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wsn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.wsn-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: wsnFadeIn 0.3s ease;
}

@keyframes wsnFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wsn-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.wsn-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* هدر */
.wsn-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.wsn-header svg {
    margin-bottom: 15px;
}

.wsn-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.wsn-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* فرم */
.wsn-form {
    padding: 30px;
}

.wsn-field {
    margin-bottom: 20px;
}

.wsn-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wsn-field .req {
    color: #e74c3c;
}

.wsn-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s;
    direction: ltr;
    text-align: left;
}

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

.wsn-field input::placeholder {
    color: #999;
}

/* دکمه ارسال */
.wsn-submit {
    width: 100%;
    background: #0073aa !important;
    color: #fff !important;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.wsn-submit:hover {
    background: #005a87 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wsn-submit:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* لودینگ */
.wsn-loading .wsn-submit:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wsnSpin 0.6s linear infinite;
}

@keyframes wsnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* پیام‌ها */
.wsn-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

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

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

/* موبایل */
@media (max-width: 600px) {
    .wsn-popup {
        padding: 10px;
    }
    
    .wsn-content {
        border-radius: 8px;
    }
    
    .wsn-header {
        padding: 20px 20px 15px;
    }
    
    .wsn-header h3 {
        font-size: 18px;
    }
    
    .wsn-form {
        padding: 20px;
    }
}
