:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --accent-green: #238636;
    --accent-blue: #1f6feb;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.wrapper { max-width: 700px; width: 100%; }

header { text-align: center; margin-bottom: 30px; }
header h1 { font-size: 2rem; margin-bottom: 10px; color: #fff; }
header p { color: var(--text-muted); font-size: 1rem; }

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.upload-area {
    border: 2px dashed #444;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}
.upload-area:hover { border-color: var(--accent-green); background: rgba(35, 134, 54, 0.05); }
.upload-icon { font-size: 3rem; margin-bottom: 10px; }
.file-support { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.input-group { display: flex; flex-direction: column; }
.input-group label { font-size: 0.85rem; margin-bottom: 6px; color: var(--text-muted); }

select, input {
    padding: 12px;
    background: #0d1117;
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}
.primary-btn:hover { filter: brightness(1.1); }

/* Perbandingan Gambar */
.compare-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

#afterImg { width: 100%; height: 100%; object-fit: contain; background: #000; }
#beforeImgContainer {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    overflow: hidden;
    z-index: 2;
}
#beforeImg { width: 100%; height: 100%; object-fit: contain; background: #000; }

.slider {
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: white;
    z-index: 3;
    cursor: ew-resize;
}
.slider-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Stats & Footer */
.stats-container { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-box { flex: 1; background: #0d1117; padding: 12px; border-radius: 8px; text-align: center; }
.stat-box span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.highlight { color: #3fb950; }

.download-btn {
    display: block; margin-top: 20px; padding: 15px;
    background: var(--accent-blue); color: white;
    text-align: center; border-radius: 8px; text-decoration: none; font-weight: bold;
}

footer { margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.privacy-notice {
    background: rgba(31, 111, 235, 0.1);
    padding: 15px; border-radius: 8px;
    margin-bottom: 20px; border: 1px solid rgba(31, 111, 235, 0.2);
}
.shield-icon { display: block; font-size: 1.5rem; margin-bottom: 5px; }
.hidden { display: none; }

/* Responsif */
@media(max-width: 600px){
    .settings-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 1.5rem; }
}
