/* =============================================================
   DEMO PANEL — People Theme
   File ini hanya untuk keperluan demo/preview theme.
   Hapus file ini (dan demo.hbs, demo.js) sebelum menjual theme.
   ============================================================= */

/* --- Floating Gear Button --- */
.demo-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background 0.2s;
    outline: none;
}
.demo-fab:hover {
    background: #333;
    transform: scale(1.08) rotate(30deg);
}
.demo-fab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.4s ease;
}
.demo-fab.is-open svg {
    transform: rotate(90deg);
}

/* --- Panel --- */
.demo-panel {
    position: fixed;
    bottom: 90px;
    right: 28px;
    z-index: 9999;
    width: 320px;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
    overflow: hidden;
}
.demo-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
html.dark-mode .demo-panel {
    background: #1e2028;
    color: #e5e7eb;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

/* --- Panel Header --- */
.demo-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
html.dark-mode .demo-panel-header {
    border-bottom-color: #2d2f3a;
}
.demo-panel-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.demo-panel-header-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}
.demo-panel-header-text h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111;
    line-height: 1.2;
    margin: 0;
}
html.dark-mode .demo-panel-header-text h3 {
    color: #f1f1f1;
}
.demo-panel-header-text p {
    font-size: 11px;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

/* --- Panel Body --- */
.demo-panel-body {
    overflow-y: auto;
    padding: 8px 0 12px;
    flex: 1;
}
.demo-panel-body::-webkit-scrollbar {
    width: 4px;
}
.demo-panel-body::-webkit-scrollbar-track {
    background: transparent;
}
.demo-panel-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
html.dark-mode .demo-panel-body::-webkit-scrollbar-thumb {
    background: #3a3d42;
}

/* --- Section Label --- */
.demo-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #aaa;
    padding: 10px 18px 4px;
}

/* --- Setting Row --- */
.demo-setting {
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.demo-setting-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
html.dark-mode .demo-setting-label {
    color: #d1d5db;
}
.demo-setting-desc {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

/* --- Select --- */
.demo-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 30px 8px 10px;
    font-size: 12px;
    color: #222;
    cursor: pointer;
    transition: border-color 0.15s;
    outline: none;
}
.demo-select:hover, .demo-select:focus {
    border-color: #bbb;
}
html.dark-mode .demo-select {
    background-color: #2a2d38;
    border-color: #3d4050;
    color: #e5e7eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Text Input --- */
.demo-input {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #222;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.demo-input:hover, .demo-input:focus {
    border-color: #bbb;
}
html.dark-mode .demo-input {
    background: #2a2d38;
    border-color: #3d4050;
    color: #e5e7eb;
}

/* --- Toggle (Boolean) --- */
.demo-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 18px;
    gap: 10px;
}
.demo-toggle-row-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}
html.dark-mode .demo-toggle-row-label {
    color: #d1d5db;
}
.demo-toggle {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
}
.demo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.demo-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s;
}
.demo-toggle input:checked + .demo-toggle-track {
    background: #111;
}
html.dark-mode .demo-toggle input:checked + .demo-toggle-track {
    background: #6366f1;
}
.demo-toggle-track:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.demo-toggle input:checked + .demo-toggle-track:before {
    transform: translateX(16px);
}

/* --- Divider --- */
.demo-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 18px;
}
html.dark-mode .demo-divider {
    background: #2d2f3a;
}

/* --- Reset button --- */
.demo-reset-btn {
    display: block;
    width: calc(100% - 36px);
    margin: 6px 18px 2px;
    padding: 8px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}
.demo-reset-btn:hover {
    background: #f5f5f5;
    color: #333;
}
html.dark-mode .demo-reset-btn {
    border-color: #3d4050;
    color: #777;
}
html.dark-mode .demo-reset-btn:hover {
    background: #2a2d38;
    color: #d1d5db;
}

/* --- Note badge --- */
.demo-note {
    font-size: 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Mobile responsive --- */
@media (max-width: 480px) {
    .demo-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
    }
    .demo-fab {
        bottom: 18px;
        right: 18px;
    }
}

/* --- Panel Footer (sticky) --- */
.demo-panel-footer {
    flex-shrink: 0;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
}
html.dark-mode .demo-panel-footer {
    border-top-color: #2d2f3a;
}
.demo-purchase-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--ghost-accent-color, #ff0095);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
    box-sizing: border-box;
}
.demo-purchase-btn:hover {
    opacity: 0.85;
}