:root {
    --webim-primary: #6366f1;
    --webim-primary-hover: #4f46e5;
    --webim-bg: #f8fafc;
    --webim-card-bg: #ffffff;
    --webim-text: #1e293b;
    --webim-text-muted: #64748b;
    --webim-border: #e2e8f0;
    --webim-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --webim-radius: 12px;
}

.webim-wrap {
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


.webim-header {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--webim-primary), #8b5cf6);
    padding: 40px;
    border-radius: var(--webim-radius);
    color: white;
    box-shadow: var(--webim-shadow);
}

.webim-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
}

.webim-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

.webim-card {
    background: var(--webim-card-bg);
    border-radius: var(--webim-radius);
    padding: 30px;
    box-shadow: var(--webim-shadow);
    border: 1px solid var(--webim-border);
    margin-bottom: 24px;
}

.webim-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.webim-post-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.webim-selection-item {
    border: 1px solid var(--webim-border);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.webim-selection-item:hover {
    border-color: var(--webim-primary);
    background: #f5f3ff;
}

.webim-selection-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--webim-border);
    border-radius: 4px;
    margin: 0;
}

.webim-selection-item input[type="checkbox"]:checked {
    background-color: var(--webim-primary);
    border-color: var(--webim-primary);
}

.webim-selection-item label {
    font-weight: 500;
    cursor: pointer;
}

.webim-meta-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--webim-border);
}

.webim-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.webim-button {
    background: var(--webim-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.webim-button:hover {
    background: var(--webim-primary-hover);
}

.webim-button:disabled {
    background: var(--webim-text-muted);
    cursor: not-allowed;
}

.webim-loading {
    display: none;
    margin-left: 10px;
}

.webim-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.webim-response.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.webim-response.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* Import Page Styles */
.webim-drop-zone {
    border: 2px dashed var(--webim-border);
    padding: 60px;
    text-align: center;
    border-radius: var(--webim-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.webim-drop-zone:hover,
.webim-drop-zone.drag-over {
    border-color: var(--webim-primary);
    background: #f5f3ff;
}

.webim-drop-zone .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--webim-text-muted);
}

.webim-drop-zone p {
    font-size: 1.1rem;
    color: var(--webim-text-muted);
    margin-top: 15px;
}
