/**
 * WebView Modal Styles
 * Version: 2.0.0
 * Simple and clean modal for WebView detection
 */

/* Modal Overlay */
.webview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.webview-modal-overlay.show {
    opacity: 1;
}

/* Modal Box */
.webview-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 400px;
    width: 90%;
    margin: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webview-modal-overlay.show .webview-modal {
    transform: scale(1) translateY(0);
}

/* Icon */
.webview-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Title */
.webview-modal-title {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

/* Text */
.webview-modal-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Warning Box */
.webview-modal-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin: 0 0 24px 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

/* Buttons Container */
.webview-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* Primary Button */
.webview-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.webview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.webview-btn:active {
    transform: translateY(0);
}

.webview-btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
}

.webview-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* Close Button */
.webview-btn-close {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.webview-btn-close:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Toast Notification */
.webview-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.webview-toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 480px) {
    .webview-modal {
        padding: 24px 20px;
    }

    .webview-modal-title {
        font-size: 20px;
    }

    .webview-modal-text {
        font-size: 14px;
    }

    .webview-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .webview-modal {
        background: #2d3748;
    }

    .webview-modal-title {
        color: #f7fafc;
    }

    .webview-modal-text {
        color: #cbd5e0;
    }

    .webview-modal-warning {
        background: linear-gradient(135deg, #744210 0%, #975a16 100%);
        border-color: #d69e2e;
        color: #fefcbf;
    }

    .webview-btn-close {
        border-color: #4a5568;
        color: #cbd5e0;
    }

    .webview-btn-close:hover {
        background: #4a5568;
        border-color: #718096;
    }
}

