/* Modern Light, Clean, Minimalist & Professional styling for Watermarks Remover */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.wmr-downloader-container,
#wmr-user-tool {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    width: 100%;
    max-width: 680px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box !important;
    --wmr-primary-color: #3b82f6;
    --wmr-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --wmr-bg-card: #ffffff;
    --wmr-border-color: #e2e8f0;
    --wmr-text-main: #0f172a;
    --wmr-text-muted: #64748b;
    --wmr-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

.wmr-downloader-container *,
.wmr-downloader-container *::before,
.wmr-downloader-container *::after,
#wmr-user-tool *,
#wmr-user-tool *::before,
#wmr-user-tool *::after {
    box-sizing: border-box !important;
}

/* Isolation Resets to prevent WordPress theme overrides */
.wmr-downloader-container h2,
.wmr-downloader-container h3,
.wmr-downloader-container h4,
.wmr-downloader-container p,
.wmr-downloader-container a,
.wmr-downloader-container button,
.wmr-downloader-container input,
.wmr-downloader-container textarea,
.wmr-downloader-container select {
    text-transform: none !important;
    text-shadow: none !important;
    filter: none !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.wmr-downloader-container h2,
.wmr-downloader-container h3,
.wmr-downloader-container h4 {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.wmr-card {
    background: var(--wmr-bg-card) !important;
    border: 1px solid var(--wmr-border-color) !important;
    border-radius: 18px !important;
    padding: 2rem 1.75rem !important;
    box-shadow: var(--wmr-shadow-card) !important;
}

/* Header & Icon Badge */
.wmr-card-header {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.wmr-icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 0.85rem !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04) !important;
}

.wmr-platform-icon {
    font-size: 26px !important;
    line-height: 1 !important;
}

.wmr-card-header h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--wmr-text-main) !important;
    margin-bottom: 0.4rem !important;
}

.wmr-card-header p {
    font-size: 0.88rem !important;
    color: var(--wmr-text-muted) !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* Auth / Login Card */
.wmr-login-wrapper {
    text-align: center !important;
    padding: 1.5rem 0 !important;
}

.wmr-login-wrapper h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--wmr-text-main) !important;
    margin-bottom: 0.4rem !important;
}

.wmr-login-wrapper p {
    font-size: 0.88rem !important;
    color: var(--wmr-text-muted) !important;
}

.wmr-google-btn-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

/* Tabs Switcher */
.wmr-tabs {
    display: flex !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
    gap: 4px !important;
}

.wmr-tab-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 0.85rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--wmr-text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wmr-tab-btn.active {
    background: #ffffff !important;
    color: var(--wmr-text-main) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Drag and Drop Zone */
.wmr-dropzone {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 1.75rem 1rem !important;
    text-align: center !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 1.25rem !important;
}

.wmr-dropzone:hover,
.wmr-dropzone.dragover {
    border-color: var(--wmr-primary-color) !important;
    background: #eff6ff !important;
}

.wmr-dropzone-icon {
    font-size: 32px !important;
    margin-bottom: 0.5rem !important;
}

.wmr-dropzone-text {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--wmr-text-main) !important;
}

.wmr-dropzone-browse {
    color: var(--wmr-primary-color) !important;
    text-decoration: underline !important;
}

.wmr-dropzone-hint {
    font-size: 0.78rem !important;
    color: var(--wmr-text-muted) !important;
    margin-top: 0.35rem !important;
}

/* File Preview inside Dropzone */
.wmr-file-preview {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px !important;
    margin-top: 0.75rem !important;
}

.wmr-file-name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--wmr-text-main) !important;
    max-width: 260px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.wmr-file-remove {
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    color: #ef4444 !important;
    cursor: pointer !important;
    padding: 0 0.2rem !important;
    line-height: 1 !important;
}

/* Textarea */
#wmr-user-text {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.88rem !important;
    color: var(--wmr-text-main) !important;
    resize: vertical !important;
    min-height: 120px !important;
    margin-bottom: 1.25rem !important;
}

#wmr-user-text:focus {
    outline: none !important;
    border-color: var(--wmr-primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Operation Selector Pills */
.wmr-operation-group {
    margin-bottom: 1.25rem !important;
}

.wmr-operation-label {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--wmr-text-muted) !important;
    margin-bottom: 0.5rem !important;
}

.wmr-operation-pills {
    display: flex !important;
    gap: 0.5rem !important;
}

.wmr-pill-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 0.85rem !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--wmr-text-main) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wmr-pill-btn.active {
    border-color: var(--wmr-primary-color) !important;
    background: #eff6ff !important;
    color: var(--wmr-primary-color) !important;
}

/* Main CTA Button */
.wmr-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: var(--wmr-primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
}

.wmr-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
    opacity: 0.96 !important;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: wmr-spin 0.8s linear infinite;
}

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

/* Alert / Error Banner */
.wmr-error-message {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
    text-align: center !important;
}

/* Progress Card */
.wmr-progress-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    margin-top: 1.25rem !important;
}

.wmr-progress-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

.wmr-progress-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    border-top-color: var(--wmr-primary-color);
    animation: wmr-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.wmr-progress-info h4 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: var(--wmr-text-main) !important;
    margin: 0 0 0.15rem 0 !important;
}

.wmr-progress-info p {
    font-size: 0.8rem !important;
    color: var(--wmr-text-muted) !important;
    margin: 0 !important;
}

.wmr-progress-bar-wrapper {
    margin-top: 0.5rem !important;
}

.wmr-progress-bar {
    width: 100% !important;
    height: 6px !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.wmr-progress-fill {
    height: 100% !important;
    background: var(--wmr-primary-gradient) !important;
    border-radius: 999px !important;
    transition: width 0.3s ease !important;
}

/* Complete Section & Result Formatting */
.wmr-complete-card {
    text-align: center !important;
    padding: 1.25rem 0 0 !important;
    margin-top: 1.25rem !important;
    border-top: 1px solid #f1f5f9 !important;
    animation: wmr-fade-in 0.3s ease !important;
}

@keyframes wmr-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wmr-success-icon {
    width: 46px !important;
    height: 46px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0.75rem !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

.wmr-complete-card h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--wmr-text-main) !important;
    margin-bottom: 1rem !important;
}

.wmr-user-tool__result-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    text-align: left !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.wmr-result-card__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.85rem !important;
}

.wmr-result-card__header h3 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--wmr-text-main) !important;
}

.wmr-result-badge-clean {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    border: 1px solid #bbf7d0 !important;
}

/* Metrics Comparison Bar */
.wmr-result-metrics {
    display: flex !important;
    gap: 0.75rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
}

.wmr-metric-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

.wmr-metric-item small {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--wmr-text-muted) !important;
}

.wmr-metric-item strong {
    font-size: 0.92rem !important;
    color: var(--wmr-text-main) !important;
}

.wmr-metric-highlight {
    color: var(--wmr-primary-color) !important;
}

/* Itemized Codepoints & Metadata Section */
.wmr-itemized-section {
    margin-bottom: 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.85rem !important;
}

.wmr-itemized-title {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--wmr-text-muted) !important;
    margin-bottom: 0.6rem !important;
}

.wmr-itemized-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
}

.wmr-itemized-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.8rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.wmr-pill-icon {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

.wmr-pill-code {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 0.15rem 0.35rem !important;
    border-radius: 4px !important;
    font-family: monospace !important;
}

.wmr-pill-label {
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
}

.wmr-pill-count {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    padding: 0.12rem 0.4rem !important;
    border-radius: 999px !important;
}

.wmr-pill-replaced .wmr-pill-count {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

.wmr-user-tool__result-grid {
    display: grid !important;
    gap: 0.75rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 1rem !important;
}

.wmr-user-tool__result-step {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.75rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.wmr-user-tool__result-step strong {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--wmr-text-muted) !important;
}

.wmr-user-tool__result-step span {
    font-size: 0.85rem !important;
    color: var(--wmr-text-main) !important;
}

.wmr-user-tool__changes-label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--wmr-text-muted) !important;
    margin-bottom: 0.35rem !important;
}

.wmr-user-tool__changes {
    margin: 0 0 1rem 0 !important;
    padding-left: 1.25rem !important;
    font-size: 0.85rem !important;
    color: var(--wmr-text-main) !important;
}

.wmr-user-tool__result-warning {
    background: #fefce8 !important;
    border: 1px solid #fef08a !important;
    color: #854d0e !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.82rem !important;
    margin-bottom: 1.25rem !important;
}

.wmr-result-actions {
    display: flex !important;
    gap: 0.5rem !important;
}

.wmr-user-tool__download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--wmr-primary-gradient) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
}

.wmr-user-tool__download:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
    color: #ffffff !important;
}

/* Disclaimer Footer */
.wmr-disclaimer {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
    color: var(--wmr-text-muted) !important;
    text-align: center !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px dashed #e2e8f0 !important;
    opacity: 0.8 !important;
}

/* Tool Switcher Styling - Clean Light Pills */
.wmr-tool-switcher {
    margin-top: 1.75rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #f1f5f9 !important;
    text-align: center !important;
}

.switcher-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--wmr-text-muted) !important;
    margin-bottom: 0.75rem !important;
}

.switcher-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.4rem !important;
}

.switcher-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 99px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.switcher-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.switcher-icon {
    font-size: 14px !important;
    line-height: 1 !important;
}

.switcher-text {
    display: inline !important;
}

@media (max-width: 520px) {
    .wmr-card {
        padding: 1.5rem 1.15rem !important;
    }
    .wmr-user-tool__result-grid {
        grid-template-columns: 1fr !important;
    }
    .switcher-text {
        display: none !important;
    }
    .switcher-link {
        padding: 0.35rem 0.5rem !important;
    }
}
