/* استایل‌های فرانت‌اند افزونه اوجاسافت پیامک - اطلاع‌رسانی موجود شدن کالا */

/* کانتینر دکمه اطلاع‌رسانی */
.ojapayamak-notify-container {
    margin: 20px 0;
    text-align: center;
}

/* دکمه اطلاع‌رسانی */
.ojapayamak-notify-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: auto;
    justify-content: center;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}

.ojapayamak-notify-btn:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.ojapayamak-notify-btn:active {
    background: #004d73;
}

.ojapayamak-notify-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* مودال اطلاع‌رسانی */
.ojapayamak-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ojapayamak-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8) rotate(5deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05) rotate(-1deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* هدر مودال */
.ojapayamak-modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.ojapayamak-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.ojapayamak-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ojapayamak-modal-header h3::before {
    content: '🔔';
    font-size: 24px;
    animation: ring 2s infinite ease-in-out;
}

@keyframes ring {
    0%, 50%, 100% { 
        transform: rotate(0deg); 
    }
    10%, 30% { 
        transform: rotate(-10deg); 
    }
    20%, 40% { 
        transform: rotate(10deg); 
    }
}

.ojapayamak-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ojapayamak-modal-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* بدنه مودال */
.ojapayamak-modal-body {
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.ojapayamak-modal-body p {
    margin: 0 0 24px 0;
    color: #495057;
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

/* گروه فرم */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-group input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        0 8px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px) scale(1.02);
    background: #ffffff;
}

.form-group input[type="tel"].error {
    border-color: #e74c3c;
    box-shadow: 
        0 0 0 4px rgba(231, 76, 60, 0.15),
        0 8px 25px rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input[type="tel"].valid {
    border-color: #27ae60;
    box-shadow: 
        0 0 0 4px rgba(39, 174, 96, 0.15),
        0 8px 25px rgba(39, 174, 96, 0.1);
}

.form-group input[type="tel"].valid::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* عملیات فرم */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.form-actions .button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.form-actions .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.form-actions .button:hover::before {
    left: 100%;
}

.form-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.form-actions .button-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    color: #fff;
}

.form-actions .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.form-actions .button:not(.button-primary) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-actions .button:not(.button-primary):hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ojapayamak-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ojapayamak-modal-header {
        padding: 16px 20px;
    }
    
    .ojapayamak-modal-header h3 {
        font-size: 16px;
    }
    
    .ojapayamak-modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions .button {
        width: 100%;
    }
    
    .ojapayamak-notify-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .ojapayamak-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }
    
    .ojapayamak-modal-header {
        border-radius: 0;
    }
    
    .ojapayamak-modal-body {
        padding: 16px;
    }
    
    .form-group input[type="tel"] {
        font-size: 16px; /* جلوگیری از زوم در iOS */
    }
}

/* انیمیشن‌های اضافی - حذف شد برای حالت ساده */

/* انیمیشن بارگذاری برای دکمه */
.ojapayamak-notify-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* سیستم نوتیفیکیشن */
.ojapayamak-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.ojapayamak-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.notification-success .notification-content {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%);
    color: #ffffff;
}

.notification-error .notification-content {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.95) 100%);
    color: #ffffff;
}

.notification-info .notification-content {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%);
    color: #ffffff;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    margin: 0;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ریسپانسیو برای نوتیفیکیشن */
@media (max-width: 480px) {
    .ojapayamak-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-120%);
    }
    
    .ojapayamak-notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* استایل‌های وضعیت */
.status-pending {
    color: #ffc107;
    font-weight: 600;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-notified {
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-failed {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
