/* JEFNA Gesture Control v20.6.0 Styles */
.jefna-user-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    max-width: 520px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "IBM Plex Sans Arabic", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.jefna-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.jefna-panel-icon {
    font-size: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.jefna-panel-info {
    flex: 1;
}

.jefna-panel-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.jefna-panel-desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.jefna-panel-badge {
    background: #10b981;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.jefna-panel-badge.is-disabled {
    background: #94a3b8;
}

.jefna-panel-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jefna-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.jefna-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.jefna-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.jefna-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.jefna-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.jefna-toggle-switch input:checked + .jefna-slider {
    background-color: #10b981;
}

.jefna-toggle-switch input:checked + .jefna-slider:before {
    transform: translateX(22px);
}

.jefna-actions-row {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.jefna-btn-reset {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.jefna-btn-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}
