/**
 * Xeep PWA Frontend Styles
 * 
 * @package Xeep_PWA
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --xeep-primary: #1a1a2e;
    --xeep-primary-light: #16213e;
    --xeep-accent: #e94560;
    --xeep-text: #ffffff;
    --xeep-text-muted: rgba(255, 255, 255, 0.7);
    --xeep-overlay: rgba(0, 0, 0, 0.85);
    --xeep-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --xeep-z-splash: 999999;
    --xeep-z-onboarding: 999998;
    --xeep-z-banner: 999997;
    --xeep-z-offline: 999996;
}

/* ==========================================================================
   Splash Screen
   ========================================================================== */

.xeep-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: var(--xeep-z-splash);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xeep-primary) 0%, var(--xeep-primary-light) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.xeep-pwa-splash.active {
    opacity: 1;
    visibility: visible;
}

.xeep-pwa-splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.xeep-pwa-splash-content {
    text-align: center;
    animation: splashFadeIn 0.5s ease forwards;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.xeep-pwa-splash-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.xeep-pwa-splash-icon-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--xeep-text);
}

.xeep-pwa-splash-title {
    color: var(--xeep-text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 32px;
}

.xeep-pwa-splash-loader {
    display: flex;
    justify-content: center;
}

.xeep-pwa-splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--xeep-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Onboarding
   ========================================================================== */

.xeep-pwa-onboarding {
    position: fixed;
    inset: 0;
    z-index: var(--xeep-z-onboarding);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xeep-primary) 0%, var(--xeep-primary-light) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.xeep-pwa-onboarding[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.xeep-pwa-onboarding.fade-out {
    opacity: 0;
    visibility: hidden;
}

.xeep-pwa-onboarding-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

.xeep-pwa-onboarding-skip {
    position: absolute;
    top: 0;
    right: 24px;
    background: none;
    border: none;
    color: var(--xeep-text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color var(--xeep-transition);
}

.xeep-pwa-onboarding-skip:hover {
    color: var(--xeep-text);
}

.xeep-pwa-onboarding-slides {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.xeep-pwa-onboarding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    transform: translateX(100%);
}

.xeep-pwa-onboarding-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

.xeep-pwa-onboarding-slide-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xeep-pwa-onboarding-slide-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.xeep-pwa-icon {
    font-size: 64px;
    color: var(--xeep-accent);
}

/* Icon mappings using emoji fallbacks */
.xeep-pwa-icon-smartphone::before { content: '📱'; }
.xeep-pwa-icon-wifi-off::before { content: '📡'; }
.xeep-pwa-icon-zap::before { content: '⚡'; }
.xeep-pwa-icon-star::before { content: '⭐'; }
.xeep-pwa-icon-heart::before { content: '❤️'; }
.xeep-pwa-icon-bell::before { content: '🔔'; }
.xeep-pwa-icon-shield::before { content: '🛡️'; }
.xeep-pwa-icon-globe::before { content: '🌍'; }
.xeep-pwa-icon-compass::before { content: '🧭'; }
.xeep-pwa-icon-home::before { content: '🏠'; }

.xeep-pwa-onboarding-slide h2 {
    color: var(--xeep-text);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
}

.xeep-pwa-onboarding-slide p {
    color: var(--xeep-text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.xeep-pwa-onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.xeep-pwa-onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--xeep-transition);
}

.xeep-pwa-onboarding-dot.active {
    background: var(--xeep-text);
    transform: scale(1.2);
}

.xeep-pwa-onboarding-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.xeep-pwa-onboarding-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.xeep-pwa-onboarding-prev,
.xeep-pwa-onboarding-next {
    flex: 1;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--xeep-transition);
}

.xeep-pwa-onboarding-prev {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--xeep-text);
}

.xeep-pwa-onboarding-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.xeep-pwa-onboarding-next {
    background: var(--xeep-accent);
    border: none;
    color: var(--xeep-text);
}

.xeep-pwa-onboarding-next:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

/* ==========================================================================
   Install Popup (Bottom Sheet - Modern UI)
   ========================================================================== */

.xeep-pwa-install-popup {
    position: fixed;
    inset: 0;
    z-index: var(--xeep-z-banner);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.xeep-pwa-install-popup.active {
    opacity: 1;
    visibility: visible;
}

.xeep-pwa-install-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.xeep-pwa-install-popup-sheet {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.xeep-pwa-install-popup.active .xeep-pwa-install-popup-sheet {
    transform: translateY(0);
}

.xeep-pwa-install-popup-handle {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 12px auto 0;
}

.xeep-pwa-install-popup-gradient {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.xeep-pwa-install-popup-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 40%);
}

.xeep-pwa-install-popup-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.xeep-pwa-install-popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.xeep-pwa-install-popup-icon img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.xeep-pwa-install-popup-icon span {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.xeep-pwa-install-popup-content {
    padding: 24px 24px 20px;
    text-align: center;
}

.xeep-pwa-install-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.xeep-pwa-install-popup-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.xeep-pwa-install-popup-actions {
    display: flex;
    gap: 12px;
}

.xeep-pwa-install-popup-dismiss {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    border: none;
    color: #374151;
}

.xeep-pwa-install-popup-dismiss:hover {
    background: #e5e7eb;
}

.xeep-pwa-install-popup-install {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #ffffff;
}

.xeep-pwa-install-popup-install:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Install Banner (Legacy/Fallback)
   ========================================================================== */

.xeep-pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--xeep-z-banner);
    background: var(--xeep-primary);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.xeep-pwa-install-banner.slide-up {
    transform: translateY(0);
}

.xeep-pwa-install-banner.slide-down {
    transform: translateY(100%);
}

.xeep-pwa-install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.xeep-pwa-install-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.xeep-pwa-install-banner-text {
    flex: 1;
    min-width: 0;
}

.xeep-pwa-install-banner-text strong {
    display: block;
    color: var(--xeep-text);
    font-size: 15px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xeep-pwa-install-banner-text span {
    display: block;
    color: var(--xeep-text-muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xeep-pwa-install-banner-btn {
    background: var(--xeep-accent);
    border: none;
    color: var(--xeep-text);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--xeep-transition);
}

.xeep-pwa-install-banner-btn:hover {
    background: #ff6b6b;
}

.xeep-pwa-install-banner-close {
    background: none;
    border: none;
    color: var(--xeep-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

/* ==========================================================================
   Install Button (Shortcode)
   ========================================================================== */

/* Install Container */
.xeep-pwa-install-container {
    display: inline-block;
}

/* iOS Install */
.xeep-pwa-ios-install {
    position: relative;
    display: inline-block;
}

.xeep-pwa-ios-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--xeep-pwa-bg, #1a1a2e);
    color: var(--xeep-pwa-text, #fff);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.xeep-pwa-ios-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.xeep-pwa-ios-tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--xeep-pwa-bg, #1a1a2e);
    transform: translateX(-50%) rotate(45deg);
}

/* Installed Message */
.xeep-pwa-installed-msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.xeep-pwa-installed-icon {
    font-size: 16px;
}

.xeep-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--xeep-accent);
    border: none;
    color: var(--xeep-text);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--xeep-transition);
}

.xeep-pwa-install-btn:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.xeep-pwa-install-btn-icon svg {
    width: 18px;
    height: 18px;
}

.xeep-pwa-install-btn-minimal {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 10px 20px;
}

.xeep-pwa-install-btn-minimal:hover {
    background: var(--xeep-accent);
    border-color: var(--xeep-accent);
    color: var(--xeep-text);
}

.xeep-pwa-install-btn-link {
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
}

.xeep-pwa-install-btn-link:hover {
    background: none;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* ==========================================================================
   Manual/Desktop Install UI
   ========================================================================== */

.xeep-pwa-manual-install {
    position: relative;
    display: inline-flex;
}

.xeep-pwa-manual-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: var(--xeep-text);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.xeep-pwa-manual-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.xeep-pwa-manual-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1a1a2e;
}

.xeep-pwa-manual-tooltip-content p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.xeep-pwa-manual-tooltip-browsers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xeep-pwa-browser-hint {
    font-size: 12px;
    color: var(--xeep-text-muted);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.xeep-pwa-browser-hint.active {
    background: var(--xeep-accent);
    color: var(--xeep-text);
    font-weight: 500;
}

/* ==========================================================================
   Update Banner
   ========================================================================== */

.xeep-pwa-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--xeep-z-banner);
    background: var(--xeep-accent);
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0));
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.xeep-pwa-update-banner.slide-down {
    transform: translateY(0);
}

.xeep-pwa-update-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.xeep-pwa-update-banner-content span {
    color: var(--xeep-text);
    font-size: 14px;
}

.xeep-pwa-update-btn {
    background: var(--xeep-text);
    border: none;
    color: var(--xeep-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--xeep-transition);
}

.xeep-pwa-update-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Offline Indicator
   ========================================================================== */

.xeep-pwa-offline {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: var(--xeep-z-offline);
    background: #333;
    color: var(--xeep-text);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.xeep-pwa-offline.visible {
    transform: translateX(-50%) translateY(0);
}

.xeep-pwa-offline-icon {
    font-size: 16px;
}

/* ==========================================================================
   Standalone Mode: Body tweaks DISABLED
   ========================================================================== */

/*
 * We intentionally avoid applying transforms/transitions/overscroll rules to
 * <body> in standalone mode because page builders (e.g., Elementor popups)
 * manipulate <html>/<body> for scroll locking, which can cause shaking and
 * header/footer layout shifts inside installed PWAs.
 */

/* 
 * IMPORTANT: Removed body padding for safe-area-inset to prevent 
 * conflicts with Elementor popups/modals and other page builders.
 * Safe area handling is now applied only to the fixed PWA UI elements.
 */

/* ==========================================================================
   Minimal Loading Spinner (Standalone Mode Only)
   ========================================================================== */

.xeep-pwa-loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999990;
    display: none;
    pointer-events: none;
}

.xeep-pwa-loading-indicator.active {
    display: block;
}

.xeep-pwa-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--xeep-accent, #e94560);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (prefers-color-scheme: dark) {
    .xeep-pwa-loading-spinner {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: var(--xeep-accent, #e94560);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .xeep-pwa-onboarding-container {
        padding: 24px 16px;
    }
    
    .xeep-pwa-onboarding-slide h2 {
        font-size: 24px;
    }
    
    .xeep-pwa-onboarding-slide p {
        font-size: 15px;
    }
    
    .xeep-pwa-install-banner-content {
        flex-wrap: wrap;
    }
    
    .xeep-pwa-install-banner-text {
        flex: 1 1 auto;
        width: calc(100% - 60px);
    }
    
    .xeep-pwa-install-banner-btn {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .xeep-pwa-install-banner-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* ==========================================================================
   Push Notification Modal
   ========================================================================== */

.xeep-pwa-push-modal {
    position: fixed;
    inset: 0;
    z-index: var(--xeep-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.xeep-pwa-push-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.xeep-pwa-push-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: xeep-pwa-modal-in 0.3s ease-out;
}

@keyframes xeep-pwa-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.xeep-pwa-push-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.xeep-pwa-push-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111;
}

.xeep-pwa-push-modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.xeep-pwa-push-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.xeep-pwa-push-modal-dismiss {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.xeep-pwa-push-modal-dismiss:hover {
    background: #e5e7eb;
}

.xeep-pwa-push-modal-subscribe {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.xeep-pwa-push-modal-subscribe:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   Push Subscribe/Unsubscribe Buttons (Shortcodes)
   ========================================================================== */

.xeep-pwa-subscribe-btn,
.xeep-pwa-unsubscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xeep-pwa-subscribe-btn:hover,
.xeep-pwa-unsubscribe-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.xeep-pwa-subscribe-btn.subscribed {
    background: #10b981;
    cursor: default;
}

.xeep-pwa-subscribe-btn.subscribed:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

.xeep-pwa-subscribe-btn-link {
    background: none;
    color: var(--xeep-primary);
    padding: 8px 12px;
}

.xeep-pwa-subscribe-btn-minimal {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.xeep-pwa-unsubscribe-btn {
    background: #ef4444;
}

.xeep-pwa-subscribe-icon svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Shortcode Subscribers List
   ========================================================================== */

.xeep-pwa-subscribers-shortcode {
    margin: 20px 0;
}

.xeep-pwa-subscribers-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

.xeep-pwa-subscribers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.xeep-pwa-subscribers-table th,
.xeep-pwa-subscribers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.xeep-pwa-subscribers-table th {
    background: #f9fafb;
    font-weight: 600;
}

.xeep-pwa-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.xeep-pwa-status-active {
    background: #dcfce7;
    color: #166534;
}

.xeep-pwa-status-unsubscribed {
    background: #fee2e2;
    color: #991b1b;
}

.xeep-pwa-delete-subscriber {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* ==========================================================================
   Shortcode Send Notification Form
   ========================================================================== */

.xeep-pwa-send-notification-form {
    max-width: 500px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.xeep-pwa-subscriber-count {
    margin-bottom: 20px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
}

.xeep-pwa-form-field {
    margin-bottom: 16px;
}

.xeep-pwa-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.xeep-pwa-form-field input,
.xeep-pwa-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.xeep-pwa-form-field input:focus,
.xeep-pwa-form-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.xeep-pwa-send-push-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.xeep-pwa-push-result {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
}

.xeep-pwa-push-result.success {
    background: #dcfce7;
    color: #166534;
}

.xeep-pwa-push-result.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --xeep-primary: #0a0a14;
        --xeep-primary-light: #12121f;
    }
    
    .xeep-pwa-push-modal-content {
        background: #1f2937;
    }
    
    .xeep-pwa-push-modal-title {
        color: #f9fafb;
    }
    
    .xeep-pwa-push-modal-desc {
        color: #9ca3af;
    }
    
    .xeep-pwa-push-modal-dismiss {
        background: #374151;
        color: #f9fafb;
    }
}
