/**
 * Najibul PWA - Smart Permission System Styles
 * COMPLETE LANGUAGE ISOLATION + BEAUTIFUL UI/UX
 * Version: 30.0.0 - PERFECT LANGUAGE ISOLATION
 */

/* 🎯 BASE PERMISSION PROMPT STYLES */
.najibul-pwa-permission-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100001;
    max-width: 420px;
    width: 90%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    display: none;
    overflow: hidden;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.najibul-pwa-permission-prompt.visible {
    display: block;
    animation: permissionSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes permissionSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 🎯 PROMPT INNER LAYOUT */
.dopamine-prompt-inner {
    padding: 0;
}

.dopamine-prompt-header {
    padding: 25px 25px 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dopamine-prompt-icon {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.dopamine-prompt-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: white;
    line-height: 1.3;
}

.dopamine-prompt-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dopamine-prompt-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* 🎯 PROMPT BODY */
.dopamine-prompt-body {
    padding: 20px 25px;
}

.dopamine-prompt-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 400;
}

/* 🎯 PROMPT ACTIONS */
.dopamine-prompt-actions {
    padding: 0 25px 20px;
}

.dopamine-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dopamine-btn::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;
}

.dopamine-btn:hover::before {
    left: 100%;
}

.dopamine-btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.dopamine-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.dopamine-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dopamine-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.dopamine-btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
}

.dopamine-btn-text:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.dopamine-btn-emoji {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dopamine-btn:hover .dopamine-btn-emoji {
    transform: scale(1.2);
}

/* 🎯 SECONDARY ACTIONS */
.dopamine-prompt-secondary-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.dopamine-prompt-secondary-actions .dopamine-btn {
    flex: 1;
    padding: 14px 20px;
}

/* 🎯 PROMPT FOOTER */
.dopamine-prompt-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.dopamine-prompt-footer small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 5px;
}

.language-indicator {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* 🎯 SUCCESS MESSAGES */
#najibul-pwa-messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100002;
    max-width: 350px;
    width: 90%;
}

.najibul-pwa-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    font-weight: 500;
    font-size: 14px;
    animation: messageSlideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.najibul-pwa-message.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* 🎯 LOADING STATES */
.dopamine-btn.loading {
    position: relative;
    color: transparent !important;
}

.dopamine-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🎯 PULSE ANIMATION */
.dopamine-btn.pulse {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 🎯 DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    .najibul-pwa-permission-prompt {
        background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dopamine-prompt-header {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .dopamine-btn-secondary {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dopamine-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* 🎯 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .najibul-pwa-permission-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .dopamine-prompt-header {
        padding: 20px 20px 12px;
    }
    
    .dopamine-prompt-header h3 {
        font-size: 18px;
    }
    
    .dopamine-prompt-body {
        padding: 15px 20px;
    }
    
    .dopamine-prompt-body p {
        font-size: 14px;
    }
    
    .dopamine-prompt-actions {
        padding: 0 20px 15px;
    }
    
    .dopamine-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .dopamine-prompt-secondary-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .dopamine-prompt-footer {
        padding: 12px 20px;
    }
    
    #najibul-pwa-messages-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .najibul-pwa-permission-prompt {
        border-radius: 16px;
    }
    
    .dopamine-prompt-header {
        padding: 18px 18px 10px;
    }
    
    .dopamine-prompt-icon {
        font-size: 28px;
    }
    
    .dopamine-prompt-header h3 {
        font-size: 17px;
    }
    
    .dopamine-prompt-body {
        padding: 12px 18px;
    }
    
    .dopamine-prompt-actions {
        padding: 0 18px 12px;
    }
    
    .dopamine-btn {
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .dopamine-prompt-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* 🎯 ACCESSIBILITY */
.dopamine-btn:focus-visible,
.dopamine-prompt-close:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* 🎯 REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .najibul-pwa-permission-prompt,
    .dopamine-btn,
    .dopamine-prompt-close {
        transition: none;
        animation: none;
    }
    
    .dopamine-btn::before {
        display: none;
    }
}

/* 🎯 HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .najibul-pwa-permission-prompt {
        border: 2px solid white;
    }
    
    .dopamine-btn {
        border: 1px solid white;
    }
    
    .dopamine-btn-text {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* 🎯 PRINT STYLES */
@media print {
    .najibul-pwa-permission-prompt,
    #najibul-pwa-messages-container {
        display: none !important;
    }
}