:root {
    --ep-primary: #4f46e5;
    --ep-bg: #ffffff;
    --ep-text: #1f2937;
    --ep-border: #e5e7eb;
    --ep-glass: rgba(255, 255, 255, 0.7);
}

.enhancepro-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    color: var(--ep-text);
}

/* Controls */
.ep-controls {
    display: flex;
    gap: 20px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ep-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 120px;
}

.ep-control-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

/* Dropzone */
.ep-dropzone {
    border: 2px dashed var(--ep-border);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ep-bg);
}

.ep-dropzone.hover {
    border-color: var(--ep-primary);
    background: #eef2ff;
}

.ep-drop-content p {
    margin: 10px 0 5px;
    font-weight: 600;
}

.ep-drop-content span {
    font-size: 12px;
    color: #9ca3af;
}

/* Gallery Grid */
.ep-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ep-card {
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ep-card-image {
    height: 250px;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ep-card-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid var(--ep-border);
}

.ep-status.success { color: #059669; font-weight: bold; }
.ep-status.error { color: #dc2626; }

/* Before/After Slider */
.ep-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.ep-img-after, .ep-img-before {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.ep-img-after img, .ep-img-before img {
    width: 100%; height: 100%;
    object-fit: contain; /* Important for alignment */
    display: block;
}

.ep-img-before {
    width: 50%; /* Initial state */
    border-right: 2px solid white;
    z-index: 2;
}

.ep-label {
    position: absolute;
    bottom: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
}
.ep-img-before .ep-label { left: 10px; }
.ep-img-after .ep-label { right: 10px; }

.ep-handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: auto;
    margin-bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-handle::after {
    content: '<>';
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

/* Buttons */
.ep-btn {
    background: var(--ep-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.ep-btn.small { padding: 5px 10px; font-size: 12px; width: 100%; text-align: center; border-radius: 0; }
.ep-bulk-actions { margin-top: 20px; text-align: center; }